This repository was archived by the owner on May 19, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 28
Workflow Documentation
Aiden Bai edited this page May 28, 2021
·
14 revisions
Lucia is written in TypeScript and should be run in a browser environment. We highly recommend you use VSCode as your IDE when developing.
-
dev- This script creates adevdirectory and creates a development server using Vite (--freshflag regenerates dev files) -
build- This script builds the codebase into aiife,cjs, andesmformat distribution bundles using Rollup -
lint- This script uses ESLint to lint the codebase -
cleanup- This script uses Prettier to format the codebase -
test- This script runs unit tests (specified under__test__folders) using Jest -
release- This script runs the aforementioned scripts and publishes the project on NPM
Note: other scripts are NPM lifecycle hooks and should not be run manually
Running yarn dev generates a dev directory with index.html, style.css, script.js and runs a development server at localhost:3000.
Ensure that you write jest unit tests so that the end coverage is >95%. Use /* istanbul ignore next */ when areas are unreasonable to test and have proven to work at a fundamental level.
Spot something off, or is something missing? Report it in an issue and we'll fix it!