iodocs-cli v0.1.5
IO Docs cli tool
runs the Yeoman IO Docs (iodocs) Generators
The IO Docs application architecture will allow for plugin based items that can be used with the application. The core of the application is built upon the FlightJS framework. We have created a base structure for each of these FlightJS parts that are to be used within IO Docs. The goal is to have each part of IO Docs extensible by any developer. When adding a new IO Docs item, these generators will prove helpful to create the various stubs for these items.
Requirements
You should ensure the following is installed prior to using these generators.
- Node and NPM
- Navigate to http://nodejs.org and proceed with the download and install of node.js
Generators
To install the generators we can install the base generator which will include all possible items that can be generated.
Clone this repo, change to the clone directory and run the following command:
npm install -g
> If you have problems with permissions try: ```sudo npm install -g```Basic usage will prompt you in a wizard like style if invoking the IO Docs generator.
Base
Usage::
iodocsThis will provide you with a prompt on what to generate (ie. page, plugin, theme, data, component or mixin) and additionally ask the name of what you want to generate.
Component
Will generate a stub Flight component and related files with a provided name which contains the necessary base files as well as the directory structure for IO Docs to read from. An empty Style, Template, Locale and Unit Testing file is included with the stub generation.
The generated base structure of a component will reside as follows: app/ components/ / main.js main.test.js resources/ en_us.json styles/ style.scss views/ view.mustache
Usage:
iodocs component <SOME COMPONENT NAME>Example:
iodcos component fooORiodocs component 'my super component'ORiodocs component some_custom_componentData
Will generate a stub Flight component and Unit Testing file is included with the stub generation.
The generated base structure of a data component will reside as follows: app/ data/ / main.js main.test.js
Usage:
iodocs data <SOME DATA COMPONENT NAME>Example:
iodocs data fooORiodocs data 'my super data component'ORiodocs data some_custom_data_componentMixin
Will generate a stub mixin with a provided name. An empty base mixin and Unit Testing file is included with the stub generation.
The generated base structure of a component will reside as follows: app/ mixins/ with_.js
Usage:
iodocs mixin <SOME MIXIN NAME>Example:
iodocs mixin fooORiodocs mixin 'my super mixin'ORiodocs mixin some_custom_mixinTheme
Will generate a theme folder with a provided name, a manifest file and stub Flight component for each app component which contains the necessary base files as well as the directory structure for IO Docs to read from.
The generated base structure of a theme will reside as follows: themes/ / main.js main.test.js components/ ... component directories for existing app component containing their respective parts (see above Component structure) resources/ en_us.json styles/ _mixins.scss style.scss views/ style.mustache
Usage:
iodocs theme <SOME THEME NAME>Example:
iodocs theme fooORiodocs theme 'my super theme'ORiodocs theme some_custom_themePlugin
Will generate a stub plugin and related files with a provided type and name.
The generated base structure of a baic plugin will reside as follows: plugins/ / main.js
Usage:
iodocs plugin <SOME PLUGIN NAME> <SOME PLUGIN TYPE>Example:
iodocs plugin foo sometypeORiodocs plugin 'my super plugin' sometypeORiodocs plugin some_custom_plugin sometypeThe generated base structure of a view_lite plugin will reside as follows: plugins/ / main.js
Usage:
iodocs plugin <SOME PLUGIN NAME> view_liteExample:
iodocs plugin foo view_liteORiodocs plugin 'my super plugin' view_liteORiodocs plugin some_custom_plugin view_liteThe generated base structure of a full view plugin will reside as follows: plugins/ / main.js resources/ en_us.json styles/ style.scss views/ view.mustache
Usage:
iodocs plugin <SOME PLUGIN NAME> viewExample:
iodocs plugin foo viewORiodocs plugin 'my super plugin' viewORiodocs plugin some_custom_plugin view
You should now be able to start building with IO Docs.
Enjoy!
- David