From a09051e24bd3b12901558659b52516d8a1a7eec3 Mon Sep 17 00:00:00 2001 From: Denys Vuika Date: Fri, 15 Jul 2016 12:03:35 +0100 Subject: [PATCH] Improve 'Core' package config --- ng2-components/ng2-alfresco-core/package.json | 21 +++++++------------ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/ng2-components/ng2-alfresco-core/package.json b/ng2-components/ng2-alfresco-core/package.json index 349d0ee108..4f8af8938e 100644 --- a/ng2-components/ng2-alfresco-core/package.json +++ b/ng2-components/ng2-alfresco-core/package.json @@ -4,17 +4,16 @@ "version": "0.2.0", "author": "Alfresco Software, Ltd.", "scripts": { + "postinstall": "typings install", "clean": "rimraf dist node_modules typings", "typings": "typings install", - "build": "npm run tslint && typings install && rimraf dist && tsc && npm run copy-static && license-check", - "build:w": "npm run tslint && typings install && rimraf dist && tsc && npm run copy-static:w && npm run watch-task", + "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", + "build:w": "npm run tslint && rimraf dist && tsc && npm run copy-dist:w && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"license-check\"", - "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", - "tslint-root": "tslint -c tslint.json *.ts", + "tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts", "licensecheck": "license-check", - "copy-static": "cpx \"./src/**/*.{html,css}\" ./dist/src", - "copy-static:w": "cpx \"./src/**/*.{html,css}\" ./dist/src -w", + "copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src", + "copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w", "tsc": "tsc", "tsc:w": "tsc -w", "pretest": "npm run build", @@ -101,13 +100,7 @@ }, "license-check-config": { "src": [ - "**/*.js", - "**/*.ts", - "!/**/coverage/**/*", - "!/**/demo/**/*", - "!/**/node_modules/**/*", - "!/**/typings/**/*", - "!*.js" + "./dist/**/*.js" ], "path": "assets/license_header.txt", "blocking": true,