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.
git clone https://github.com/mobi-css/mobi.css
cd mobi.css
npm install
npm run bootstrap
npm run build
npm test
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>