mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
use connect instead of http server and upgrade some more packages
This commit is contained in:
12
Gruntfile.js
12
Gruntfile.js
@@ -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
|
||||
|
||||
@@ -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": [
|
||||
|
||||
Reference in New Issue
Block a user