0.5.59 • Published 8 years ago
generator-spider v0.5.59
How to use
First make sure you have Yeoman running, if not get it by running this command in your terminal:
npm install -g yo
To install generator-spider from npm, run:
npm install -g generator-spider
Finally, initiate the generator:
yo spider
Dependencies
In order for the whole thing to work, the project root has to contain spidersock.json file, which should look like this:
{
"name": "Project Name",
"version": "1.0.0",
"description": "Wordpress website for Client A",
"installer-path": "wp-content/themes/theme-name/_incs/components/",
"builders": {
"scss": {
"marker": "/* --spiders:{{type}}s-- */",
"controllers": [
"wp-content/themes/theme-name/_incs/scss/stylesheet.scss"
]
}
},
"devDependencies": {
},
"author": "Your Name",
"license": "BSD"
}
Few things to note:
- marker value defaults to what's shown above, so it's technically optional.
- your controller SCSS should follow this or similar structure:
/* COMPONENTS: ATOMS */
@import "atoms/group/component-name/controller";
/* --spiders:atoms-- */
/* COMPONENTS: MOLECULES */
@import "molecules/group/component-name/controller";
/* --spiders:molecules-- */
/* COMPONENTS: ORGANISMS */
@import "organisms/group/component-name/controller";
/* --spiders:organisms-- */
License
MIT
0.5.59
8 years ago
0.5.58
8 years ago
0.5.57
8 years ago
0.5.56
8 years ago
0.5.55
8 years ago
0.5.54
8 years ago
0.5.53
8 years ago
0.5.52
8 years ago
0.5.51
8 years ago
0.5.5
10 years ago
0.5.45
10 years ago
0.5.44
10 years ago
0.5.43
10 years ago
0.5.42
10 years ago
0.5.41
10 years ago
0.5.4
10 years ago
0.5.3
10 years ago
0.5.2
10 years ago
0.5.1
10 years ago
0.5.0
10 years ago