Compiles Svelte components into ES5 and bundles as an ECMAScript Module.
-
Includes a development environment with:
- Support for ECMAScript Modules and hot reloading (via Rollup bundler). Moved from Parcel to Rollout to support compiling Svelte components to ES5, which I wasn't able to get to work with Parcel and Svelte.
- Compile to es5 to run across a wide range of browsers (via Babel)
- Unit tests (via Jest)
- Lint (via ESLint with their recommended settings)
- Continuous Integration workflow with Github Actions
-
Styling with default fonts that look great across operating systems.
npm install
# in one terminal window
# bundle library and watch for changes
npm start # or `npm run build`
# in second terminal window
# serve sample index.html page that uses library
npm install http-server
http-server
# open up sample file
# http://127.0.0.1:8080
npm test
npm run build
npm run lint