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

Upgrade to Grunt 0.4.0 #156

Merged
merged 3 commits into from
Feb 23, 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
10 changes: 5 additions & 5 deletions grunt.js → Gruntfile.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/*global module:false*/
module.exports = function (grunt) {

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-less');
grunt.loadNpmTasks('grunt-contrib-qunit');

// Project configuration.
grunt.initConfig({
Expand All @@ -17,9 +19,6 @@ module.exports = function (grunt) {
port:8000,
base:'.'
},
lint:{
files:['pager.js', 'test/**/*.js']
},
qunit:{
files:['test/**/*.html']
},
Expand All @@ -44,6 +43,7 @@ module.exports = function (grunt) {
tasks:'lint qunit'
},
jshint:{
files: ['pager.js', 'test/**/*.js'],
options:{
curly:true,
eqeqeq:true,
Expand Down Expand Up @@ -86,8 +86,8 @@ module.exports = function (grunt) {
});

// Default task.
grunt.registerTask('default', 'lint less qunit concat min');
grunt.registerTask('default', ['jshint', 'less', 'qunit', 'concat', 'min']);

grunt.registerTask('travis', 'qunit lint');
grunt.registerTask('travis', ['qunit', 'jshint']);

};
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@
"knockout": ">=2.2"
},
"devDependencies": {
"grunt": "~0.3.16"
"grunt": "~0.4",
"grunt-contrib-jshint": "~0.4",
"grunt-contrib-qunit": "~0.4"
},
"keywords": ["knockout"]
}
}