This is the companion repository to the Vue Advanced Workshop.
我的前端学习笔记:
对于本 workshop 的笔记:
# fork
git clone https://github.com/d-levin/vue-advanced-workshop.git
cd vue-advanced-workshop
# 建立我的解决方案分支
git checkout -b piper
# 回滚到没有答案的版本
git reset --hard 49b3bb3a9
npm install
我看答案的话,去看 49b3bb3a96fe5317
这次 commit 删去了什么就行。
- Clone this repo:
git clone https://github.com/yyx990803/vue-advanced-workshop.git
- Install dependencies (for automated tests):
cd vue-advanced-workshop
npm install
This repo contains two branches: the master
branch is where you will be working on the exercises, and the solutions
branch contains the full solutions to each exercise.
To jump to the solutions
branch, use the following git command:
git checkout solutions
To go back to the working branch:
git checkout master
As you work on the exercise, you will leave un-commited changes to the repo. Make sure to commit your changes before switching branches:
git add -A
git commit -m 'working on exercise 1.1'
git checkout solutions
After viewing the hints from the solutions
branch, you can then go back to the master
branch to continue the exercise.
For each exercise there will be an automated test case to check if your implementation meets the requirements. To run the test for a given exercise (e.g. 1.1), run:
npm test -- -t 1.1
You can also run the test in watch mode (which automatically re-runs the tests as you edit the files) with:
npm run watch