Ticket #25096: 25096.1.diff
File 25096.1.diff, 1.9 KB (added by , 11 years ago) |
---|
-
Gruntfile.js
15 15 src: [] 16 16 }, 17 17 }, 18 connect: { 19 development: { 20 options: { 21 hostname: '0.0.0.0', 22 port: '8000' 23 } 24 } 25 }, 18 26 copy: { 19 27 all: { 20 28 dot: true, … … 45 53 ] 46 54 } 47 55 }, 56 qunit: { 57 files: ['tests/qunit/**/*.html'] 58 }, 48 59 uglify: { 49 60 core: { 50 61 expand: true, … … 95 106 spawn: false, 96 107 interval: 2000 97 108 } 109 }, 110 test: { 111 files: ['tests/qunit/**'], 112 tasks: ['qunit'], 113 options: { 114 livereload: true 115 } 98 116 } 99 117 } 100 118 }); 101 119 102 120 // Load tasks. 103 121 grunt.loadNpmTasks('grunt-contrib-clean'); 122 grunt.loadNpmTasks('grunt-contrib-connect'); 104 123 grunt.loadNpmTasks('grunt-contrib-copy'); 105 124 grunt.loadNpmTasks('grunt-contrib-cssmin'); 125 grunt.loadNpmTasks('grunt-contrib-qunit'); 106 126 grunt.loadNpmTasks('grunt-contrib-uglify'); 107 127 grunt.loadNpmTasks('grunt-contrib-watch'); 108 128 … … 110 130 grunt.registerTask('build', ['clean:all', 'copy:all', 'cssmin:core', 111 131 'uglify:core', 'uglify:tinymce']); 112 132 133 // Testing tasks. 134 grunt.registerTask('test', ['qunit']); 135 grunt.registerTask('test:debug', function() { 136 grunt.log.writeln('Run tests in a browser at http://localhost:8000/tests/qunit/'); 137 grunt.task.run(['connect', 'watch:test']); 138 }); 139 113 140 // Default task. 114 141 grunt.registerTask('default', ['build']); 115 142 -
package.json
11 11 "devDependencies": { 12 12 "grunt": "~0.4.1", 13 13 "grunt-contrib-clean": "~0.5.0", 14 "grunt-contrib-connect": "~0.3.0", 14 15 "grunt-contrib-copy": "~0.4.1", 15 16 "grunt-contrib-cssmin": "~0.6.1", 17 "grunt-contrib-qunit": "~0.2.2", 16 18 "grunt-contrib-uglify": "~0.2.2", 17 19 "grunt-contrib-watch": "~0.5.1" 18 20 }