0.0.0 • Published 10 years ago
workbox v0.0.0
Workbox
A set of React components used internally at Komorebi Works.
Development
- Simply clone this workbox.
npm installto install dependencies.npm run storybookto see a list of component atlocalhost:9001.lib/index.jsin 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 lintto lint your code andnpm run lintfixto fix common issues.
Testing
- You can write test under
__test__directory anywhere insidelibincluding sub-directories. - Then run
npm testto test your code. (It'll lint your code as well). - You can also run
npm run testonlyto 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-runtimepackage. 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.
0.0.0
10 years ago