Skip to content

Commit 6ba55bd

Browse files
committed
Clean up angular test tools' typings.
1 parent 52fcf96 commit 6ba55bd

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

gruntfile.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
var path = require("path");
2+
var shelljs = require("shelljs");
23

34
module.exports = function(grunt) {
45
grunt.loadNpmTasks('grunt-ts');
@@ -161,8 +162,17 @@ module.exports = function(grunt) {
161162

162163
grunt.registerTask("prepareAngular", [
163164
'copy:angularSource',
165+
'fixAngularTsdDts'
164166
]);
165167

168+
grunt.registerTask("fixAngularTsdDts", function() {
169+
var tsdFile = 'src/angular2/typings/tsd.d.ts'
170+
shelljs.sed('-i', /.*protractor.*\n/g, '', tsdFile);
171+
shelljs.sed('-i', /.*jasmine.*\n/g, '', tsdFile);
172+
shelljs.sed('-i', /.*selenium.*\n/g, '', tsdFile);
173+
shelljs.sed('-i', /.*node\.d\.ts.*\n/g, '', tsdFile);
174+
});
175+
166176
grunt.registerTask("cleanAll", [
167177
'clean:src',
168178
'clean:package',

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"grunt-file": "1.0.2",
3333
"grunt-env": "0.4.4",
3434
"grunt-ts": "5.0.0-beta.5",
35+
"shelljs": "^0.5.3",
3536
"typescript": "1.6.2"
3637
},
3738
"typescript": {

0 commit comments

Comments
 (0)