創(chuàng)建公私鑰對
$ssh-keygen -t rsa -b 4096 -C "53799906@qq.com"
cat .ssh/id_rsa.pub
github 一些小設置
- 運行 npm config set loglevel http镇眷,讓你知道 npm 發(fā)的每一個請求
- 運行 npm config set progress false笼痛,關閉那個無聊的進度條
- 運行 npm config set registry https://registry.npm.taobao.org/ 诀姚, 從淘寶的服務器下載各種包。不過這會讓你在運行 npm adduser 的時候出問題第献,想要恢復成原樣,只需要運行 npm config delete registry 即可。
- 運行 touch ~/.bashrc; echo 'export PHANTOMJS_CDNURL="http://npm.taobao.org/mirrors/phantomjs"' >> ~/.bashrc 讓 npm 從淘寶下載 phantomjs
5 端幼。運行 touch ~/.bashrc; echo 'export SASS_BINARY_SITE="https://npm.taobao.org/mirrors/node-sass"' >> ~/.bashrc 讓 npm 從淘寶下載 SASS
6 運行 source ~/.bashrc
創(chuàng)建github倉庫
確保你在項目根目錄
git init
git config user.name 你的名字
git config user.email 你的郵箱
echo '/node_modules/' > .gitignore
git add .
git commit -m '完成 webpack 的第一個例子'
然后去 GitHub 上新建一個 repo泥栖,(你在新建 repo 的時候簇宽,除了 repo name勋篓,其他的什么都不要寫!N焊睢F┫)
git remote add origin git@github.com:Clark124/bootstrap1.git
git push -u origin master
vscode配置vue 用tab快速生成標簽
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
}
vue-cli
全局安裝 vue-cli(安裝在當前目錄也可以),并用 vue-cli 來初始化一個 vue 項目
> npm install -g vue-cli
> vue init webpack . # 注意這里的 . 字符
? Generate project in current directory? Yes
This will install Vue 2.x version of the template.
For Vue 1.x use: vue init webpack#1.0
? Project name resumer
? Project description A Vue.js project
? Author frankfang <frankfang1990@gmail.com>
? Vue build standalone
? Install vue-router? Yes
? Use ESLint to lint your code? Yes
? Pick an ESLint preset Standard
? Setup unit tests with Karma + Mocha? Yes
? Setup e2e tests with Nightwatch? No
vue-cli · Generated "resumer".
> npm i
> npm run dev