@style-hooks/core
v1.0.1 css-in-js css in js css styles react hook react react hooks use-styles use styles hook and 6 more...
build
yarn build:es && yarn build:cjs
build:es
rm -rf dist/es && cross-env NODE_ENV=production BABEL_ENV=es babel src --out-dir dist/es --ignore "**/*.test.js","**/test.js","**/testUtils.js"
build:cjs
rm -rf dist/cjs && cross-env NODE_ENV=production BABEL_ENV=cjs babel src --out-dir dist/cjs
watch
cross-env NODE_ENV=production BABEL_ENV=es babel ./src -w --out-dir dist/es
prettier
yarn prettier:cjs && yarn prettier:es
prettier:es
prettier --single-quote --no-bracket-spacing --trailing-comma es5 --write --tab-width 2 "dist/es/**/*.js"
prettier:cjs
prettier --single-quote --no-bracket-spacing --trailing-comma es5 --write --tab-width 2 "dist/cjs/**/*.js"
publish:dev
yarn publish --tag dev
publish:next
yarn publish --tag next
prepublishOnly
yarn test && cp ../../README.md README.md && yarn build && yarn prettier
test
yarn build:cjs && BABEL_ENV=cjs ava -v
npm i @style-hooks/[email protected]
Source Code
github.com/jaredlunde/style-...Metadata
- MIT
- Whatever
- Jared Lunde
- released 7/30/2019