fix(examples): hello-world app on Windows
This commit is contained in:
parent
03e2c94c6c
commit
ead2769dd6
|
@ -1,5 +1,5 @@
|
||||||
function file2moduleName(filePath) {
|
function file2moduleName(filePath) {
|
||||||
return filePath
|
return filePath.replace(/\\/g, '/')
|
||||||
// module name should be relative to `modules` and `tools` folder
|
// module name should be relative to `modules` and `tools` folder
|
||||||
.replace(/.*\/modules\//, '')
|
.replace(/.*\/modules\//, '')
|
||||||
.replace(/.*\/tools\//, '')
|
.replace(/.*\/tools\//, '')
|
||||||
|
|
|
@ -330,7 +330,7 @@ gulp.task('serve', function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('examples/pub.serve', function(done) {
|
gulp.task('examples/pub.serve', function(done) {
|
||||||
spawn('pub', ['serve'], {cwd: 'build/dart/examples', stdio: 'inherit'})
|
spawn(PUB_CMD, ['serve'], {cwd: 'build/dart/examples', stdio: 'inherit'})
|
||||||
.on('done', done);
|
.on('done', done);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue