Permalink
Browse files

Upgraded to be compatible with grunt 0.4

  • Loading branch information...
1 parent 8fbec27 commit b1c548ace9673e5660c34f35d09acc13c25fb55e @mstuart mstuart committed Mar 10, 2013
Showing with 5 additions and 39 deletions.
  1. +2 −2 .jshintrc
  2. +0 −36 grunt.js
  3. +3 −1 package.json
View
@@ -4,7 +4,7 @@
"browser": true,
- "node": false,
+ "node": true,
"rhino": false,
"couch": false,
"wsh": false,
@@ -65,4 +65,4 @@
"trailing": true,
"white": true,
"indent": 4
-}
+}
View
@@ -1,36 +0,0 @@
-var grunt = require('grunt'),
- fs = require('fs'),
- jshintOptions = JSON.parse(fs.readFileSync('./.jshintrc'));
-
-
-module.exports = function (grunt) {
-
- // Project configuration.
- grunt.initConfig({
- pkg: '<json:package.json>',
- meta: {
- banner: "/*!\n * <%= pkg.name %>\n * <%= pkg.description %>\n * @version <%= pkg.version %> - <%= grunt.template.today('yyyy-mm-dd, h:MM:ss TT') %>\n * @author <%= pkg.author.name %> <<%= pkg.author.url %>>\n */"
- },
- lint: {
- all: [ 'src/*.js', 'test/*.js' ]
- },
- jshint: {
- options: jshintOptions
- },
- min: {
- dist: {
- src: [ '<banner:meta.banner>', 'src/paypal-button.js' ],
- dest: 'dist/paypal-button.min.js'
- },
- bundled: {
- src: [ '<banner:meta.banner>', 'lib/MiniCart/minicart.js', 'src/paypal-button.js' ],
- dest: 'dist/paypal-button-minicart.min.js'
- }
- }
- });
-
-
- // Default task.
- grunt.registerTask('default', 'min');
-
-};
View
@@ -8,7 +8,9 @@
},
"dependencies": {},
"devDependencies": {
- "grunt": "0.3",
+ "grunt": "*",
+ "grunt-contrib-jshint": "*",
+ "grunt-contrib-uglify": "*",
"mocha": "~1.7.4",
"should": "*",
"jsdom": "*"

0 comments on commit b1c548a

Please sign in to comment.