Skip to content

Commit bb2e710

Browse files
committed
allow downloading of branches from npm script
1 parent ced6bb3 commit bb2e710

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ To view the code for a given lesson, _checkout_ the appropriate branch name. The
2323

2424
### Installing lesson branches
2525

26-
All the branches are checked out to your local machine automatically when you do `npm install`. Just do a `git branch` to verify and see all branches after.
26+
All the branches are checked out to your local machine automatically when you do `npm install`. Just do a `git branch` to verify and see all branches after. If they didn't appear, try running `npm run branches` to download all the branches.
2727

2828
To view a branch: `git checkout [branch-name]`
2929

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
"scripts": {
77
"start": "webpack-dev-server --mode development --config config/webpack.config.dev.js",
88
"build": "webpack --mode production --config config/webpack.config.production.js",
9-
"postinstall": "sh getbranches.sh"
9+
"branches": "sh getbranches.sh",
10+
"postinstall": "npm run branches"
1011
},
1112
"devDependencies": {
1213
"@babel/core": "^7.2.2",

0 commit comments

Comments
 (0)