Slightly more setup: npm install --link --save-dev gulp
So now what? gulp --help again?
You want a gulpfile?
What is this "gulpfile"...!?
Minimally:
var gulp = require('gulp');
gulp.task('do-something', function(){
console.log('so do something already!');
}); // END gulp.task(default)
Now try gulp do-something...
Maybe we should make it, y'know... do something?
What do you do in gulpfile.js?
Maybe you could make a dist/ bundle?
gulp.task('build', function(){
gulp.src('src/index.html')
.pipe(gulp.dest('dist/'));
}); // END gulp.task(build)
What about building your Sass files?
gulp.task('sass', function(){
var sass = require('gulp-sass');
gulp.src('src/scss/**/*.scss')
.pipe(sass({/* options go here */}))
.pipe(gulp.dest('src/css/'));
// Careful! ^^^^
}); // END gulp.task(sass)
And watching those files for changes?
gulp.task('watch', function(){
gulp.watch('src/scss/**/*.scss', [ 'sass' ]);
}); // END gulp.task(watch)
Rituals (~1h 15m)
Tools on Tues
bower install --save vue
Vue
instance tied to.profile-details
...Vue
instance tied to#repo-list-popular
...v-repeat
to the rescue!Time for a Big GulpJS!
gulp --help
... :(npm install --link --save-dev gulp
gulp --help
again?gulpfile
?Minimally:
gulp do-something
...gulpfile.js
?Maybe you could make a
dist/
bundle?What about building your Sass files?
And watching those files for changes?