This is the pattern library for the web at nib. View online. You can also check the current deployment status.
Staging environment. View online. You can also check the current deployment status.
Required software:
-
Open a command prompt
-
Clone from Github -
git clone https://github.com/nib-pattern-library/nib-pattern-library.git
-
Change the current directory -
cd nib-pattern-library
-
Install node modules -
npm install
-
Authorise component to access the Github API by creating a token and adding it to your
~/.netrc
file.machine api.github.com login password x-oauth-basic
- Run
npm run build
- Open
build/index.html
- Get the latest code
git pull
- Run
npm run watch
- Open
build/index.html
- Edit content in the
content
directory, templates in thetemplates
directory or JavaScript and styles in thecomponents
directory. - Refresh the page
- Commit your changes
git add -A && git commit -am "msg describing changes"
- Share your changes
git push
The templating language used is EJS.