- instill nodejs
- mkdir
node_cache,node_global - 配置路径
npm config set prefix "__DIR__/node_global"
npm config set cache "__DIR__/node_cache"
- cmd npm 查看安装是否成功
npm
- 配置全局环境变量:
__DIR__/node_global; - 安装cnpm
npm install -g cnpm --registry=https://registry.npm.taobao.org
- 检查cnpm是否安装成功
cnpm
- 安装vscode插件:
ESLint - 全局安装npm模块
ESLint
npm install -g eslint
- 新建项目文件夹,进入文件夹
vscode进入终端快捷键Ctrl+` - 初始化eslint配置
eslint --init
? How would you like to configure ESLint?
Answer questions about your style
? Are you using ECMAScript 6 features?
Yes
? Are you using ES6 modules?
Yes
? Where will your code run?
Browser, Node
? Do you use CommonJS?
Yes
? Do you use JSX?
No
? What style of indentation do you use?
Tabs
? What quotes do you use for strings?
Double
? What line endings do you use?
Windows
? Do you require semicolons?
Yes
? What format do you want your config file to be in?
JavaScript
- vscode自动格式化代码快捷键
Ctrl + Shift + F
- 任何位置右键,选中
Git Gui Here Help---show ssh kegenerate key-- key is empty- 复制到GitHub,添加Title -- add ssh key
- 进入
C:\Users\Administrator\.ssh文件夹找到ssh文件 - 使用
PuTTYgen创建私钥load- 打开
C:\Users\Administrator\.ssh - 选择
all Files - 打开
id_rsa - 重命名
key comment:v480s - save privite key
- 重命名
v480s.ppk
- github上新建仓库
- 使用ssh协议
- 进入项目文件夹
- vscode关联远程仓库
git remote add origin __URL__
- 第一次使用ssh key需要手动使用cmd进行推送
git push -u origin master