File tree Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Expand file tree Collapse file tree 3 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 7
7
- npm run lint
8
8
- npm run cover
9
9
- npm run build
10
+ - npm run benchmark
10
11
after_script :
11
12
- npm run coveralls
12
13
cache :
Original file line number Diff line number Diff line change 1
1
const Benchmark = require ( 'benchmark' ) ;
2
- const { data } = require ( './helpers/' ) ;
3
- const Parser = require ( '../ ' ) ;
2
+ const { data } = require ( '../test /helpers/' ) ;
3
+ const Parser = require ( '..' ) ;
4
4
5
5
const suite = new Benchmark . Suite ( ) ;
6
6
Original file line number Diff line number Diff line change 5
5
"author" :
" Mark <[email protected] >" ,
6
6
"main" : " index.js" ,
7
7
"scripts" : {
8
+ "benchmark" : " node benchmark" ,
8
9
"build" : " npm run clean && npm run build:min && npm run build:unmin" ,
9
10
"build:min" : " NODE_ENV=production webpack -o dist/html-react-parser.min.js" ,
10
11
"build:unmin" : " NODE_ENV=development webpack -o dist/html-react-parser.js" ,
14
15
"coveralls" : " cat coverage/lcov.info | coveralls" ,
15
16
"lint" : " eslint --ignore-path .gitignore ." ,
16
17
"lint:fix" : " npm run lint -- --fix" ,
17
- "precommit" : " lint-staged" ,
18
+ "precommit" : " npm test && lint-staged" ,
18
19
"prepublishOnly" : " npm run build" ,
19
20
"release" : " standard-version --no-verify" ,
20
- "test" : " mocha" ,
21
- "test:benchmark" : " node test/benchmark.js"
21
+ "test" : " mocha"
22
22
},
23
23
"repository" : {
24
24
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments