Grunt updates and travis build integration

Change-Id: Ia479b903908f01e82750e9e35dff6c6aef6c36ae
This commit is contained in:
Santhosh Thottingal
2012-09-18 21:02:29 -07:00
parent 2deeb98f6c
commit 2ce74db801
4 changed files with 21 additions and 3 deletions

5
.gitignore vendored
View File

@@ -1 +1,4 @@
/node_modules *~
.*.swp
*.kate-swp
*.bak

5
.travis.yml Normal file
View File

@@ -0,0 +1,5 @@
language: node_js
node_js:
- 0.8
before_script:
- "git submodule update --init"

View File

@@ -33,6 +33,9 @@ module.exports = function(grunt) {
dest : 'dist/<%= pkg.name %>.min.js' dest : 'dist/<%= pkg.name %>.min.js'
} }
}, },
qunit : {
files : [ 'test/**/*.html' ]
},
cssmin : { cssmin : {
dist: { dist: {
src : '<config:concat.css.dest>', src : '<config:concat.css.dest>',
@@ -82,4 +85,6 @@ module.exports = function(grunt) {
}); });
// Default task. // Default task.
grunt.registerTask('default', 'lint cssmin concat min csslint'); grunt.registerTask('default', 'lint cssmin concat min csslint');
grunt.registerTask('test', 'lint qunit');
}; };

View File

@@ -24,7 +24,9 @@
"Santhosh Thottingal", "Santhosh Thottingal",
"Siebrand Mazeland" "Siebrand Mazeland"
], ],
"dependencies": {}, "dependencies": {
"jQuery": "~1.7.3"
},
"devDependencies": { "devDependencies": {
"grunt": "~0.3.9", "grunt": "~0.3.9",
"grunt-compare-size": ">=0.1.4", "grunt-compare-size": ">=0.1.4",
@@ -49,5 +51,8 @@
"type": "MIT", "type": "MIT",
"url": "https://github.com/wikimedia/jquery.uls/blob/master/MIT-LICENSE" "url": "https://github.com/wikimedia/jquery.uls/blob/master/MIT-LICENSE"
} }
] ],
"scripts": {
"test": "grunt test --verbose"
}
} }