Yeoman generator
CURRENTLY MOVED TO log-oscon
npm install -g generator-log-fe
- not npm available...yet :)
yo log-fe
will generate a package.json
with the specified dependencies , an .editorconfig
, a .gitignore
, a .jshintrc
and will create the following directories and files: e criar as seguintes directorias e ficheiros:
- tasks/
- src/
-
images/
-
fonts/
-
styles/
-
scripts/
main.js
- application bootstrap- app/
app.js
- basic definition ofBackbone.Marionette.Application
;radio.js
- basic definition ofRadio
with a predefinedglobal
channel;- behaviors/
behaviors.js
- placeholder for otherBehavior
;
- collections/
- models/
- controllers/
- routers/
- apis/
- views/
root-view.js
- view used byapp.js
as a view placeholder
- templates/
root.(hbs|dust)
-root-view.js
template
- regions/
-
tests/
- app/
- collections/
- models/
- controllers/
- routers/
- apis/
- views/
- app/
-
All package.json
will be automatically installed
You can see a list of possible generators by typing: yo --help
. In this case you will receive the following list - alongside other generators:
log-fe
behavior
collection
collectionview
composite-template
compositeview
controller
itemview
layoutview
model
region
router
template
Bear in mind, composite-template
IS NOT supposed to be used. It is only used internally by compositeview
.
You can see each sub-generator and its options by typing: yo log-fe:[generator] --help
. E.g.: by typing yo log-fe:compositeview --help
it will return:
Usage:
yo log-fe:compositeview [options] <name>
Options:
-h, --help # Print the generator's options and usage
--skip-cache # Do not remember prompt answers Default: false
--all # should also create its corresponding template and itemviews
Arguments:
name Type: String Required: true
MIT