chare: changed gulp to support test folder
This commit is contained in:
parent
6e4477fc08
commit
e45ecd6d58
|
@ -34,9 +34,9 @@ var sourceTypeConfigs = {
|
||||||
compiler: function() {
|
compiler: function() {
|
||||||
return js2dart({replace: true});
|
return js2dart({replace: true});
|
||||||
},
|
},
|
||||||
transpileSrc: ['modules/*/src/**/*.es6d'],
|
transpileSrc: ['modules/**/*.es6d'],
|
||||||
htmlSrc: ['modules/*/src/**/*.html'],
|
htmlSrc: ['modules/*/src/**/*.html'],
|
||||||
copySrc: ['modules/*/src/**/*.dart'],
|
copySrc: ['modules/**/*.dart'],
|
||||||
outputDir: 'build/dart',
|
outputDir: 'build/dart',
|
||||||
outputExt: 'dart',
|
outputExt: 'dart',
|
||||||
mimeType: 'application/dart'
|
mimeType: 'application/dart'
|
||||||
|
@ -45,7 +45,7 @@ var sourceTypeConfigs = {
|
||||||
compiler: function() {
|
compiler: function() {
|
||||||
return traceur(traceurJsOptions);
|
return traceur(traceurJsOptions);
|
||||||
},
|
},
|
||||||
transpileSrc: ['modules/*/src/**/*.es*', 'tools/rtts-assert/src/assert.js'],
|
transpileSrc: ['modules/**/*.es*', 'tools/rtts-assert/src/assert.js'],
|
||||||
htmlSrc: ['modules/*/src/**/*.html'],
|
htmlSrc: ['modules/*/src/**/*.html'],
|
||||||
copySrc: ['tools/traceur/bin/traceur-runtime.js'],
|
copySrc: ['tools/traceur/bin/traceur-runtime.js'],
|
||||||
outputDir: 'build/js',
|
outputDir: 'build/js',
|
||||||
|
@ -59,7 +59,7 @@ gulp.task('modules/clean', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
function removeSrc(path) {
|
function removeSrc(path) {
|
||||||
path.dirname = path.dirname.replace('/src', '');
|
//path.dirname = path.dirname.replace('/src', '');
|
||||||
}
|
}
|
||||||
|
|
||||||
function createModuleTask(sourceTypeConfig, isWatch) {
|
function createModuleTask(sourceTypeConfig, isWatch) {
|
||||||
|
|
Loading…
Reference in New Issue