#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

@ -1,50 +1,50 @@
{ {
"name": "ng2-alfresco-datatable-demo", "name": "ng2-alfresco-datatable-demo",
"description": "Alfresco Angular2 DataTable Component - Demo", "description": "Alfresco Angular2 DataTable Component - Demo",
"version": "0.1.0", "version": "0.1.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"contributors": [ "contributors": [
{ {
"name": "Denys Vuika", "name": "Denys Vuika",
"email": "denis.vuyka@gmail.com" "email": "denis.vuyka@gmail.com"
}
],
"main": "index.js",
"scripts": {
"postinstall": "npm run typings && npm run build",
"typings": "typings install",
"start": "rm -rf dist && npm install && npm run server",
"server": "lite-server",
"build": "npm run tslint && rm -rf dist && tsc",
"tslint": "npm run tslint-src && npm run tslint-root",
"tslint-src": "tslint -c tslint.json src/**/*.ts",
"tslint-root": "tslint -c tslint.json *.ts"
},
"license": "Apache-2.0",
"dependencies": {
"angular2": "2.0.0-beta.15",
"es6-promise": "3.0.2",
"es6-shim": "0.35.0",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2",
"material-design-icons": "^2.2.3",
"material-design-lite": "^1.1.3",
"zone.js": "0.6.10",
"ng2-alfresco-datatable": "^0.1.0"
},
"devDependencies": {
"browser-sync": "^2.10.0",
"concurrently": "^2.0.0",
"lite-server": "^2.2.0",
"tslint": "^3.8.1",
"typescript": "^1.8.10",
"typings": "^0.7.12"
},
"keywords": [
"angular2",
"typescript"
],
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
} }
],
"main": "index.js",
"scripts": {
"postinstall": "npm run typings && npm run build",
"typings": "typings install",
"start": "rm -rf dist && npm install && npm run server",
"server": "wsrv -o",
"build": "npm run tslint && rm -rf dist && tsc",
"tslint": "npm run tslint-src && npm run tslint-root",
"tslint-src": "tslint -c tslint.json src/**/*.ts",
"tslint-root": "tslint -c tslint.json *.ts"
},
"license": "Apache-2.0",
"dependencies": {
"angular2": "2.0.0-beta.15",
"es6-promise": "3.0.2",
"es6-shim": "0.35.0",
"reflect-metadata": "0.1.2",
"rxjs": "5.0.0-beta.2",
"material-design-icons": "^2.2.3",
"material-design-lite": "^1.1.3",
"zone.js": "0.6.10",
"ng2-alfresco-datatable": "^0.1.0"
},
"devDependencies": {
"browser-sync": "^2.10.0",
"concurrently": "^2.0.0",
"tslint": "^3.8.1",
"typescript": "^1.8.10",
"typings": "^0.7.12",
"wsrv": "^0.1.0"
},
"keywords": [
"angular2",
"typescript"
],
"publishConfig": {
"registry": "http://devproducts.alfresco.me:4873/"
}
} }

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": [