<recurrence-rule-editor>
A webcomponent for editing rfc5545 recurrence rules. This webcomponent follows the open-wc recommendation.
See demo for an example.
Installation
npm i @allenporter/recurrence-rule-editor
Usage
<script type="module">
import '@allenporter/recurrence-rule-editor/recurrence-rule-editor.js';
</script>
<recurrence-rule-editor></recurrence-rule-editor>
Linting and formatting
To scan the project for linting and formatting errors, run
npm run lint
To automatically fix linting and formatting errors, run
npm run format
Testing with Web Test Runner
To execute a single test run:
npm run test
To run the tests in interactive watch mode run:
npm run test:watch
Tests use chrome-launcher which may need chrome downloaded locally. See the download-chrome.sh script then configure chrome environment variable before running tets.
export CHROME_PATH=/home/${USER}/recurrence-rule-editor/chrome-linux/chrome
npm test
Tooling configs
For most of the tools, the configuration is in the package.json
to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.
web-dev-server
Local Demo with npm start
To run a local development server that serves the basic demo located in demo/index.html