use connect instead of http server and upgrade some more packages

This commit is contained in:
Luke Page
2014-10-18 09:05:19 +01:00
parent 3eccec877c
commit 54a8a38077
2 changed files with 7 additions and 10 deletions

View File

@@ -36,14 +36,11 @@ module.exports = function (grunt) {
benchmark: {
command: 'node benchmark/less-benchmark.js'
},
"browsertest-server": {
command: 'node node_modules/http-server/bin/http-server . -p 8081'
},
"sourcemap-test": {
command: [
'node bin/lessc --source-map --source-map-map-inline test/less/import.less test/sourcemaps/import.css',
'node bin/lessc --source-map --source-map-map-inline test/less/sourcemaps/basic.less test/sourcemaps/basic.css',
'node node_modules/http-server/bin/http-server test/sourcemaps -p 8084'].join('&&')
'node bin/lessc --source-map --source-map-map-inline test/less/sourcemaps/basic.less test/sourcemaps/basic.css'
].join('&&')
}
},
@@ -285,7 +282,7 @@ module.exports = function (grunt) {
// setup a web server to run the browser tests in a browser rather than phantom
grunt.registerTask('browsertest-server', [
'browsertest-lessjs',
'shell:browsertest-server'
'connect::keepalive'
]);
// Run all tests
@@ -299,7 +296,8 @@ module.exports = function (grunt) {
// generate a good test environment for testing sourcemaps
grunt.registerTask('sourcemap-test', [
'clean:sourcemap-test',
'shell:sourcemap-test'
'shell:sourcemap-test',
'connect::keepalive'
]);
// Run benchmark

View File

@@ -56,10 +56,9 @@
"grunt-contrib-jasmine": "~0.5.2",
"grunt-contrib-jshint": "~0.10.0",
"grunt-contrib-uglify": "~0.6.0",
"grunt-shell": "~0.7.0",
"http-server": "~0.6.1",
"grunt-shell": "~1.1.1",
"matchdep": "~0.3.0",
"time-grunt": "~0.3.1",
"time-grunt": "~1.0.0",
"grunt-browserify": "~3.0.1"
},
"keywords": [