@allenporter/recurrence-rule-editor v0.1.1
\
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-editorUsage
<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 lintTo automatically fix linting and formatting errors, run
npm run formatTesting with Web Test Runner
To execute a single test run:
npm run testTo run the tests in interactive watch mode run:
npm run test:watchTests 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 testTooling 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.
Local Demo with web-dev-server
npm startTo run a local development server that serves the basic demo located in demo/index.html