Prototype Generator
![NPM](https://nodei.co/npm/generator-prototype.png?downloads=true&stars=true)
Yeoman generator for Prototype.
Getting started
-
Install Yeoman:
npm install -g yo
-
Install the package via:
npm install -g generator-prototype
-
Or copy the repository via clone to your directory (it depends on the system, just find your directory with yo installed):
git clone https://github.com/Prototype-Group/generator-prototype.git ~/AppData/Roaming/npm/node_modules
Usage
Prototype app scaffolds.
mkdir project && cd project
yo prototype [--skip-install]
Options
-
-s
alias --skip-install
Skips the automatic execution of bower
and npm
after scaffolding has finished.
-
-w
alias --skip-welcome-message
Skips app welcome message.
Default Installation
You can scaffold your project in an instance. The first question is:
"Choose your installation route:"
If you choose "Standard installation" you skip the rest of the questions and get the default values.
Plugins and Modules
You can apply multiple addons and grunt modules to your project. Just choose specific ones:
Assemble
- permalinks
- assemble-contrib-contextual
- assemble-contrib-sitemap
- assemble-related-pages
- assemble-markdown
Grunt modules
Gruntfile
For our Gruntfile we use the grunt module load-grunt-configs to split the file up in multiple files.
These files/tasks you can find in this directory:
JS Libraries and CSS Frameworks
You can choose JS Libraries like:
- jQuery
- BackboneJS
- RequireJS
- AngularJS
And you can also choose CSS Frameworks like:
- Foundation
- Bourbon Neat
- SASS Bootstrap
All files will be included and configured. Have fun!
Sub Generators
To help you in your workflow, we integrated some sub generators for you:
- Create a Backbone Model: yo prototype:bm
- Create a Backbone View: yo prototype:bv
- Create a Backbone Collection: yo prototype:bc
Others will follow.
CMS snippets (work in progress)
You can choose between multiple content management systems (Drupal, Typo3, Magnolia, CoreMedia).
After choosing a system you will get HTML-snippets and a few new SCSS files, which you can use:
- Drupal 7
- TYPO3 6.2
- Magnolia
- CoreMedia
Alternative
License
MIT License
TODO: