gulp

--

install:

  1. node.js
  2. npm
// cd to your project sudo npm install gulp -g
npm init //create package json
npm install gulp --save // save gulp in package json

create source folder and index.html
create gulpfile.js in root folder

// create in gulpfile.jsvar gulp = require('gulp');
gulp.task( 'copyHtml' , function(){
return gulp.src('./source/**/*.html').pipe(gulp.dest('./public/'))
})

Run gulp

//Now type in terminal
gulp copyHtml

Now gulp create public folder and index.html
gulp demo finish.

--

--

Jameskrauser Lee
Jameskrauser Lee

Written by Jameskrauser Lee

For the last few years. i was involved mostly in the development of Automatic Fare collection system for the Chennai Metro. Familiar with C++ and iOS.

No responses yet