0.0.2 • Published 7 years ago
gluebert-cli v0.0.2
gluebert-cli
A command line interface for gluebert.js.
Install
npm install gluebert-cli -g
Usage
Create Configuration file:
gluebert init
this 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-slider
results in the following file structure:
project/
|-- modules
| |-- slider
| | |-- slider.module.js
| | |-- slider.controller.js
| | |-- slider.styles.scss
Create new Data
gluebert create data <name>
e.g.:
gluebert create module user
results in the following file structure:
project/
|-- data
| |-- user
| | |-- user.data.js
| | |-- user.signature.js