Skip to content

Commit

Permalink
Add grunt-browserify for commonJS tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuLoutre committed Apr 15, 2014
1 parent 77ed145 commit 7cd50c1
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 3 deletions.
19 changes: 17 additions & 2 deletions Gruntfile.js
Expand Up @@ -3,7 +3,7 @@ module.exports = function(grunt) {
grunt.initConfig({

jshint: {
files: ["lscache.js"],
files: ["lscache.js", "./tests/tests.js"],
},
uglify: {
dist: {
Expand All @@ -19,13 +19,28 @@ module.exports = function(grunt) {
tagName: '%VERSION%',
push: false
}
},
browserify: {
app: {
src: ["./tests/tests.js"],
dest: "./tests/tests-cjs.js",
options: {
shim: {
qunit: {
path: "./tests/qunit.js",
exports: 'qunit'
}
}
}
}
}
});

grunt.loadNpmTasks("grunt-contrib-uglify");
grunt.loadNpmTasks("grunt-contrib-jshint");
grunt.loadNpmTasks('grunt-bump');
grunt.loadNpmTasks('grunt-browserify');

grunt.registerTask("default", ["jshint", "uglify"]);
grunt.registerTask("default", ["jshint", "uglify", "browserify"]);

};
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -14,6 +14,7 @@
"grunt-cli": "~0.1.13",
"grunt-contrib-jshint": "~0.8.0",
"grunt-contrib-uglify": "~0.3.0",
"grunt-bump": "0.0.13"
"grunt-bump": "0.0.13",
"grunt-browserify": "1.3.x"
}
}

0 comments on commit 7cd50c1

Please sign in to comment.