fix(examples): hello-world app on Windows

This commit is contained in:
Marc Laval 2014-11-20 08:57:32 +01:00 committed by Vojta Jina
parent 03e2c94c6c
commit ead2769dd6
2 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
function file2moduleName(filePath) {
return filePath
return filePath.replace(/\\/g, '/')
// module name should be relative to `modules` and `tools` folder
.replace(/.*\/modules\//, '')
.replace(/.*\/tools\//, '')

View File

@ -330,7 +330,7 @@ gulp.task('serve', function() {
});
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);
});