mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
fix tslint and package.json + build-all script
This commit is contained in:
parent
7300f403c4
commit
b6626e1c20
@ -33,10 +33,10 @@ declare var componentHandler;
|
|||||||
})
|
})
|
||||||
export class FormViewer implements OnInit, OnDestroy, AfterViewChecked {
|
export class FormViewer implements OnInit, OnDestroy, AfterViewChecked {
|
||||||
|
|
||||||
private sub: Subscription;
|
|
||||||
|
|
||||||
taskId: string;
|
taskId: string;
|
||||||
|
|
||||||
|
private sub: Subscription;
|
||||||
|
|
||||||
constructor(private formService: FormService,
|
constructor(private formService: FormService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"DOCUMENT_LIST": {
|
"DOCUMENT_LIST": {
|
||||||
"COLUMNS": {
|
"COLUMNS": {
|
||||||
"DISPLAY_NAME": "Display name",
|
"DISPLAY_NAME": "Display name",
|
||||||
"CREATED_BY": "Created by",
|
"CREATED_BY": "mario",
|
||||||
"CREATED_ON": "Created on"
|
"CREATED_ON": "Created on"
|
||||||
},
|
},
|
||||||
"ACTIONS": {
|
"ACTIONS": {
|
||||||
@ -39,5 +39,29 @@
|
|||||||
"CUSTOM": "Custom action"
|
"CUSTOM": "Custom action"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
"LOGIN": {
|
||||||
|
"LOGO": "Alfresco",
|
||||||
|
"LABEL": {
|
||||||
|
"LOGIN": "Login",
|
||||||
|
"USERNAME": "Username",
|
||||||
|
"PASSWORD": "Password",
|
||||||
|
"REMEMBER": "Remember"
|
||||||
|
},
|
||||||
|
"MESSAGES": {
|
||||||
|
"USERNAME-REQUIRED": "Required",
|
||||||
|
"USERNAME-MIN": "Your username needs to be at least 4 characters.",
|
||||||
|
"PASSWORD-REQUIRED": "Enter your password to sign in",
|
||||||
|
"LOGIN-ERROR": "You have entered an invalid username or password",
|
||||||
|
"LOGIN-SUCCESS": "Login successful"
|
||||||
|
},
|
||||||
|
"BUTTON": {
|
||||||
|
"LOGIN": "MARIO"
|
||||||
|
},
|
||||||
|
"ACTION": {
|
||||||
|
"HELP": "NEED HELP?",
|
||||||
|
"REGISTER": "REGISTER"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
"tsc:w": "tsc -w",
|
"tsc:w": "tsc -w",
|
||||||
"serve": "wsrv -o -s -l -p 3000 -a 0.0.0.0 -x ./server/versions.js",
|
"serve": "wsrv -o -s -l -p 3000 -a 0.0.0.0 -x ./server/versions.js",
|
||||||
"typings": "typings install",
|
"typings": "typings install",
|
||||||
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json app/{,**/}**.ts",
|
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'app/{,**/}**.ts'",
|
||||||
"licensecheck": "license-check"
|
"licensecheck": "license-check"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
||||||
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
||||||
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts",
|
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'",
|
||||||
"copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src",
|
"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",
|
"copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
|
@ -1,33 +1,19 @@
|
|||||||
{
|
{
|
||||||
"keywords": [
|
|
||||||
"ng2",
|
|
||||||
"angular",
|
|
||||||
"angular2",
|
|
||||||
"alfresco",
|
|
||||||
"activiti"
|
|
||||||
],
|
|
||||||
"name": "ng2-activiti-processlist",
|
"name": "ng2-activiti-processlist",
|
||||||
"description": "Show active processes from the Activiti BPM suite",
|
"description": "Show active processes from the Activiti BPM suite",
|
||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"postinstall": "typings install",
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
"typings": "typings install",
|
"typings": "typings install",
|
||||||
"server": "http-server -c-1 -o -p 8875 .",
|
"server": "wsrv -o -p 9875",
|
||||||
"build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check",
|
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
||||||
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'",
|
||||||
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
"copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts",
|
"copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w",
|
||||||
"copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images",
|
|
||||||
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-images:w\" \"npm run copy-i18n:w\"",
|
|
||||||
"copy-html-css": "cpx \"./src/**/*.{html,css}\" ./dist/src",
|
|
||||||
"copy-html-css:w": "cpx \"./src/**/*.{html,css}\" ./dist/src -w",
|
|
||||||
"copy-i18n": "cpx \"./i18n/**/*.json\" ./dist/i18n",
|
|
||||||
"copy-i18n:w": "cpx \"./i18n/**/*.json\" ./dist/i18n -w",
|
|
||||||
"copy-images": "cpx \"./src/**/*.{png,jpg,gif,svg}\" ./dist/src",
|
|
||||||
"copy-images:w": "cpx \"./src/**/*.{png,jpg,gif,svg}\" ./dist/src -w",
|
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"tsc:w": "tsc -w",
|
"tsc:w": "tsc -w",
|
||||||
"pretest": "npm run build",
|
"pretest": "npm run build",
|
||||||
@ -38,13 +24,28 @@
|
|||||||
"prepublish": "npm run build",
|
"prepublish": "npm run build",
|
||||||
"travis": "npm link ng2-alfresco-core ng2-alfresco-datatable"
|
"travis": "npm link ng2-alfresco-core ng2-alfresco-datatable"
|
||||||
},
|
},
|
||||||
|
"main": "./dist/index.js",
|
||||||
|
"typings": "./dist/index.d.ts",
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://github.com/Alfresco/alfresco-ng2-components"
|
"url": "https://github.com/Alfresco/alfresco-ng2-components.git"
|
||||||
},
|
},
|
||||||
"bugs": {
|
"bugs": {
|
||||||
"url": "https://github.com/Alfresco/alfresco-ng2-components/issues"
|
"url": "https://github.com/Alfresco/alfresco-ng2-components/issues"
|
||||||
},
|
},
|
||||||
|
"license": "Apache-2.0",
|
||||||
|
"contributors": [
|
||||||
|
{
|
||||||
|
"name": "Will Abson",
|
||||||
|
"email": "will.abson@alfresco.com"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"keywords": [
|
||||||
|
"ng2",
|
||||||
|
"angular",
|
||||||
|
"angular2",
|
||||||
|
"alfresco"
|
||||||
|
],
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/common": "2.0.0-rc.3",
|
"@angular/common": "2.0.0-rc.3",
|
||||||
"@angular/compiler": "2.0.0-rc.3",
|
"@angular/compiler": "2.0.0-rc.3",
|
||||||
@ -102,12 +103,5 @@
|
|||||||
"blocking": false,
|
"blocking": false,
|
||||||
"logInfo": false,
|
"logInfo": false,
|
||||||
"logError": true
|
"logError": true
|
||||||
},
|
}
|
||||||
"license": "Apache-2.0",
|
|
||||||
"contributors": [
|
|
||||||
{
|
|
||||||
"name": "Will Abson",
|
|
||||||
"email": "will.abson@alfresco.com"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
@ -60,7 +60,7 @@ export class Ng2ActivitiProcesslistComponent implements OnInit {
|
|||||||
private translate: AlfrescoTranslationService
|
private translate: AlfrescoTranslationService
|
||||||
) {
|
) {
|
||||||
if (translate !== null) {
|
if (translate !== null) {
|
||||||
translate.addTranslationFolder('node_modules/ng2-activiti-processlist');
|
translate.addTranslationFolder('node_modules/ng2-activiti-processlist/src');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4,22 +4,16 @@
|
|||||||
"version": "0.2.0",
|
"version": "0.2.0",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
"postinstall": "typings install",
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
"typings": "typings install",
|
"typings": "typings install",
|
||||||
"build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check",
|
"server": "wsrv -o -p 9875",
|
||||||
"build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task",
|
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
|
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
||||||
"tslint": "npm run tslint-src && npm run tslint-root",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
||||||
"tslint-src": "tslint -c tslint.json src/{,**/}**.ts",
|
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'",
|
||||||
"tslint-root": "tslint -c tslint.json *.ts",
|
"copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src",
|
||||||
"copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images",
|
"copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w",
|
||||||
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-images:w\" \"npm run copy-i18n:w\"",
|
|
||||||
"copy-html-css": "cpx \"./src/**/*.{html,css}\" ./dist/src",
|
|
||||||
"copy-html-css:w": "cpx \"./src/**/*.{html,css}\" ./dist/src -w",
|
|
||||||
"copy-i18n": "cpx \"./i18n/**/*.json\" ./dist/i18n",
|
|
||||||
"copy-i18n:w": "cpx \"./i18n/**/*.json\" ./dist/i18n -w",
|
|
||||||
"copy-images": "cpx \"./src/**/*.{png,jpg,gif,svg}\" ./dist/src",
|
|
||||||
"copy-images:w": "cpx \"./src/**/*.{png,jpg,gif,svg}\" ./dist/src -w",
|
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"tsc:w": "tsc -w",
|
"tsc:w": "tsc -w",
|
||||||
"pretest": "npm run build",
|
"pretest": "npm run build",
|
||||||
|
@ -71,7 +71,7 @@ export class ActivitiTaskList implements OnInit {
|
|||||||
public activiti: ActivitiTaskListService) {
|
public activiti: ActivitiTaskListService) {
|
||||||
|
|
||||||
if (translate) {
|
if (translate) {
|
||||||
translate.addTranslationFolder('node_modules/ng2-activiti-tasklist');
|
translate.addTranslationFolder('node_modules/ng2-activiti-tasklist/src');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
"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",
|
"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\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"license-check\"",
|
||||||
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts",
|
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'",
|
||||||
"licensecheck": "license-check",
|
"licensecheck": "license-check",
|
||||||
"copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src",
|
"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",
|
"copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w",
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
||||||
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
||||||
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts",
|
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'",
|
||||||
"copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src",
|
"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",
|
"copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
||||||
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
||||||
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts",
|
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'",
|
||||||
"copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src",
|
"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",
|
"copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
||||||
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
||||||
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts",
|
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'",
|
||||||
"copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src",
|
"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",
|
"copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
||||||
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
||||||
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts",
|
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'",
|
||||||
"copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src",
|
"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",
|
"copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
||||||
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
||||||
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts",
|
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'",
|
||||||
"copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src",
|
"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",
|
"copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
|
@ -11,4 +11,6 @@ src/**/*.d.ts
|
|||||||
demo/**/*.js
|
demo/**/*.js
|
||||||
demo/**/*.js.map
|
demo/**/*.js.map
|
||||||
demo/**/*.d.ts
|
demo/**/*.d.ts
|
||||||
|
index.js
|
||||||
|
index.js.map
|
||||||
!systemjs.config.js
|
!systemjs.config.js
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
||||||
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
||||||
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts",
|
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'",
|
||||||
"copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src",
|
"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",
|
"copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
|
@ -10,4 +10,6 @@ src/**/*.d.ts
|
|||||||
demo/**/*.js
|
demo/**/*.js
|
||||||
demo/**/*.js.map
|
demo/**/*.js.map
|
||||||
demo/**/*.d.ts
|
demo/**/*.d.ts
|
||||||
|
index.js
|
||||||
|
index.js.map
|
||||||
!systemjs.config.js
|
!systemjs.config.js
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
|
||||||
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
"build:w": "npm run tslint && rimraf dist && npm run watch-task",
|
||||||
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",
|
||||||
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json src/{,**/}**.ts",
|
"tslint": "tslint -c tslint.json *.ts && tslint -c tslint.json 'src/{,**/}**.ts'",
|
||||||
"copy-dist": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src",
|
"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",
|
"copy-dist:w": "cpx \"./src/**/*.{html,css,json,png,jpg,gif,svg}\" ./dist/src -w",
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
|
23
scripts/npm-build-all.sh
Executable file
23
scripts/npm-build-all.sh
Executable file
@ -0,0 +1,23 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
for PACKAGE in \
|
||||||
|
ng2-activiti-form \
|
||||||
|
ng2-activiti-processlist \
|
||||||
|
ng2-activiti-tasklist \
|
||||||
|
ng2-alfresco-core \
|
||||||
|
ng2-alfresco-datatable \
|
||||||
|
ng2-alfresco-documentlist \
|
||||||
|
ng2-alfresco-login \
|
||||||
|
ng2-alfresco-search \
|
||||||
|
ng2-alfresco-upload \
|
||||||
|
ng2-alfresco-viewer \
|
||||||
|
ng2-alfresco-webscript
|
||||||
|
do
|
||||||
|
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
|
||||||
|
echo "====== build components : ${PACKAGE} ====="
|
||||||
|
cd "$DESTDIR"
|
||||||
|
npm install
|
||||||
|
npm run build
|
||||||
|
done
|
Loading…
x
Reference in New Issue
Block a user