3

Here i m new to node, angular , gulp. I m using gulp to generate minify files all the stuff while i m running the gulp task it is given me the error

enter image description here

Below is my gulpfile.js code

gulp.task('dev', function(){
var builtPartialDev = gulp.src(paths.partials)
    .pipe(plugins.htmlhint({'doctype-first':false}))
    .pipe(plugins.htmlhint.reporter())
    .pipe(gulp.dest(paths.distDev));

var buitStyleDev = gulp.src(paths.styles)
    .pipe(plugins.less())
    .pipe(gulp.dest(paths.distDev));

var builtAppScriptsDev = gulp.src(paths.scripts)
    .pipe(plugins.jshint())
    .pipe(plugins.jshint.reporter('jshint-stylish'))
    .pipe(gulp.dest(paths.distDev))
    .pipe(plugins.angularFilesort());

var builtVendorScriptsDev = gulp.src(bowerFiles())
    .pipe(gulp.dest(paths.distDevBowerComponents))
    .pipe(plugins.order(['jquery.js', 'angular.js', 'angular-ui.js', 'ui-bootstrap.js', 'ui-bootstrap-tpls.js']));


var builtIndexDev = gulp.src(paths.index)
    .pipe(plugins.htmlhint())
    .pipe(plugins.htmlhint.reporter())
    .pipe(gulp.dest(path.distDev))
    .pipe(plugins.inject(builtVendorScriptsDev, {relative:true, name:'bower'}))
    .pipe(plugins.inject(builtAppScriptsDev, {relative:true}))
    .pipe(plugins.inject(buitStyleDev, {relative:true}))
    .pipe(gulp.dest(paths.distDev));

return es.merge(builtIndexDev, builtPartialDev) 

});
subhash
  • 167
  • 1
  • 4
  • 15

1 Answers1

0

You need to require gulp in your gulpfile. Add the following line to your file:

var gulp = require('gulp')

You will probably also have to install gulp for your project which you can do with npm install --save gulp.

If you don't have npm I suggest you look into how to install and use it.

Pavan Ravipati
  • 1,890
  • 14
  • 21
  • i already added all the required initialisation at the top itself pavan...i didn't display here and installed gulp also ...if not we will error there itself rgt – subhash Jul 26 '15 at 07:19