File tree Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Expand file tree Collapse file tree 2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ These commands are equivalent and do the following:
48
48
` create-html5-boilerplate ` is cross-platform. It works wherever node and npm work.
49
49
The only requirements are for ` npx ` , which requires npm version 5.2 or greater and
50
50
` npm init ` which requires an npm version greater than 6.0. If you're stuck on an
51
- older version of npm you can still use ` create-html5-boilerplate ` by running the
51
+ older version of npm you can still use ` create-html5-boilerplate ` by running the
52
52
following command to install the project globally.
53
53
54
54
```
@@ -74,3 +74,32 @@ cd new-site
74
74
npm install
75
75
npm start
76
76
```
77
+
78
+ ## CONTRIBUTING
79
+
80
+ ### Setting Up a Local Copy
81
+
82
+ 1 . Clone the repo with ` git clone https://github.com/h5bp/create-html5-boilerplate.git `
83
+ 2 . Run ` npm install ` in the root ` create-html5-boilerplate ` folder.
84
+ 3 . Run ` npm link ` to make npm run local copy instead of downloading from registry
85
+ 4 . Now you can use ` npm init html5-boilerplate ` and ` npx create-html5-boilerplate `
86
+
87
+ note: you can use ` npx create-html5-boilerplate ./out/example ` from ` create-html5-boilerplate ` without running ` npm link `
88
+ also its possible to run directly NodeJS entry point ` node index.js ./out/example ` or ` npm start `
89
+ ` ./out ` is git ignored folder, so you should use this folder for tests.
90
+
91
+ If you want to try out the end-to-end flow with the global CLI, you can do this too:
92
+
93
+ ```
94
+ npx create-html5-boilerplate ./out/new-site
95
+ cd new-site
96
+ npm install
97
+ npm start
98
+ ```
99
+
100
+ ### Tests
101
+
102
+ Tests are written using [ jest] ( https://jestjs.io/ ) and located in ` tests/test.js `
103
+ run ` npm test `
104
+
105
+ run coverage reports ` npm run coverage `
Original file line number Diff line number Diff line change 21
21
"test" : " jest" ,
22
22
"format" : " prettier --write \" ./cli.js\" \" tests/*.js\" " ,
23
23
"coverage" : " jest --coverage --collectCoverageOnlyFrom ./cli.js" ,
24
- "start" : " node ./index.js ./out"
24
+ "start" : " node ./index.js ./out/example "
25
25
},
26
26
"files" : [
27
27
" license.txt" ,
You can’t perform that action at this time.
0 commit comments