On Github lazarony3 / GulpPres
by Bobby Lazarony
<script>..</script> <script>..</script> <script>..</script> <script>..</script> <script>..</script> <script>..</script> <script>..</script> <script>..</script> <script>..</script> <script>..</script>
First things first: you need node.
$ npm install gulp -g
Next install it locally
$ npm install gulp --save-dev
this installs gulp locally to the project and saves it to the devDependencies in the package.json file
//include gulp var gulp = require('gulp'); //include plugins var concat = require('gulp-concat'); //concat our scripts gulp.task('default', function() { gulp.src('.src/scripts/*.js') .pipe(concat('script.js')) .pipe(gulp.dest('./build/scripts'); });
$ gulp
$ npm install gulp-sass gulp-jshint gulp-uglify gulp-concat (etc) --save-dev
registers the function with a name
Any Questions?
by Bobby Lazarony