Package Exports
- workbox
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (workbox) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Workbox
A set of React components used internally at Komorebi Works.
Development
- Simply clone this workbox.
npm install
to install dependencies.npm run storybook
to see a list of component atlocalhost:9001
.lib/index.js
in your entry point.- Then publish to npm via
npm publish
.
Linting
- ESLINT support is added to the project.
- It's configured for ES2015 and inherited configurations from graphql/graphql-js.
- Use
npm run lint
to lint your code andnpm run lintfix
to fix common issues.
Testing
- You can write test under
__test__
directory anywhere insidelib
including sub-directories. - Then run
npm test
to test your code. (It'll lint your code as well). - You can also run
npm run testonly
to run tests without linting.
ES2015 Setup
- ES2015 support is added with babel6.
- This project uses ES2015 and some of the upcoming features like
async await
. - You can change them with adding and removing presets.
- All the polyfills you use are taken from the local
babel-runtime
package. So, this package won't add any global polyfills and pollute the global namespace.
Kudos
- Kadira and arunoda for npm-base.
- Babel6 and the team behind it.
- Facebook's graphql-js authors for ESLint configurations and for the directory structure.