mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
Simplified package configs
- deprecate http-server and ‘proser-sync’ libs - remove useless ‘start’ and ‘server’ scripts from component projects (only demo projects need that) - decouple ‘install’ and ‘start’ scripts, ‘start’ script no longer runs second install
This commit is contained in:
@@ -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
|
||||
});
|
@@ -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 -l -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",
|
||||
@@ -42,12 +42,11 @@
|
||||
"ng2-alfresco-viewer": "^0.1.32"
|
||||
},
|
||||
"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"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
|
Reference in New Issue
Block a user