Simplify the lookup of switch describe as object literal.
After cloning this repository, make sure to change all the relevant entries in package.json
so they match your library.
npm install
npm run build
This will:
- Run Webpack starting from the entry point file (
src/library.js
, can be configured) - Convert all files in
src
folder from ES6 to ES5 - According to the
bundle-node
flag inpackage.json
, it will either: - Leave them as separate files, or -
- Minify and bundle them using Webpack, without their
node_modules
dependencies - Output the result to the
lib
folder
npm run build-web
This will:
- Run Webpack starting from the entry point file (
src/library.js
, can be configured) - Convert all files from ES6 to ES5
- Minify them, including all of their module dependencies, as a UMD module (so the file will be self-contained)
- Output the file to the
dist
folder
npm run test
MIT