Skip to content

Latest commit

 

History

History
48 lines (34 loc) · 1.03 KB

CONTRIBUTING.md

File metadata and controls

48 lines (34 loc) · 1.03 KB

Contributing

Developing

With the awesome PostCSS and cssnext, we can write code in the future's CSS syntax.

Because Mobi.css is made of plugins, we use Lerna to manage mulitple packages.

Setup

git clone https://github.com/mobi-css/mobi.css
cd mobi.css
npm install
npm run bootstrap

Build

npm run build

Test

npm test

Publish

First please install lerna globally.

npm install --global lerna

To publish a new version is a little complicated. We need to prepend the version metadata to each generated dist file before adding a git tag and publishing to npm.

# Update all packages's version without execute any git or npm command
lerna publish --repo-version=<version> --skip-git --skip-npm
# Next do a full build
npm run build
git add :/
# The final step is to publish all packages via lerna publish command
lerna publish --repo-version=<version>