Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upwatch parameter when compiling to javascript #113
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Namek
Dec 3, 2014
Collaborator
I think that shouldn't be built-in into compiler. Compiler is compiler. Watcher is watcher. It's pretty easy to watch files using gulp.js or even Grunt.
@oxysoft have you seen gulp.js?
var gulp = require('gulp'),
watch = require('gulp-watch'),
spider = require('gulp-spider-script');
var Path = {
spiderSrc: 'src/*.spider,
spiderDest: 'out/js'
};
gulp.task('watch', function() {
return gulp.src(Path.spiderSrc)
.pipe(watch({glob: Path.spiderSrc}))
.pipe(spider())
.pipe(gulp.dest(Path.spiderDest))
});
|
I think that shouldn't be built-in into compiler. Compiler is compiler. Watcher is watcher. It's pretty easy to watch files using gulp.js or even Grunt. @oxysoft have you seen gulp.js?
|
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
oxysoft
Dec 5, 2014
Hi, I tried your suggestion and it would appear to have worked but gulp-spider-script only supports version 0.0.4 of Spider and changing it to the latest version will not work. Perhaps if the author updated it? This is my first time using gulp so there is no way I can update it myself.
oxysoft
commented
Dec 5, 2014
|
Hi, I tried your suggestion and it would appear to have worked but gulp-spider-script only supports version 0.0.4 of Spider and changing it to the latest version will not work. Perhaps if the author updated it? This is my first time using gulp so there is no way I can update it myself. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
zekesonxx
Dec 5, 2014
Contributor
I think this definitely should be put into the compiler. There's no reason I should have to pull in Grunt or Gulp just to accomplish a simple task. Grunt/Gulp is designed for making complicated actions easier without using make, not for providing basic, useful functionality.
|
I think this definitely should be put into the compiler. There's no reason I should have to pull in Grunt or Gulp just to accomplish a simple task. Grunt/Gulp is designed for making complicated actions easier without using make, not for providing basic, useful functionality. |
oxysoft commentedDec 2, 2014
Coffeescript lets you add a 'watch' parameter so you can do something like -wc and it keeps recompiling the coffeescript scripts to javascript whenever changes are applied to them. This would be nice to have with Spider