A web framework and style guide built with Style Guider NPM GitHub
Clone the project and use npm install
to install dependencies
A few gulp scripts are included
Compile the JS/CSS and build the style guide html with npm run build
. The documentation with live preview is generated as index.html
Check the code style of JS, CSS and Pug files with npm run lint
Combine the build and lint tasks and watch for file changes with npm start
. A local server is also launched for previewing the style guide.
Compile the JS/CSS in the dist folder with npm run dist
To create new components, Style Guider is required. First install it:
npm install -g yo
npm install -g generator-style-guider
Then add a new component using the prompt with:
yo style-guider:component
There are pre-commit and pre-push hooks for linting, and building the minified files in dist/
This project also acts as a web framework, with re-usable SCSS mixins, pug mixins and front-end javascript that can be included in other projects. Just add it as an npm dependency so it is stored in node_modules
then the mixin endpoints (or minified dist files) will be available to your project code.