From c08b33b155a478b81793426ae0704f0b089bb1cd Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Tue, 31 May 2016 14:29:51 +0100 Subject: [PATCH] add license check to the demo --- demo-shell-ng2/app/app.component.ts | 2 +- .../app/components/files/files.component.ts | 2 +- .../app/components/viewer/viewer.component.ts | 2 +- demo-shell-ng2/app/main.ts | 2 +- demo-shell-ng2/package.json | 24 ++++++++++++++++--- ng2-components/ng2-alfresco-login/README.md | 1 - 6 files changed, 25 insertions(+), 8 deletions(-) diff --git a/demo-shell-ng2/app/app.component.ts b/demo-shell-ng2/app/app.component.ts index 9d598ca02f..97790f2fe0 100644 --- a/demo-shell-ng2/app/app.component.ts +++ b/demo-shell-ng2/app/app.component.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * diff --git a/demo-shell-ng2/app/components/files/files.component.ts b/demo-shell-ng2/app/components/files/files.component.ts index 1ee4258f09..bbb851bcf6 100644 --- a/demo-shell-ng2/app/components/files/files.component.ts +++ b/demo-shell-ng2/app/components/files/files.component.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * diff --git a/demo-shell-ng2/app/components/viewer/viewer.component.ts b/demo-shell-ng2/app/components/viewer/viewer.component.ts index 659bba6007..b14e2e8547 100644 --- a/demo-shell-ng2/app/components/viewer/viewer.component.ts +++ b/demo-shell-ng2/app/components/viewer/viewer.component.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * diff --git a/demo-shell-ng2/app/main.ts b/demo-shell-ng2/app/main.ts index 12ede3fa45..1a5d71ba4f 100644 --- a/demo-shell-ng2/app/main.ts +++ b/demo-shell-ng2/app/main.ts @@ -1,4 +1,4 @@ -/** +/*! * @license * Copyright 2016 Alfresco Software, Ltd. * diff --git a/demo-shell-ng2/package.json b/demo-shell-ng2/package.json index 1921bfb2f1..0ae32a6752 100644 --- a/demo-shell-ng2/package.json +++ b/demo-shell-ng2/package.json @@ -4,14 +4,15 @@ "version": "0.1.0", "author": "Alfresco Software, Ltd.", "scripts": { - "start": "npm run tslint && concurrently \"npm run tsc:w\" \"npm run serve\" ", + "start": "npm run tslint && concurrently \"npm run tsc:w\" \"license-check\" \"npm run serve\" ", "tsc": "tsc", "tsc:w": "tsc -w", "serve": "lite-server", "typings": "typings", "tslint": "npm run tslint-src && npm run tslint-root", "tslint-src": "tslint -c tslint.json app/**/*.ts", - "tslint-root": "tslint -c tslint.json *.ts" + "tslint-root": "tslint -c tslint.json *.ts", + "licensecheck": "license-check" }, "repository": { "type": "git", @@ -75,7 +76,24 @@ "lite-server": "^2.2.0", "tslint": "^3.8.1", "typescript": "^1.8.10", - "typings": "^0.7.12" + "typings": "^0.7.12", + "license-check": "^1.0.4" + }, + "license-check-config": { + "src": [ + "**/*.js", + "**/*.ts", + "!/**/coverage/**/*", + "!/**/demo/**/*", + "!/**/node_modules/**/*", + "!/**/typings/**/*", + "!*.js", + "!app/js/xml2json.js" + ], + "path": "assets/license_header.txt", + "blocking": false, + "logInfo": false, + "logError": true }, "publishConfig": { "registry": "http://devproducts.alfresco.me:4873/" diff --git a/ng2-components/ng2-alfresco-login/README.md b/ng2-components/ng2-alfresco-login/README.md index cbde23c406..b0ac733a34 100644 --- a/ng2-components/ng2-alfresco-login/README.md +++ b/ng2-components/ng2-alfresco-login/README.md @@ -14,7 +14,6 @@ ```sh npm set registry http://devproducts.alfresco.me:4873 npm install --save ng2-alfresco-core ng2-alfresco-login alfresco-core-rest-api ng2-alfresco-upload ng2-translate - ```