Skip to content
This repository has been archived by the owner on Apr 12, 2024. It is now read-only.

Commit

Permalink
feat(benchpress): configure benchpress grunt task
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffbcross committed Aug 14, 2014
1 parent bfd3111 commit 6bdaa4b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
8 changes: 7 additions & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ module.exports = function(grunt) {
require('load-grunt-tasks')(grunt);

grunt.loadTasks('lib/grunt');
grunt.loadNpmTasks('angular-benchpress');

var NG_VERSION = versionInfo.currentVersion;
NG_VERSION.cdn = versionInfo.cdnVersion;
Expand All @@ -22,7 +23,12 @@ module.exports = function(grunt) {
//config
grunt.initConfig({
NG_VERSION: NG_VERSION,

bp_build: {
options: {
buildPath: 'build/benchmarks',
benchmarksPath: 'benchmarks'
}
},
parallel: {
travis: {
tasks: [
Expand Down
4 changes: 2 additions & 2 deletions benchmarks/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Instructions for using benchpress (how to create benchmarks, how to run, how to configure) can be
found at: https://github.com/angular/benchpress/blob/master/README.md.

In this project, there is a configured grunt task for building the benchmarks, and placing them in
"/build/benchmarks/".
In this project, there is a configured grunt task for building the benchmarks,
`grunt bp_build`, which places the runnable benchmarks in "/build/benchmarks/".
The existing `grunt webserver` task can be used to serve the built benchmarks at `localhost:8000/build/benchmarks/<benchmark-name>`
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"sorted-object": "^1.0.0",
"qq": "^0.3.5",
"benchmark": "1.x.x",
"angular-benchpress": "0.0.2"
"angular-benchpress": "0.x.x"
},
"licenses": [
{
Expand Down

0 comments on commit 6bdaa4b

Please sign in to comment.