Skip to content

Commit

Permalink
Merge pull request #44 from bboyle/bower-ignore
Browse files Browse the repository at this point in the history
Bower ignore
  • Loading branch information
bboyle committed Apr 3, 2014
2 parents a0de41d + c347ffe commit d8cb70e
Show file tree
Hide file tree
Showing 6 changed files with 477 additions and 10 deletions.
7 changes: 4 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,14 @@ Regarding code style like indentation and whitespace, **follow the conventions y
While Grunt can run the included unit tests via [PhantomJS](http://phantomjs.org/), this shouldn't be considered a substitute for the real thing. Please be sure to test the `test/*.html` unit test file(s) in _actual_ browsers.

## Modifying the code
First, ensure that you have the latest [Node.js](http://nodejs.org/) and [npm](http://npmjs.org/) installed.
First, ensure that you have the latest [Node.js](http://nodejs.org/), [npm](http://npmjs.org/) and [bower](http://bower.io/) installed.

Test that Grunt's CLI is installed by running `grunt --version`. If the command isn't found, run `npm install -g grunt-cli`. For more information about installing Grunt, see the [getting started guide](http://gruntjs.com/getting-started).

1. Fork and clone the repo.
1. Run `npm install` to install all dependencies (including Grunt).
1. Run `grunt` to grunt this project.
2. Run `npm install` to install all dependencies (including Grunt).
3. Run `bower install` to install all dependencies (including Grunt).
4. Run `grunt` to grunt this project.

Assuming that you don't see any red, you're ready to go. Just be sure to run `grunt` after making any changes, to ensure that nothing is broken.

Expand Down
15 changes: 13 additions & 2 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,23 @@ module.exports = function( grunt ) {


// production pipeline tasks
concat: {
options: {
banner: '<%= banner %>',
stripBanners: true
},
dist: {
src: [ 'src/<%= pkg.name %>.js' ],
dest: 'dist/<%= pkg.name %>.js'
}
},
uglify: {
options: {
banner: '<%= banner %>'
},
dist: {
files: {
'dist/<%= pkg.name %>.min.js': [ 'src/<%= pkg.name %>.js' ]
'dist/<%= pkg.name %>.min.js': [ 'dist/<%= pkg.name %>.js' ]
}
},
},
Expand Down Expand Up @@ -117,6 +127,7 @@ module.exports = function( grunt ) {

// These plugins provide necessary tasks.
grunt.loadNpmTasks( 'grunt-contrib-clean' );
grunt.loadNpmTasks( 'grunt-contrib-concat' );
grunt.loadNpmTasks( 'grunt-contrib-uglify' );
grunt.loadNpmTasks( 'grunt-contrib-connect' );
grunt.loadNpmTasks( 'grunt-contrib-qunit' );
Expand All @@ -125,7 +136,7 @@ module.exports = function( grunt ) {

// Default task.
grunt.registerTask( 'test', [ 'jshint', 'connect', 'qunit' ]);
grunt.registerTask( 'produce', [ 'clean', 'uglify' ]);
grunt.registerTask( 'produce', [ 'clean', 'concat', 'uglify' ]);
grunt.registerTask( 'default', [ 'test', 'produce' ]);

};
6 changes: 5 additions & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "form-validation",
"version": "1.0.2",
"version": "1.0.3",
"homepage": "https://github.com/bboyle/form-validation",
"authors": [
"Ben Boyle <[email protected]>"
Expand All @@ -20,6 +20,10 @@
"private": true,
"ignore": [
"**/.*",
"bower.json",
"CONTRIBUTING.md",
"Gruntfile.js",
"package.json",
"libs",
"node_modules",
"bower_components",
Expand Down
Loading

0 comments on commit d8cb70e

Please sign in to comment.