DEV Community

Jingtao Han
Jingtao Han

Posted on

Open-wc installation

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
Enter fullscreen mode Exit fullscreen mode

4) Install yarn: in terminal

npm install --global yarn
Enter fullscreen mode Exit fullscreen mode

5) create open-wc

npm init @open-wc
Enter fullscreen mode Exit fullscreen mode

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

example:
Alt Text

Top comments (0)