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']);
};
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
## 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