@3b4b/project-two 中文文档教程
Open-wc Starter App
Quickstart
开始:
npm init @open-wc
# requires node 10 & npm 6 or higher
Scripts
start
runs your app for development, reloading on file changesstart:build
runs your app after it has been built using the build commandbuild
builds your app and outputs it in yourdist
directorytest
runs your test suite with Web Test Runnerlint
runs the linter for your projectformat
fixes linting and formatting errors
Tooling configs
对于大多数工具,配置位于 package.json
中以减少项目中的文件量。
如果你自定义配置很多,你可以考虑将它们移动到单独的文件中。
Open-wc Starter App
Quickstart
To get started:
npm init @open-wc
# requires node 10 & npm 6 or higher
Scripts
start
runs your app for development, reloading on file changesstart:build
runs your app after it has been built using the build commandbuild
builds your app and outputs it in yourdist
directorytest
runs your test suite with Web Test Runnerlint
runs the linter for your projectformat
fixes linting and formatting errors
Tooling configs
For most of the tools, the configuration is in the package.json
to reduce the amount of files in your project.
If you customize the configuration a lot, you can consider moving them to individual files.