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

Commit 6bdaa4b

Browse files
committedAug 14, 2014
feat(benchpress): configure benchpress grunt task
1 parent bfd3111 commit 6bdaa4b

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed
 

‎Gruntfile.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ module.exports = function(grunt) {
1010
require('load-grunt-tasks')(grunt);
1111

1212
grunt.loadTasks('lib/grunt');
13+
grunt.loadNpmTasks('angular-benchpress');
1314

1415
var NG_VERSION = versionInfo.currentVersion;
1516
NG_VERSION.cdn = versionInfo.cdnVersion;
@@ -22,7 +23,12 @@ module.exports = function(grunt) {
2223
//config
2324
grunt.initConfig({
2425
NG_VERSION: NG_VERSION,
25-
26+
bp_build: {
27+
options: {
28+
buildPath: 'build/benchmarks',
29+
benchmarksPath: 'benchmarks'
30+
}
31+
},
2632
parallel: {
2733
travis: {
2834
tasks: [

‎benchmarks/README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Instructions for using benchpress (how to create benchmarks, how to run, how to configure) can be
22
found at: https://github.com/angular/benchpress/blob/master/README.md.
33

4-
In this project, there is a configured grunt task for building the benchmarks, and placing them in
5-
"/build/benchmarks/".
4+
In this project, there is a configured grunt task for building the benchmarks,
5+
`grunt bp_build`, which places the runnable benchmarks in "/build/benchmarks/".
66
The existing `grunt webserver` task can be used to serve the built benchmarks at `localhost:8000/build/benchmarks/<benchmark-name>`

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
"sorted-object": "^1.0.0",
5656
"qq": "^0.3.5",
5757
"benchmark": "1.x.x",
58-
"angular-benchpress": "0.0.2"
58+
"angular-benchpress": "0.x.x"
5959
},
6060
"licenses": [
6161
{

0 commit comments

Comments
 (0)
This repository has been archived.