iamstarkov / gulp-bem-stub

Example BEM project building with gulp-bem
http://matmuchrapna.github.io/gulp-bem-stub/
26 stars 4 forks source link

added scripts for npm #19

Closed pavelpower closed 9 years ago

pavelpower commented 9 years ago
$ npm i # after install npm run the bower install
$ npm run build # run gulp, this cmd need for case if the gulp is not installed to global context
$ npm run watch # run gulp watch, this cmd need for case if gulp is not installed to global context
alexbaumgertner commented 9 years ago

:+1: Without bower install error happened:

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: Not found `blocks/page__head`
    at DepsGraph.formatError (/Users/alexbaum/Projects/alexbaum_projects/gulp-bem-stub/node_modules/gulp-bem/node_modules/deps-graph/index.js:76:12)
    at DepsGraph._deps (/Users/alexbaum/Projects/alexbaum_projects/gulp-bem-stub/node_modules/gulp-bem/node_modules/deps-graph/index.js:31:20)
    at Array.map (native)
    at DepsGraph._deps (/Users/alexbaum/Projects/alexbaum_projects/gulp-bem-stub/node_modules/gulp-bem/node_modules/deps-graph/index.js:40:10)
    at DepsGraph.deps (/Users/alexbaum/Projects/alexbaum_projects/gulp-bem-stub/node_modules/gulp-bem/node_modules/deps-graph/index.js:16:17)
    at DestroyableTransform.tick (/Users/alexbaum/Projects/alexbaum_projects/gulp-bem-stub/node_modules/gulp-bem/tree.js:40:38)
    at DestroyableTransform.emit (events.js:117:20)
    at finishMaybe (/Users/alexbaum/Projects/alexbaum_projects/gulp-bem-stub/node_modules/gulp-bem/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:460:14)
    at endWritable (/Users/alexbaum/Projects/alexbaum_projects/gulp-bem-stub/node_modules/gulp-bem/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:469:3)
    at DestroyableTransform.Writable.end (/Users/alexbaum/Projects/alexbaum_projects/gulp-bem-stub/node_modules/gulp-bem/node_modules/through2/node_modules/readable-stream/lib/_stream_writable.js:436:5)