source: other-projects/nz-flag-design/trunk/main-form/bgrins-spectrum/Gruntfile.js@ 29741

Last change on this file since 29741 was 29741, checked in by davidb, 9 years ago

Support JS library for colour picker

  • Property svn:executable set to *
File size: 1.1 KB
Line 
1
2module.exports = function(grunt) {
3
4 grunt.initConfig({
5 pkg: grunt.file.readJSON('package.json'),
6
7 qunit: {
8 all: ['test/index.html', 'test/loaders.html']
9 },
10
11 jshint: {
12 options: {
13 sub: true,
14 strict: true,
15 newcap: false,
16 globals: {
17 jQuery: true
18 }
19 },
20
21 with_overrides: {
22 options: {
23 strict: false
24 },
25 files: {
26 src: ['i18n/*.js', 'test/tests.js']
27 },
28 },
29
30 all: ['spectrum.js']
31 },
32
33
34 uglify: {
35 options: {
36 mangle: false
37 },
38 dist: {
39 files: {
40 'build/spectrum-min.js': ['spectrum.js']
41 }
42 }
43 }
44
45 });
46
47
48 grunt.loadNpmTasks('grunt-contrib-jshint');
49 grunt.loadNpmTasks('grunt-contrib-qunit');
50 grunt.loadNpmTasks('grunt-contrib-uglify');
51
52
53 // Testing tasks
54 grunt.registerTask('test', ['jshint', 'qunit']);
55
56 // Travis CI task.
57 grunt.registerTask('travis', 'test');
58
59 // Default task.
60 grunt.registerTask('default', ['test']);
61
62 //Build Task.
63 grunt.registerTask('build', ['test', 'uglify']);
64
65};
Note: See TracBrowser for help on using the repository browser.