Add grunt task to update submodules and update README.
authorSalvatore Iovene <salvatore@iovene.com>
Mon, 29 Apr 2013 11:47:22 +0000 (14:47 +0300)
committerSalvatore Iovene <salvatore@iovene.com>
Mon, 29 Apr 2013 11:47:22 +0000 (14:47 +0300)
Gruntfile.js
README.md

index 421b474..137e097 100644 (file)
@@ -238,6 +238,7 @@ module.exports = function(grunt) {
   grunt.loadNpmTasks('grunt-exec');
   grunt.loadNpmTasks('grunt-contrib-compress');
 
+  grunt.registerTask('submodules', ['update_submodules'])
   grunt.registerTask('test', ['qunit']);
   grunt.registerTask('default', ['update_submodules', 'clean', 'jshint', 'less', 'concat', 'qunit', 'uglify', 'cssmin', 'copy', 'exec:build_docs', 'compress']);
 };
index d096cdf..79acff2 100644 (file)
--- a/README.md
+++ b/README.md
@@ -24,10 +24,9 @@ jQuery, jQuery UI, Twitter Boostrap, Underscore
 Building requires `npm`. There are only three simple steps to installing
 Cowhide:
 
-    source env.sh
+    npm install -g grunt-cli
     npm install
-    git submodule init
-    git submodule update
+    grunt submodules
     (cd lib/jquery; npm install; grunt)
     (cd lib/jquery-ui; npm install; grunt build)
     grunt
@@ -35,11 +34,6 @@ Cowhide:
 
 ## Testing
 
-To run the unit tests, you will need `phantomjs`. You can install it on Ubuntu
-with:
+Just run:
 
-    apt-get install phantomjs
-
-Then run:
-
-    ./tests/run.sh
+    grunt test