1) Install Node.js from https://nodejs.org/en/download/
2) Install VSCode from https://code.visualstudio.com/Download
3) Install npm: in terminal
npm install
4) Install yarn: in terminal
npm install --global yarn
5) create open-wc
npm init @open-wc
Choices:
Scaffold a new project
Web Component
Choose all three Linting+Testing+Demoing
No on using Typescript
Do you want to write this file structure to disk?
Yes
Do you want to install dependencies?
Yes, with yarn
To run the project:
cd project-name
npm run start
Top comments (0)