File tree Expand file tree Collapse file tree 4 files changed +4
-52
lines changed Expand file tree Collapse file tree 4 files changed +4
-52
lines changed Original file line number Diff line number Diff line change 33
33
- run : npm run lint
34
34
- run : npx prettier --check .
35
35
- run : npm run coverage
36
- - run : npx nyc report --reporter=text
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -119,26 +119,14 @@ var util = require("./util");
119
119
120
120
## Checking code coverage
121
121
122
- It's fun to find ways to test lines of code that aren't visited by
123
- the tests yet.
122
+ It's fun to find ways to test lines of code that aren't visited by the tests yet.
124
123
125
124
``` shell
126
125
$ npm run coverage
127
126
$ open coverage/index.html
128
127
```
129
128
130
- This will allow you to browse to red sections of the code that need
131
- more attention. Even more cool, however, is to run:
132
-
133
- ``` shell
134
- $ npm run dev
135
- ```
136
-
137
- (On some operating systems, this may pop up a request for node to be able to open a socket. Click "Allow" or the equivalent.)
138
-
139
- This will run the coverage tools, and monitor all of the files in the
140
- project, re-running the coverage tools and refreshing the browser when
141
- any files change. There will be a small web server running on port 4103 to enable this. Control-C to stop.
129
+ This will allow you to browse to red sections of the code that need more attention.
142
130
143
131
## Updating the ` lib/mappings.wasm ` WebAssembly Module
144
132
Original file line number Diff line number Diff line change 66
66
"license" : " BSD-3-Clause" ,
67
67
"scripts" : {
68
68
"lint" : " eslint --fix *.js lib/ test/" ,
69
- "prebuild" : " npm run lint" ,
70
69
"test" : " node test/run-tests.js" ,
71
- "coverage" : " nyc node test/run-tests.js" ,
72
- "setup" : " mkdir -p coverage && cp -n .waiting.html coverage/index.html || true" ,
73
- "dev:live" : " live-server --port=4103 --ignorePattern='(js|css|png)$' coverage" ,
74
- "dev:watch" : " watch 'npm run coverage' lib/ test/" ,
75
- "predev" : " npm run setup" ,
76
- "dev" : " npm-run-all -p --silent dev:*" ,
70
+ "coverage" : " nyc --reporter=text --reporter=html npm test" ,
77
71
"prettier" : " prettier --write ." ,
78
72
"clean" : " rm -rf coverage .nyc_output" ,
79
73
"toc" : " doctoc --title '## Table of Contents' README.md && doctoc --title '## Table of Contents' CONTRIBUTING.md"
82
76
"doctoc" : " ^1.3.1" ,
83
77
"eslint" : " ^8.24.0" ,
84
78
"eslint-config-prettier" : " ^8.5.0" ,
85
- "live-server" : " ^1.2.0" ,
86
- "npm-run-all" : " ^4.1.2" ,
87
79
"nyc" : " ^11.7.1" ,
88
- "prettier" : " ^2.7.1" ,
89
- "watch" : " ^1.0.2"
90
- },
91
- "nyc" : {
92
- "reporter" : " html"
80
+ "prettier" : " ^2.7.1"
93
81
},
94
82
"dependencies" : {
95
83
"whatwg-url" : " ^7.0.0"
You can’t perform that action at this time.
0 commit comments