Skip to content
Co-op CSS Foundations and design system mono-repo
HTML CSS JavaScript Other
Branch: master
Clone or download
Latest commit de2964f Nov 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci package lock Oct 12, 2019
design-system added blog Nov 7, 2019
packages added squircle package and documentation Oct 28, 2019
.browserlistrc Move shared configs to root Aug 15, 2019
.editorconfig
.gitattributes Move global config to mono-repo level Jul 22, 2019
.gitignore Move global config to mono-repo level Jul 22, 2019
.postcssrc Update all dependencies Aug 15, 2019
.stylelintrc Ran npm build in all packages. Aug 20, 2019
README.md Update README Sep 19, 2019
lefthook.yml Only run lefthook if style files have changed Sep 19, 2019
lerna.json added squircle package and documentation Oct 28, 2019
package-lock.json added squircle package and documentation Oct 28, 2019
package.json Merge branch 'master' into add_design_manual Sep 23, 2019

README.md

Co-op Front-end

A mono-repository containing all the available Co-op Foundations libraries. All libraries are found in the packages directory.

Local development

This repository uses lerna to automatically manage versioning of all the different packages. Clone this repository, then install dependencies:

$ npm install

This will install lerna, then bootstrap the local packages.

Publishing new versions

Creating and publishing new versions is only enabled on the master branch. To create and publish new versions, the following needs to be run by a user with write permissions to the @coopdigital npm registry:

$ npm run publish

This should provide a prompt to update the version according to semantic versioning -- note that cross-linked dependencies within the local packages will be updated automatically.

Lefthook git hooks pre commit

Lefthookis used to manage git hooks in the repo. Intro article to lefthook.

Currently, only one pre-commit hook is setup. This runs stylelint against currently staged .css and .pcss files.

You can’t perform that action at this time.