add license check to the demo

This commit is contained in:
Mario Romano
2016-05-31 14:29:51 +01:00
parent d603273308
commit c08b33b155
6 changed files with 25 additions and 8 deletions

View File

@@ -1,4 +1,4 @@
/**
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*

View File

@@ -1,4 +1,4 @@
/**
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*

View File

@@ -1,4 +1,4 @@
/**
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*

View File

@@ -1,4 +1,4 @@
/**
/*!
* @license
* Copyright 2016 Alfresco Software, Ltd.
*

View File

@@ -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/"

View File

@@ -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
```