WebComponents CLI
WebComponents CLI allow you to develop WebComponents from scratch with LitElement and Typescript.
Install
npm install -g @grandemayta/webcomponents-cli
Create a Project
wc-cli <name-of-your-project>
Getting Started
Launch the following commands to start the application:
npm start
Scripts:
Command | Description |
---|---|
npm start | Lift the application in local mode |
npm run dev | Generate a build in dev mode |
npm run prod | Generate a build in prod mode |
npm run dev:legacy | Generate a build in dev mode to support legacy browsers |
npm run prod:legacy | Generate a build in prod mode to support legacy browsers |
Polyfills
We support the following features:
-
Generics
- Symbol
- fetch
- Promise
-
Arrays
- entries
- from
- find
- findIndex
- includes
- keys
- values
-
Objects
- assign
- entries
- values
-
Strings
- endsWith
- includes
- startsWith
Browsers support
✅ Safari
✅ IE11
NB: In order to support legacy browsers like IE11 and Safari 9 you have to launch the following script:
npm run prod
Todo
- Improve the documentation
- Setup Unit Testing
- Setup E2E Testing