Skip to content

Commit b8fa4d3

Browse files
committed
Remove redundant gulp tasks
1 parent 6ecde76 commit b8fa4d3

File tree

2 files changed

+9
-29
lines changed

2 files changed

+9
-29
lines changed

gulpfile.js

Lines changed: 7 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ var mocha = require('gulp-mocha');
1313
var sources = [
1414
'adapter',
1515
'common',
16-
//'test', test are not relevant in the context of NativeScript
1716
'typings',
1817
'custom-typings',
1918
'webkit',
2019
'nativescript',
2120
].map(function(tsFolder) { return tsFolder + '/**/*.ts'; });
2221

2322
var projectConfig = {
23+
target: "es5",
24+
module: "commonjs",
25+
moduleResolution: "node",
26+
sourceMap: true,
2427
noImplicitAny: false,
25-
target: 'ES5',
26-
module: 'commonjs',
28+
removeComments: false,
29+
preserveConstEnums: true,
2730
declarationFiles: true,
2831
typescript: typescript
2932
};
@@ -61,20 +64,4 @@ gulp.task('tslint', function(){
6164
return gulp.src(lintSources, { base: '.' })
6265
.pipe(tslint())
6366
.pipe(tslint.report('verbose'));
64-
});
65-
66-
function test() {
67-
return gulp.src('out/test/**/*.test.js', { read: false })
68-
.pipe(mocha({ ui: 'tdd' }))
69-
.on('error', function(e) {
70-
log(e ? e.toString() : 'error in test task!');
71-
this.emit('end');
72-
});
73-
}
74-
75-
gulp.task('build-test', ['build'], test);
76-
gulp.task('test', test);
77-
78-
gulp.task('watch-build-test', ['build', 'build-test'], function() {
79-
return gulp.watch(sources, ['build', 'build-test']);
80-
});
67+
});

tsconfig.json

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,9 @@
11
{
22
"compilerOptions": {
3-
"target": "es5",
4-
"module": "commonjs",
5-
"moduleResolution": "node",
6-
"sourceMap": true,
7-
"noImplicitAny": false,
8-
"removeComments": false,
9-
"outDir": "./out",
10-
"preserveConstEnums": true
3+
"target": "es5"
114
},
125
"exclude": [
136
"node_modules",
147
"test"
158
]
16-
}
9+
}

0 commit comments

Comments
 (0)