From 97c99050467a7a77818751cef24ffd19a2a055c4 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Tue, 28 Jun 2016 11:11:02 +0100 Subject: [PATCH] Clean package files - remove unnecessary start script - get rid of the http-server dependency - get rid of the browser-sync dependency --- .../demo/browser-sync-config.js | 23 ------------------- .../demo/package.json | 9 ++++---- .../ng2-alfresco-documentlist/package.json | 7 +++--- 3 files changed, 7 insertions(+), 32 deletions(-) delete mode 100644 ng2-components/ng2-alfresco-documentlist/demo/browser-sync-config.js diff --git a/ng2-components/ng2-alfresco-documentlist/demo/browser-sync-config.js b/ng2-components/ng2-alfresco-documentlist/demo/browser-sync-config.js deleted file mode 100644 index bd5f084318..0000000000 --- a/ng2-components/ng2-alfresco-documentlist/demo/browser-sync-config.js +++ /dev/null @@ -1,23 +0,0 @@ -var browserSync = require("browser-sync").create(); -var historyApiFallback = require('connect-history-api-fallback'); - -browserSync.init({ - - server: { - baseDir: './', - middleware: [ historyApiFallback() ] - }, - - files: [ - 'index.html', - 'dist/**/*.{html,htm,css,js}', - 'node_modules/ng2-alfresco-core/dist/**/*.{html,htm,css,js}', - 'node_modules/ng2-alfresco-datatable/dist/**/*.{html,htm,css,js}', - 'node_modules/ng2-alfresco-documentlist/dist/**/*.{html,htm,css,js}', - 'node_modules/ng2-alfresco-login/dist/**/*.{html,htm,css,js}', - 'node_modules/ng2-alfresco-search/dist/**/*.{html,htm,css,js}', - 'node_modules/ng2-alfresco-upload/dist/**/*.{html,htm,css,js}', - 'node_modules/ng2-alfresco-viewer/dist/**/*.{html,htm,css,js}'], - - reloadDelay: 1000 -}); diff --git a/ng2-components/ng2-alfresco-documentlist/demo/package.json b/ng2-components/ng2-alfresco-documentlist/demo/package.json index b2839dc96d..c179dddd8b 100644 --- a/ng2-components/ng2-alfresco-documentlist/demo/package.json +++ b/ng2-components/ng2-alfresco-documentlist/demo/package.json @@ -8,8 +8,8 @@ "clean": "rimraf dist node_modules typings", "typings": "typings install", "postinstall": "npm run typings && npm run build", - "start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ", - "server": "node browser-sync-config.js", + "start": "concurrently \"npm run build:w\" \"npm run server\" ", + "server": "wsrv -o -s", "build": "npm run tslint && rimraf dist && tsc", "build:w": "npm run tslint && rimraf dist && tsc -w", "tslint": "npm run tslint-src && npm run tslint-root", @@ -44,12 +44,11 @@ "ng2-alfresco-documentlist": "0.1.34" }, "devDependencies": { - "browser-sync": "2.10.0", - "connect-history-api-fallback": "1.2.0", "concurrently": "2.0.0", "tslint": "3.8.1", "typescript": "1.8.10", - "typings": "1.0.4" + "typings": "1.0.4", + "wsrv": "0.1.3" }, "keywords": [ "angular2", diff --git a/ng2-components/ng2-alfresco-documentlist/package.json b/ng2-components/ng2-alfresco-documentlist/package.json index bf9be0469f..44c3bd07e1 100644 --- a/ng2-components/ng2-alfresco-documentlist/package.json +++ b/ng2-components/ng2-alfresco-documentlist/package.json @@ -6,7 +6,6 @@ "scripts": { "clean": "rimraf dist node_modules typings", "typings": "typings install", - "server": "http-server -c-1 -o -p 8875 .", "build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check", "build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"", @@ -27,7 +26,7 @@ "test": "karma start karma.conf.js --reporters mocha,coverage --single-run", "test-browser": "concurrently \"karma start karma.conf.js --reporters kjhtml\" \"npm run watch-task\"", "posttest": "node_modules/.bin/remap-istanbul -i coverage/report/coverage-final.json -o coverage/report -t html", - "coverage": "npm run test && http-server -c-1 -o -p 9875 ./coverage/report", + "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "prepublish": "npm run build" }, "main": "./dist/index.js", @@ -85,7 +84,6 @@ "concurrently": "2.1.0", "coveralls": "2.11.9", "cpx": "1.3.1", - "http-server": "0.8.5", "jasmine-core": "2.4.1", "karma": "0.13.22", "karma-chrome-launcher": "1.0.1", @@ -98,7 +96,8 @@ "traceur": "0.0.91", "tslint": "3.8.1", "typescript": "1.8.10", - "typings": "1.0.4" + "typings": "1.0.4", + "wsrv": "0.1.3" }, "license-check-config": { "src": [