@style-hooks/core

v0.1.5
### [`@style-hooks` on NPM](https://npmjs.org/package/@style-hooks/core) `npm i @style-hooks/core @emotion/core`
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]

Metadata

  • MIT
  • Whatever
  • Jared Lunde
  • released 7/17/2019

Downloads

Maintainers