操作手册

发布: 2017-04-08 22:35:09标签: 前端开发

淘宝镜像设置

01npm config set registry http://registry.npm.taobao.org/ # 淘宝镜像
02
03npm config set registry https://registry.npmjs.org/ # npm仓库
04
05npm install node-sass --sass-binary-site=http://npm.taobao.org/mirrors/node-sass # node-sass
06
07# yarn
08yarn config set registry https://registry.npm.taobao.org # 置淘宝镜像
复制代码

jsconfig.json

01{
02 "compilerOptions": {
03 "experimentalDecorators": true,
04 "allowJs": true,
05 "baseUrl": ".",
06 "paths": {
07 "@/*": ["src/*"]
08 }
09 },
10 "allowSyntheticDefaultImports": true,
11 "include": ["./src/**/*"],
12 "exclude": ["node_modules"]
13}
14
复制代码

gitignore

01.DS_Store
02node_modules
03/dist
04
05# local env files
06.env.local
07.env.*.local
08
09# Log files
10npm-debug.log*
11yarn-debug.log*
12yarn-error.log*
13
14# Editor directories and files
15.idea
16.vscode
17*.suo
18*.ntvs*
19*.njsproj
20*.sln
21*.sw*
22
复制代码

学习方法