Ticket #25096: 25096.2.diff
File 25096.2.diff, 1.4 KB (added by , 11 years ago) |
---|
-
Gruntfile.js
56 56 qunit: { 57 57 files: ['tests/qunit/**/*.html'] 58 58 }, 59 connect: { 60 development: { 61 options: { 62 hostname: '0.0.0.0', 63 port: '8000' 64 } 65 } 66 }, 59 67 uglify: { 60 68 core: { 61 69 expand: true, … … 118 126 // Load tasks. 119 127 grunt.loadNpmTasks('grunt-contrib-clean'); 120 128 grunt.loadNpmTasks('grunt-contrib-copy'); 129 grunt.loadNpmTasks('grunt-contrib-connect'); 121 130 grunt.loadNpmTasks('grunt-contrib-cssmin'); 122 131 grunt.loadNpmTasks('grunt-contrib-qunit'); 123 132 grunt.loadNpmTasks('grunt-contrib-uglify'); … … 129 138 130 139 // Testing task. 131 140 grunt.registerTask('test', ['qunit']); 141 grunt.registerTask('test:debug', function() { 142 grunt.log.writeln('Run tests in a browser at http://localhost:8000/tests/qunit/'); 143 grunt.task.run(['connect', 'watch:test']); 144 }); 132 145 133 146 // Default task. 134 147 grunt.registerTask('default', ['build']); -
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", 16 17 "grunt-contrib-qunit": "~0.2.2",