12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- module.exports = function(grunt) {
- grunt.initConfig({
- pkg: grunt.file.readJSON('package.json'),
- qunit: {
- all: ['test/index.html', 'test/loaders.html']
- },
- jshint: {
- options: {
- sub: true,
- strict: true,
- newcap: false,
- globals: {
- jQuery: true
- }
- },
- with_overrides: {
- options: {
- strict: false
- },
- files: {
- src: ['i18n/*.js', 'test/tests.js']
- }
- },
- all: ['spectrum.js']
- },
- uglify: {
- options: {
- },
- dist: {
- files: {
- 'build/spectrum-min.js': ['spectrum.js']
- }
- }
- }
- });
- grunt.loadNpmTasks('grunt-contrib-jshint');
- grunt.loadNpmTasks('grunt-contrib-qunit');
- grunt.loadNpmTasks('grunt-contrib-uglify');
- // Testing tasks
- grunt.registerTask('test', ['jshint', 'qunit']);
- // Travis CI task.
- grunt.registerTask('travis', 'test');
- // Default task.
- grunt.registerTask('default', ['test']);
- //Build Task.
- grunt.registerTask('build', ['test', 'uglify']);
- };
|