Skip to content

Commit

Permalink
Add bower config verification to build
Browse files Browse the repository at this point in the history
  • Loading branch information
Nycto committed Jun 29, 2014
1 parent 46b038f commit 3421152
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 25 deletions.
11 changes: 8 additions & 3 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module.exports = function(grunt) {

watch: {
files: ['<%= jshint.files %>'],
tasks: ['default']
tasks: ['jshint', 'uglify']
},

connect: {
Expand All @@ -49,6 +49,10 @@ module.exports = function(grunt) {
base: '.'
}
}
},

bowerVerify: {
build: {}
}
});

Expand All @@ -57,9 +61,10 @@ module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-connect');
grunt.loadNpmTasks('grunt-bower-verify');

// Default task(s).
grunt.registerTask('default', ['jshint', 'uglify']);
grunt.registerTask('default', ['jshint', 'uglify', 'bowerVerify']);

grunt.registerTask('dev', ['default', 'connect', 'watch']);
grunt.registerTask('dev', ['jshint', 'uglify', 'connect', 'watch']);
};
3 changes: 2 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"repository": {
"type": "git",
"url": "git://github.com/Nycto/PicoModal.git"
}
},
"dependencies": {},
"description": "A self-contained modal library",
"main": "src/picoModal.js",
"keywords": [ "modal" ],
Expand Down
43 changes: 22 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
{
"name": "PicoModal",
"version": "2.0.1",
"author": "James Frasca <james@roundeights.com>",
"description": "A small, self-contained JavaScript modal library",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Nycto/PicoModal.git"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.4.0",
"grunt-contrib-watch": "~0.6.1",
"grunt-string-replace": "~0.2.2",
"grunt-contrib-connect": "~0.7.1"
},
"scripts": {
"test": "grunt --verbose"
},
"readmeFilename": "README.md"
"name": "PicoModal",
"version": "2.0.1",
"author": "James Frasca <james@roundeights.com>",
"description": "A small, self-contained JavaScript modal library",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/Nycto/PicoModal.git"
},
"devDependencies": {
"grunt": "~0.4.1",
"grunt-bower-verify": "^2.0.0",
"grunt-contrib-connect": "~0.7.1",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.4.0",
"grunt-contrib-watch": "~0.6.1",
"grunt-string-replace": "~0.2.2"
},
"scripts": {
"test": "grunt --verbose"
},
"readmeFilename": "README.md"
}

0 comments on commit 3421152

Please sign in to comment.