This repo includes code and documentation for the Frontend Styleguide. This styleguide is based on U.S. Web Design Standards.
The documentation site can be found here.
The components project can be found here.
The Style Guide documentation is built using Jekyll for the file framework, gulp for task management, and the node module for the Standards.
You will need to have the following installed on your machine before following the commands below:
- Ruby v2.2.2+, Installation guides
- Node v4.2.3+, Installation guides
- Bundler v1.12.3+, Installation guides
Some parts of the documentation are built using gulp.
To work on the site, switch to your local copy of the repository in terminal then run the following command to install project dependencies:
npm install
Now that all of your dependencies are installed, you can run your local server by running the following command:
npm start
Go to 127.0.0.1:4000
in your browser — you should be viewing a local instance.
Here are a few other utility commands you may find useful:
-
npm run clean
: Cleans out copied-over dependency assets. -
npm run lint
: Runseslint
andsass-lint
against JavaScript and Sass files. -
npm test
: Runsnpm run lint
and can also be used to run any tests. -
npm run watch
: Runs a series of commands that watches for any changes in both the Standards node module and the root level asset folders in this repo.