0.0.2 • Published 8 years ago
gluebert-cli v0.0.2
gluebert-cli
A command line interface for gluebert.js.
Install
npm install gluebert-cli -gUsage
Create Configuration file:
gluebert initthis ends up in a file called gluebert.config.json with the following content:
(obviously you can define your own locations :-))
{
"locations": {
"data": "./js/data",
"module": "./js/modules",
"scssVariables": "./scss/variables.scss"
}
}Create a new Module
gluebert create module <name> <selector>e.g.:
gluebert create module slider .c-sliderresults in the following file structure:
project/
|-- modules
| |-- slider
| | |-- slider.module.js
| | |-- slider.controller.js
| | |-- slider.styles.scssCreate new Data
gluebert create data <name>e.g.:
gluebert create module userresults in the following file structure:
project/
|-- data
| |-- user
| | |-- user.data.js
| | |-- user.signature.js