Skip to content

Commit 3421152

Browse files
committed
Add bower config verification to build
1 parent 46b038f commit 3421152

File tree

3 files changed

+32
-25
lines changed

3 files changed

+32
-25
lines changed

Gruntfile.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = function(grunt) {
3939

4040
watch: {
4141
files: ['<%= jshint.files %>'],
42-
tasks: ['default']
42+
tasks: ['jshint', 'uglify']
4343
},
4444

4545
connect: {
@@ -49,6 +49,10 @@ module.exports = function(grunt) {
4949
base: '.'
5050
}
5151
}
52+
},
53+
54+
bowerVerify: {
55+
build: {}
5256
}
5357
});
5458

@@ -57,9 +61,10 @@ module.exports = function(grunt) {
5761
grunt.loadNpmTasks('grunt-contrib-uglify');
5862
grunt.loadNpmTasks('grunt-contrib-watch');
5963
grunt.loadNpmTasks('grunt-contrib-connect');
64+
grunt.loadNpmTasks('grunt-bower-verify');
6065

6166
// Default task(s).
62-
grunt.registerTask('default', ['jshint', 'uglify']);
67+
grunt.registerTask('default', ['jshint', 'uglify', 'bowerVerify']);
6368

64-
grunt.registerTask('dev', ['default', 'connect', 'watch']);
69+
grunt.registerTask('dev', ['jshint', 'uglify', 'connect', 'watch']);
6570
};

bower.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"repository": {
99
"type": "git",
1010
"url": "git://github.com/Nycto/PicoModal.git"
11-
}
11+
},
12+
"dependencies": {},
1213
"description": "A self-contained modal library",
1314
"main": "src/picoModal.js",
1415
"keywords": [ "modal" ],

package.json

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,24 @@
11
{
2-
"name": "PicoModal",
3-
"version": "2.0.1",
4-
"author": "James Frasca <[email protected]>",
5-
"description": "A small, self-contained JavaScript modal library",
6-
"license": "MIT",
7-
"repository": {
8-
"type": "git",
9-
"url": "https://github.com/Nycto/PicoModal.git"
10-
},
11-
"devDependencies": {
12-
"grunt": "~0.4.1",
13-
"grunt-contrib-jshint": "~0.10.0",
14-
"grunt-contrib-uglify": "~0.4.0",
15-
"grunt-contrib-watch": "~0.6.1",
16-
"grunt-string-replace": "~0.2.2",
17-
"grunt-contrib-connect": "~0.7.1"
18-
},
19-
"scripts": {
20-
"test": "grunt --verbose"
21-
},
22-
"readmeFilename": "README.md"
2+
"name": "PicoModal",
3+
"version": "2.0.1",
4+
"author": "James Frasca <[email protected]>",
5+
"description": "A small, self-contained JavaScript modal library",
6+
"license": "MIT",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/Nycto/PicoModal.git"
10+
},
11+
"devDependencies": {
12+
"grunt": "~0.4.1",
13+
"grunt-bower-verify": "^2.0.0",
14+
"grunt-contrib-connect": "~0.7.1",
15+
"grunt-contrib-jshint": "~0.10.0",
16+
"grunt-contrib-uglify": "~0.4.0",
17+
"grunt-contrib-watch": "~0.6.1",
18+
"grunt-string-replace": "~0.2.2"
19+
},
20+
"scripts": {
21+
"test": "grunt --verbose"
22+
},
23+
"readmeFilename": "README.md"
2324
}

0 commit comments

Comments
 (0)