Skip to content

Commit

Permalink
Add web-tooling-benchmark-generator
Browse files Browse the repository at this point in the history
`web-tooling-benchmark-generator` is a CLI tool to generate new benchmarks.

Closes #49.
  • Loading branch information
alopezsanchez authored and mathiasbynens committed Sep 7, 2018
1 parent 48649a5 commit 9f24ca7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ There's no formal test suite yet. For now the process is roughly:
- [ ] `npm install --save-exact` any necessary dependencies, and be sure to include the `package.json` changes in your pull request.
- [ ] Put any assets used by the benchmark into the `third_party` folder and hook them up with the virtual file system in `src/vfs.js`.

Many of the steps above can be automated with the `npm run new-benchmark` script. It uses [`wtb-generate`](https://github.com/alopezsanchez/web-tooling-benchmark-generator), which is a CLI tool that automates some repetitive task when creating new benchmarks.

## Sign the CLA

Before we can use your code you have to sign the [Google Individual Contributor License Agreement](https://cla.developers.google.com/about/google-individual), which you can do online. This is mainly because you own the copyright to your changes, even after your contribution becomes part of our codebase, so we need your permission to use and distribute your code. We also need to be sure of various other things, for instance that you’ll tell us if you know that your code infringes on other people’s patents. You don’t have to do this until after you’ve submitted your code for review and a member has approved it, but you will have to do it before we can put your code into our codebase.
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"postinstall": "npm run build:terser-bundled && npm run build:uglify-js-bundled && npm run build",
"precommit": "node tools/hooks/pre-commit.js && lint-staged",
"test": "jest",
"update-lock": "npm install --package-lock"
"update-lock": "npm install --package-lock",
"new-benchmark": "wtb-generate"
},
"lint-staged": {
"src/**/*.css": [
Expand Down Expand Up @@ -74,6 +75,7 @@
"os-browserify": "^0.3.0",
"raw-loader": "github:bmeurer/raw-loader#escape",
"semver": "^5.5.0",
"web-tooling-benchmark-generator": "^1.0.2",
"webpack": "^3.8.1"
}
}

0 comments on commit 9f24ca7

Please sign in to comment.