cgross / generator-cg-angular

Yeoman generator for Enterprise Angular projects.
MIT License
592 stars 198 forks source link

gulp build doesn't work out of the box #55

Closed e-oz closed 2 years ago

e-oz commented 10 years ago

in just generated project: gulp build

module.js:340
    throw err;
          ^
Error: Cannot find module 'gulp-concat'
adnasa commented 10 years ago

@jamm Hello, this is because when running the generator for the first time it uses the grunt-modules defined in package.json

here is the list of modules you need to get started, as you can see in gulp.js

var gulp = require('gulp');
var concat = require('gulp-concat');
var uglify = require('gulp-uglify');
var imagemin = require('gulp-imagemin');
var less = require('gulp-less');
var gCheerio = require('gulp-cheerio');
var ngHtml2js = require("gulp-ng-html2js");
var ngmin = require('gulp-ngmin');
var htmlmin = require('gulp-htmlmin');
var cssmin = require('gulp-cssmin');
var packagejson = require('./package.json');
var streamqueue = require('streamqueue');
var rimraf = require('rimraf');
var rename = require('gulp-rename');
var jshint = require('gulp-jshint');
var jasmine = require('gulp-jasmine');
var stylish = require('jshint-stylish');
var domSrc = require('gulp-dom-src')

GLHF!

e-oz commented 10 years ago

Lol, so add them to package.json, because after npm install they were not installed.

adnasa commented 10 years ago

yeah I know how that sounds :)


@cgross Is there a plan to have gulp-dependencies pre-defined in packge.json? IMO it'd be preferable to have gulp.js as default builder :)