Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change to use grunt-hook instead (npm package renamed) #973

Merged
merged 1 commit into from
Dec 18, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,18 @@ module.exports = function(grunt) {
/**
* Default Task
*/
grunt.mean.push('clean', -9999);
grunt.mean.push('concurrent', 9999);
grunt.hook.push('clean', -9999);
grunt.hook.push('concurrent', 9999);
if (process.env.NODE_ENV === 'production') {
grunt.mean.push('cssmin', 100);
grunt.mean.push('uglify', 200);
grunt.hook.push('cssmin', 100);
grunt.hook.push('uglify', 200);
} else {
grunt.mean.push('jshint', -200);
grunt.mean.push('csslint', 100);
grunt.hook.push('jshint', -200);
grunt.hook.push('csslint', 100);
}

//Default task.
grunt.registerTask('default', ['mean']);
grunt.registerTask('default', ['hook']);

//Test task.
grunt.registerTask('test', ['env:test', 'mochaTest', 'karma:unit']);
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"forever": "^0.11.1",
"gridfs-stream": "^0.5.1",
"grunt-cli": "^0.1.13",
"grunt-mean": "~0.2.1",
"grunt-hook": "~0.3.0",
"grunt-concurrent": "^1.0.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-csslint": "^0.3.1",
Expand Down
14 changes: 7 additions & 7 deletions tools/grunt/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,18 +116,18 @@ module.exports = function(grunt) {
/**
* Default Task
*/
grunt.mean.push('clean', -9999);
grunt.mean.push('concurrent', 9999);
grunt.hook.push('clean', -9999);
grunt.hook.push('concurrent', 9999);
if (process.env.NODE_ENV === 'production') {
grunt.mean.push('cssmin', 100);
grunt.mean.push('uglify', 200);
grunt.hook.push('cssmin', 100);
grunt.hook.push('uglify', 200);
} else {
grunt.mean.push('jshint', -200);
grunt.mean.push('csslint', 100);
grunt.hook.push('jshint', -200);
grunt.hook.push('csslint', 100);
}

//Default task.
grunt.registerTask('default', ['mean']);
grunt.registerTask('default', ['hook']);

//Test task.
grunt.registerTask('test', ['env:test', 'mochaTest', 'karma:unit']);
Expand Down
2 changes: 1 addition & 1 deletion tools/grunt/grunt.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"dependencies": {
"grunt-cli": "^0.1.13",
"grunt-mean": "~0.2.1",
"grunt-hook": "~0.3.0",
"grunt-concurrent": "^1.0.0",
"grunt-contrib-clean": "^0.6.0",
"grunt-contrib-csslint": "^0.3.1",
Expand Down