Skip to content

Commit

Permalink
Merge pull request #75 from remarkablemark/refactor-benchmark
Browse files Browse the repository at this point in the history
Refactor benchmark
  • Loading branch information
remarkablemark authored Oct 13, 2018
2 parents c482c33 + aa30334 commit bfe2023
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ script:
- npm run lint
- npm run cover
- npm run build
- npm run benchmark
after_script:
- npm run coveralls
cache:
Expand Down
4 changes: 2 additions & 2 deletions test/benchmark.js → benchmark/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
const Benchmark = require('benchmark');
const { data } = require('./helpers/');
const Parser = require('../');
const { data } = require('../test/helpers/');
const Parser = require('..');

const suite = new Benchmark.Suite();

Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"author": "Mark <[email protected]>",
"main": "index.js",
"scripts": {
"benchmark": "node benchmark",
"build": "npm run clean && npm run build:min && npm run build:unmin",
"build:min": "NODE_ENV=production webpack -o dist/html-react-parser.min.js",
"build:unmin": "NODE_ENV=development webpack -o dist/html-react-parser.js",
Expand All @@ -14,11 +15,10 @@
"coveralls": "cat coverage/lcov.info | coveralls",
"lint": "eslint --ignore-path .gitignore .",
"lint:fix": "npm run lint -- --fix",
"precommit": "lint-staged",
"precommit": "npm test && lint-staged",
"prepublishOnly": "npm run build",
"release": "standard-version --no-verify",
"test": "mocha",
"test:benchmark": "node test/benchmark.js"
"test": "mocha"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit bfe2023

Please sign in to comment.