A generator for Yeoman with StartJS
Want to see pretty graphs? Log in now!
npm install generator-startjs
|22||downloads in the last month|
|Last Published By|
|Version||0.0.3 last updated 6 months ago|
|Keywords||yeoman-generator, startjs, requirejs, class|
A generator for Yeoman.
What is Yeoman?
Yeoman is a tool that lives in your computer, and waits for you to tell him what kind of application you wish to create.
Not every new computer comes with a Yeoman pre-installed. He lives in the npm package repository. You only have to ask for him once, then he packs up and moves into your hard drive. Make sure you clean up, he likes new and shiny things.
$ npm install -g yo
Yeoman travels light. He didn't pack any generators when he moved in. You can think of a generator like a plug-in. You get to choose what type of application you wish to create, such as a Backbone application or even a Chrome extension.
To install generator-startjs from npm, run:
$ npm install -g generator-startjs
Finally, initiate the generator:
$ yo startjs
If you get an error, manually do a bower install and npm install before running grunt
$ bower install $ npm install $ grunt
And now you are ready to go.
Getting To Know Yeoman
Yeoman has a heart of gold. He's a person with feelings and opinions, but he's very easy to work with. If you think he's too opinionated, he can be easily convinced.
Using data-view="ViewName" in the html will load the right js (js/src/views/View[ViewName].js). Every views will extend View.js, so put functions that will be used everywhere in this one.
Grunt: Used for automation (see http://gruntjs.com/)
Less: Create dynamic css