This repository has been archived by the owner on Feb 26, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(grunt): create equivalent grunt tasks for all cli commands
- Loading branch information
1 parent
7484072
commit 258f3f1
Showing
9 changed files
with
67 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
node_modules/ | ||
.DS_Store | ||
benchpress-build/ | ||
benchpress-build/ | ||
build/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
var cli = require('./lib/cli'); | ||
|
||
/** | ||
* This file is only for testing and demonstration of the included grunt tasks. | ||
*/ | ||
|
||
module.exports = function (grunt) { | ||
grunt.initConfig({ | ||
bp_build: { | ||
options: { | ||
buildPath: 'build/benchmarks', | ||
benchmarksPath: 'grunt-benchmarks' | ||
} | ||
} | ||
}); | ||
|
||
grunt.loadTasks('./tasks'); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
module.exports = function(config) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
sample! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var cli = require('../lib/cli'); | ||
|
||
module.exports = function (grunt) { | ||
grunt.registerTask('bp_build', 'build benchmarks for project', function() { | ||
cli.build(this.options(), this.async()); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
var cli = require('../lib/cli'); | ||
|
||
module.exports = function (grunt) { | ||
grunt.registerTask('bp_launch_chrome', 'launch chrome canary in incognito with flags', | ||
function() { | ||
cli.launchChrome(this.async()); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
var cli = require('../lib/cli'); | ||
|
||
module.exports = function (grunt) { | ||
grunt.registerTask('bp_run', 'run a server from cwd', function() { | ||
cli.run(this.async()); | ||
}); | ||
}; |