操作手册

淘宝镜像设置

1
2
3
4
5
6
7
8
npm config set registry   http://registry.npm.taobao.org/  # 淘宝镜像

npm config set registry https://registry.npmjs.org/ # npm仓库

npm install node-sass --sass-binary-site=http://npm.taobao.org/mirrors/node-sass # node-sass

# yarn
yarn config set registry https://registry.npm.taobao.org # 置淘宝镜像

jsconfig.json

1
2
3
4
5
6
7
8
9
10
11
12
13
{
"compilerOptions": {
"experimentalDecorators": true,
"allowJs": true,
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
},
"allowSyntheticDefaultImports": true,
"include": ["./src/**/*"],
"exclude": ["node_modules"]
}

gitignore

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
.DS_Store
node_modules
/dist

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*

学习方法