0.0.2 • Published 6 years ago
react-widget-library-starter v0.0.2
React Widget Library
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
Getting started
- Install the dependencies
- Run
npm installornpm i
- Run
- Build the library
- Run
npm run buildto produce minified version.
- Development mode
- Run
npm run devto 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 serverthen 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
Features
- Webpack-based
- ES6 as a source
- Exports in a umd format so the library works everywhere
- Testing with Cypress
Process
ES6 source files
|
|
webpack
|
+--- babel, eslint
|
ready to use
library
in umd formatTests
Testing with Cypress