Commit ea6ed3bb authored by rockyl's avatar rockyl

push

parent 47a0039d
...@@ -125,7 +125,7 @@ gulp.task('watch', function () { ...@@ -125,7 +125,7 @@ gulp.task('watch', function () {
livereload.listen({ livereload.listen({
quiet: true, quiet: true,
}); });
gulp.watch(['src/**', 'resource/**/*.+(scene|pfb)'], ['compile']); gulp.watch(['src/**/*.+(ts|js)', 'assets/**/*.+(ts|scene|pfb)'], ['compile']);
}); });
gulp.task('dev', ['compile', 'watch'], function (cb) { gulp.task('dev', ['compile', 'watch'], function (cb) {
......
...@@ -8,8 +8,7 @@ const {loadGulpFile, startGulpTask, setTsConfig} = require('./gulp-helper'); ...@@ -8,8 +8,7 @@ const {loadGulpFile, startGulpTask, setTsConfig} = require('./gulp-helper');
const gulpFile = path.resolve(__dirname, 'dev-config', 'gulpfile.js'); const gulpFile = path.resolve(__dirname, 'dev-config', 'gulpfile.js');
loadGulpFile(gulpFile); loadGulpFile(gulpFile);
const {name} = require(path.resolve('./project.json')); const {manifest: {name}} = require(path.resolve('./package.json'));
console.log(name);
exports.runGulp = function (task) { exports.runGulp = function (task) {
return new Promise((resolve, reject)=>{ return new Promise((resolve, reject)=>{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment