#82 Unified static web server

- replaced ‘http-server’ and ‘lite-server’ with ‘wsrv’ dependency
This commit is contained in:
Denys Vuika 2016-06-06 10:27:16 +01:00
parent 8c2243dd9b
commit abd045dc4f
2 changed files with 51 additions and 53 deletions

View File

@ -14,7 +14,7 @@
"postinstall": "npm run typings && npm run build", "postinstall": "npm run typings && npm run build",
"typings": "typings install", "typings": "typings install",
"start": "rm -rf dist && npm install && npm run server", "start": "rm -rf dist && npm install && npm run server",
"server": "lite-server", "server": "wsrv -o",
"build": "npm run tslint && rm -rf dist && tsc", "build": "npm run tslint && rm -rf dist && tsc",
"tslint": "npm run tslint-src && npm run tslint-root", "tslint": "npm run tslint-src && npm run tslint-root",
"tslint-src": "tslint -c tslint.json src/**/*.ts", "tslint-src": "tslint -c tslint.json src/**/*.ts",
@ -35,10 +35,10 @@
"devDependencies": { "devDependencies": {
"browser-sync": "^2.10.0", "browser-sync": "^2.10.0",
"concurrently": "^2.0.0", "concurrently": "^2.0.0",
"lite-server": "^2.2.0",
"tslint": "^3.8.1", "tslint": "^3.8.1",
"typescript": "^1.8.10", "typescript": "^1.8.10",
"typings": "^0.7.12" "typings": "^0.7.12",
"wsrv": "^0.1.0"
}, },
"keywords": [ "keywords": [
"angular2", "angular2",

View File

@ -5,8 +5,6 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"typings": "typings install", "typings": "typings install",
"start": "npm run build && npm run server",
"server": "http-server -c-1 -o -p 8875 .",
"build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", "build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check",
"tslint": "npm run tslint-src && npm run tslint-root", "tslint": "npm run tslint-src && npm run tslint-root",
"tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ", "tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ",
@ -21,7 +19,7 @@
"test": "karma start karma.conf.js --reporters mocha --single-run", "test": "karma start karma.conf.js --reporters mocha --single-run",
"test-browser": "karma start karma.conf.js --reporters kjhtml ", "test-browser": "karma start karma.conf.js --reporters kjhtml ",
"posttest": "node_modules/.bin/remap-istanbul -i coverage/report/coverage-final.json -o coverage/report -t html", "posttest": "node_modules/.bin/remap-istanbul -i coverage/report/coverage-final.json -o coverage/report -t html",
"coverage": "http-server -c-1 -o -p 9875 ./coverage/report", "coverage": "wsrv -o -p 9875 ./coverage/report",
"prepublish": "npm run build" "prepublish": "npm run build"
}, },
"repository": { "repository": {
@ -60,20 +58,20 @@
"devDependencies": { "devDependencies": {
"copyfiles": "^0.2.1", "copyfiles": "^0.2.1",
"coveralls": "^2.11.9", "coveralls": "^2.11.9",
"http-server": "0.8.5",
"jasmine-core": "2.4.1", "jasmine-core": "2.4.1",
"karma": "~0.13.22", "karma": "~0.13.22",
"karma-chrome-launcher": "~1.0.1", "karma-chrome-launcher": "~1.0.1",
"karma-coverage": "^1.0.0", "karma-coverage": "^1.0.0",
"karma-jasmine": "~1.0.2", "karma-jasmine": "~1.0.2",
"karma-mocha-reporter": "^2.0.3",
"karma-jasmine-html-reporter": "^0.2.0", "karma-jasmine-html-reporter": "^0.2.0",
"karma-mocha-reporter": "^2.0.3",
"license-check": "^1.0.4", "license-check": "^1.0.4",
"remap-istanbul": "^0.6.3", "remap-istanbul": "^0.6.3",
"traceur": "^0.0.91", "traceur": "^0.0.91",
"tslint": "^3.8.1", "tslint": "^3.8.1",
"typescript": "^1.8.10", "typescript": "^1.8.10",
"typings": "^0.7.12" "typings": "^0.7.12",
"wsrv": "^0.1.0"
}, },
"license-check-config": { "license-check-config": {
"src": [ "src": [