javascript - Sails.js 0.10 generators -


the upcoming sails.js 0.10 features custom generators. (at time of writing @ rc4)

there's migration page on sails github describing how wonderful generators are, not how go installing them own application.

a few interesting custom generators start pop up:

  1. sails-generate-auth
  2. sails-generate-gulp-bower

the first 1 available on npm. matter of npm install , generator available in app right away.

i wanted try out second 1 replace grunt gulp, couldn't install generator.

can explain how install custom generator , hook sails.js app?

you can install sails-generator other npm package:

npm install sails-generate-auth 

the problem sails-generate-gulp-bower hasn't been released npm yet. can trick npm using following url install latest version of anyway.

npm install https://github.com/paulavery/sails-generate-gulp-bower/archive/master.tar.gz --save 

but keep in mind author has reason why didn't release it.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -