generator-xf

Yeoman generator for XFramework

XFramework Generator

  • 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.

XF generator has some subgenerators.

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, Underscore
  • yo xf:update scripts — update js files (inluding thirdparty libraries) of X-Framework, check latest versions of jQuery, Backbone, Underscore
  • yo xf:update styles — update less files of X-Framework

Allows you to build xf.js and xf.min js. Can use parameters:

  • yo xf:build — create build with all UI elements
  • yo 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.

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 app
  • yo xf:application build — minify js, css, change paths at index.html, move neccessary files to prod directory

Allows you to create simple collection. Can use parameters:

  • yo xf:collection [name] — create simple collection with name

Allows you to create simple view. Can use parameters:

  • yo xf:view [name] — create simple view with name

Allows you to create simple component. Can use parameters:

  • yo xf:component [name] — create simple component with name

Allows you to create simple model. Can use parameters:

  • yo xf:model [name] — create simple model with name

MIT License