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 77- npm run lint
88- npm run cover
99- npm run build
10+ - npm run benchmark
1011after_script :
1112- npm run coveralls
1213cache :
Original file line number Diff line number Diff line change 11const Benchmark = require ( 'benchmark' ) ;
2- const { data } = require ( './helpers/' ) ;
3- const Parser = require ( '../ ' ) ;
2+ const { data } = require ( '../test /helpers/' ) ;
3+ const Parser = require ( '..' ) ;
44
55const suite = new Benchmark . Suite ( ) ;
66
Original file line number Diff line number Diff line change 55 "author" : " Mark <mark@remarkablemark.org>" ,
66 "main" : " index.js" ,
77 "scripts" : {
8+ "benchmark" : " node benchmark" ,
89 "build" : " npm run clean && npm run build:min && npm run build:unmin" ,
910 "build:min" : " NODE_ENV=production webpack -o dist/html-react-parser.min.js" ,
1011 "build:unmin" : " NODE_ENV=development webpack -o dist/html-react-parser.js" ,
1415 "coveralls" : " cat coverage/lcov.info | coveralls" ,
1516 "lint" : " eslint --ignore-path .gitignore ." ,
1617 "lint:fix" : " npm run lint -- --fix" ,
17- "precommit" : " lint-staged" ,
18+ "precommit" : " npm test && lint-staged" ,
1819 "prepublishOnly" : " npm run build" ,
1920 "release" : " standard-version --no-verify" ,
20- "test" : " mocha" ,
21- "test:benchmark" : " node test/benchmark.js"
21+ "test" : " mocha"
2222 },
2323 "repository" : {
2424 "type" : " git" ,
You can’t perform that action at this time.
0 commit comments