npm i -g static-website
To create a new project run the next command:
swc new <dir>
It will ask you some questions.
If you want to init a static website in an existing project run the next command:
swc init
It also will ask you some questions.
It is very convenient to develop and see what happens in real time:
swc serve
The command will be automatically rebuilding a project when there are some changes and serve the result using HTTP.
To build static website run the next command inside the project:
swc build
Directory dist
will be created with static files inside.