You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
569 B
569 B
An component project
Setup
-
安装node > 8的LTS版本,https://nodejs.org/en/
-
增加npm本地仓库host,106.75.23.50 npm.analysys.cn
-
没安装yarn的,可以忽略以下yarn命令
# set registry
npm config set registry http://registry.npm.analysys.cn
# install parcel
yarn global add parcel-bundler | npm i -g parcel-bundler
# install dependencies
yarn | npm i
# startup development server (defaults to 3000)
# -> http://localhost:3000
yarn start | npm start
Lint
yarn test | npm run test
yarn lint:fix | npm run lint:fix