React boilerplate for producing libraries of embeddable widgets. Based 99% upon work by krasimir:
- Webpack Library Starter (Webpack based boilerplate for producing libraries - Input: ES6, Output: universal library)
- Start your own JavaScript library using webpack and ES6
- Install the dependencies
- Run
npm install
ornpm i
- Run
- Build the library
- Run
npm run build
to produce minified version.
- Development mode
- Run
npm run dev
to generate a non-minified library and a watcher to get compilation on file change.
- Run the server
- To view in a browser or run tests, start a local server
npm run server
then go tolocalhost:3030
- Run the tests
- Run the tests in headless mode
npm run test
- Run the tests through the Cypress GUI
npm run cypress
- Webpack-based
- ES6 as a source
- Exports in a umd format so the library works everywhere
- Testing with Cypress
ES6 source files
|
|
webpack
|
+--- babel, eslint
|
ready to use
library
in umd format
Testing with Cypress