generator-xf
v0.4.9
Published
Yeoman generator for XFramework
Downloads
34
Maintainers
Readme
XFramework Generator
Getting started
- Make sure you have yeoman installed:
npm install -g yo
- Install the generator:
npm install -g generator-xf
- Run:
yo xf
. It will download last versions of X-Framework, jQuery, Backbone and Underscore and run Build.
Subgenerators
XF generator has some subgenerators.
Update
Allows you to update sources and run Build. Can use parameters:
yo xf:update [all]
— update less and js files of X-Framework, check latest versions of jQuery, Backbone, Underscoreyo xf:update scripts
— update js files (inluding thirdparty libraries) of X-Framework, check latest versions of jQuery, Backbone, Underscoreyo xf:update styles
— update less files of X-Framework
Build
Allows you to build xf.js and xf.min js. Can use parameters:
yo xf:build
— create build with all UI elementsyo xf:build button:fieldset:...
— create build 'button' and 'fieldset' elements
Full list of available elements can be found at xf/ui directory of X-Framework.
Application
Allows you to create boilerplate. Can use parameters:
yo xf:application [init] [name]
— create simple boilerplate for your app, where 'name' is the name of the appyo xf:application build
— minify js, css, change paths at index.html, move neccessary files toprod
directory
Collection
Allows you to create simple collection. Can use parameters:
yo xf:collection [name]
— create simple collection with name
View
Allows you to create simple view. Can use parameters:
yo xf:view [name]
— create simple view with name
Component
Allows you to create simple component. Can use parameters:
yo xf:component [name]
— create simple component with name
Model
Allows you to create simple model. Can use parameters:
yo xf:model [name]
— create simple model with name