CPE's Pattern Library, powered by 11ty (Originally built with Drizzle.)
You can see the pattern library at https://cpe-patterns.netlify.com/
To use the CPE patterns CSS or JS, you can get it via:
npm i cpe-patterns
Before running the project you'll need to install dependencies:
npm ci
This will start running a local web server and reloading when you change files:
npm start
Make sure you have the latest npm version (npm i -g npm
)
-
npm version <new version here>
(in a PR)- This will update the version number in
package.json
,package-lock.json
, andCHANGELOG.md
- This will update the version number in
-
npm publish
(onmaster
, after PR is merged)
In your local cpe-patterns
folder:
-
npm link
- registers the module globally -
npm start
- starts watcher
In a repo that uses cpe-patterns
:
-
npm link cpe-patterns
- This pointsnode_modules/cpe-patterns
to your localcpe-patterns
folder
When you want to switch back to the published version of cpe-patterns
, just run npm i