mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-26 17:24:56 +00:00
Improve 'upload' package config
This commit is contained in:
parent
e76b9bcc76
commit
aaed924b6f
@ -4,20 +4,15 @@
|
|||||||
"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",
|
"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",
|
|
||||||
"copytemplates:w": "concurrently \"npm run copy-html-css: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",
|
|
||||||
"tsc": "tsc",
|
"tsc": "tsc",
|
||||||
"tsc:w": "tsc -w",
|
"tsc:w": "tsc -w",
|
||||||
"pretest": "npm run build",
|
"pretest": "npm run build",
|
||||||
@ -108,13 +103,7 @@
|
|||||||
},
|
},
|
||||||
"license-check-config": {
|
"license-check-config": {
|
||||||
"src": [
|
"src": [
|
||||||
"**/*.js",
|
"./dist/**/*.js"
|
||||||
"**/*.ts",
|
|
||||||
"!/**/coverage/**/*",
|
|
||||||
"!/**/demo/**/*",
|
|
||||||
"!/**/node_modules/**/*",
|
|
||||||
"!/**/typings/**/*",
|
|
||||||
"!*.js"
|
|
||||||
],
|
],
|
||||||
"path": "assets/license_header.txt",
|
"path": "assets/license_header.txt",
|
||||||
"blocking": true,
|
"blocking": true,
|
||||||
|
@ -56,7 +56,7 @@ export class FileUploadingDialogComponent implements OnInit {
|
|||||||
constructor(private cd: ChangeDetectorRef,
|
constructor(private cd: ChangeDetectorRef,
|
||||||
translate: AlfrescoTranslationService,
|
translate: AlfrescoTranslationService,
|
||||||
private _uploaderService: UploadService) {
|
private _uploaderService: UploadService) {
|
||||||
translate.addTranslationFolder('node_modules/ng2-alfresco-upload');
|
translate.addTranslationFolder('node_modules/ng2-alfresco-upload/dist/src');
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
@ -92,7 +92,7 @@ export class UploadButtonComponent {
|
|||||||
let formFields = this.createFormFields();
|
let formFields = this.createFormFields();
|
||||||
this._uploaderService.setOptions(formFields);
|
this._uploaderService.setOptions(formFields);
|
||||||
this.translate = translate;
|
this.translate = translate;
|
||||||
this.translate.addTranslationFolder('node_modules/ng2-alfresco-upload');
|
this.translate.addTranslationFolder('node_modules/ng2-alfresco-upload/dist/src');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -66,7 +66,7 @@ export class UploadDragAreaComponent {
|
|||||||
this._uploaderService.setOptions(formFields);
|
this._uploaderService.setOptions(formFields);
|
||||||
|
|
||||||
this.translate = translate;
|
this.translate = translate;
|
||||||
this.translate.addTranslationFolder('node_modules/ng2-alfresco-upload');
|
this.translate.addTranslationFolder('node_modules/ng2-alfresco-upload/dist/src');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { EventEmitter, Injectable } from '@angular/core';
|
import { EventEmitter, Injectable } from '@angular/core';
|
||||||
import { Response } from '@angular/http';
|
import { Response } from '@angular/http';
|
||||||
import { Observable } from 'rxjs/Observable';
|
import { Observable } from 'rxjs/Observable';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user