1.1.9 • Published 4 years ago
autostyles v1.1.9
autostyles
NPM module for transforming css into automatic style guides.
Install (Privately)
npm install --save-dev autostylesRun (Privately)
- add these lines to your package.json
"scripts": {
"styleguide": "buildguide",
}THEN
npm run styleguideOR
Install (Globally)
npm install autostyles -gUsage (Globally)
buildguideYou will be prompted for the source & destination folders. This information will be used to generate your style guide.
- ✔ Turn debug on to get log info? yes
- ✔ Source folder ./my-css
Source folder containing css files - ✔ Destination folder dist
Destination folder final guide files
Examples
The css files located inside the /css folder
/css
|-- sample.css
|-- sample2.cssare transformed into
/dist
|-- index.html
|-- page0.html
|-- page1.html
|-- css
|-- autostyles.css
|-- autostyles.js
|-- sample.css
|-- sample2.css