feat(benchpress): configure benchpress grunt task

This commit is contained in:
Jeff Cross
2014-08-13 23:00:00 -07:00
parent bfd311174d
commit 6bdaa4bc21
3 changed files with 10 additions and 4 deletions

View File

@@ -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;
@@ -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: [

View File

@@ -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>`

View File

@@ -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": [
{