diff --git a/demo-shell-ng2/package.json b/demo-shell-ng2/package.json index 8ce81ce4f9..5e3d1cef7d 100644 --- a/demo-shell-ng2/package.json +++ b/demo-shell-ng2/package.json @@ -4,14 +4,14 @@ "version": "0.1.0", "author": "Alfresco Software, Ltd.", "scripts": { - "clean": "rm -rf node_modules typings", + "clean": "rimraf node_modules typings", "start": "npm run tslint && typings install && concurrently \"npm run tsc:w\" \"license-check\" \"npm run serve\" ", "tsc": "tsc", "tsc:w": "tsc -w", "serve": "node browser-sync-config.js", "typings": "typings install", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json app/**/*.ts", + "tslint-src": "tslint -c tslint.json app/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts", "licensecheck": "license-check" }, @@ -80,7 +80,8 @@ "ng2-alfresco-login": "^0.1.0", "ng2-alfresco-search": "^0.1.9", "ng2-alfresco-upload": "^0.1.0", - "ng2-alfresco-viewer": "^0.1.13" + "ng2-alfresco-viewer": "^0.1.13", + "rimraf": "^2.5.2" }, "devDependencies": { "browser-sync": "^2.10.0", diff --git a/ng2-components/ng2-alfresco-core/package.json b/ng2-components/ng2-alfresco-core/package.json index 672df35ff1..5615899d00 100644 --- a/ng2-components/ng2-alfresco-core/package.json +++ b/ng2-components/ng2-alfresco-core/package.json @@ -4,18 +4,21 @@ "version": "0.1.34", "author": "Alfresco Software, Ltd.", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "typings": "typings install", "start": "npm run build && npm run server", "server": "http-server -c-1 -o -p 8875 .", - "build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", + "build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts", - "copytemplates": "npm run copy-html && npm run copy-css && npm run copy-i18n", - "copy-html": "copyfiles './src/**/*.html' dist", - "copy-css": "copyfiles './src/**/*.css' dist", - "copy-i18n": "copyfiles './i18n/**/*.json' dist", + "copytemplates": "npm run copy-html-css && npm run copy-i18n", + "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", "licensecheck": "license-check", "tsc": "tsc", "pretest": "npm run build", @@ -61,16 +64,17 @@ "@angular/router": "2.0.0-rc.2", "@angular/router-deprecated": "2.0.0-rc.2", "@angular/upgrade": "2.0.0-rc.2", - "systemjs": "0.19.27", - "core-js": "^2.4.0", - "reflect-metadata": "^0.1.3", - "rxjs": "5.0.0-beta.6", - "zone.js": "^0.6.12", "angular2-in-memory-web-api": "0.0.12", - "ng2-translate": "2.2.0" + "core-js": "^2.4.0", + "ng2-translate": "2.2.0", + "reflect-metadata": "^0.1.3", + "rimraf": "^2.5.2", + "rxjs": "5.0.0-beta.6", + "systemjs": "0.19.27", + "zone.js": "^0.6.12" }, "devDependencies": { - "copyfiles": "^0.2.1", + "cpx": "^1.3.1", "coveralls": "^2.11.9", "http-server": "0.8.5", "jasmine-ajax": "^3.2.0", diff --git a/ng2-components/ng2-alfresco-datatable/demo/package.json b/ng2-components/ng2-alfresco-datatable/demo/package.json index e9ea099321..141af69f4c 100644 --- a/ng2-components/ng2-alfresco-datatable/demo/package.json +++ b/ng2-components/ng2-alfresco-datatable/demo/package.json @@ -11,14 +11,14 @@ ], "main": "index.js", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "postinstall": "npm run typings && npm run build", "typings": "typings install", - "start": "rm -rf dist && npm install && npm run server", + "start": "rimraf dist && npm install && npm run server", "server": "wsrv -o", - "build": "npm run tslint && rm -rf dist && tsc", + "build": "npm run tslint && rimraf dist && tsc", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts" }, "license": "Apache-2.0", @@ -38,6 +38,7 @@ "rxjs": "5.0.0-beta.6", "zone.js": "^0.6.12", "angular2-in-memory-web-api": "0.0.12", + "rimraf": "^2.5.2", "material-design-icons": "^2.2.3", "material-design-lite": "^1.1.3", diff --git a/ng2-components/ng2-alfresco-datatable/package.json b/ng2-components/ng2-alfresco-datatable/package.json index 171be3c6ed..e94fbe425d 100644 --- a/ng2-components/ng2-alfresco-datatable/package.json +++ b/ng2-components/ng2-alfresco-datatable/package.json @@ -4,21 +4,21 @@ "version": "0.1.11", "author": "Alfresco Software, Ltd.", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "typings": "typings install", "server": "wsrv -o -p 9875", - "build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", - "build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", + "build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check", + "build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts", "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", + "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:w": "tsc -w", "pretest": "npm run build", @@ -65,7 +65,8 @@ "reflect-metadata": "^0.1.3", "rxjs": "5.0.0-beta.6", "zone.js": "^0.6.12", - "angular2-in-memory-web-api": "0.0.12" + "angular2-in-memory-web-api": "0.0.12", + "rimraf": "^2.5.2" }, "peerDependencies": { "material-design-icons": "^2.2.3", diff --git a/ng2-components/ng2-alfresco-documentlist/demo/package.json b/ng2-components/ng2-alfresco-documentlist/demo/package.json index 1198e5403d..b3b7ccbdbf 100644 --- a/ng2-components/ng2-alfresco-documentlist/demo/package.json +++ b/ng2-components/ng2-alfresco-documentlist/demo/package.json @@ -5,15 +5,15 @@ "author": "Alfresco Software, Ltd.", "main": "index.js", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "typings": "typings install", "postinstall": "npm run typings && npm run build", "start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ", "server": "node browser-sync-config.js", - "build": "npm run tslint && rm -rf dist && tsc", - "build:w": "npm run tslint && rm -rf dist && tsc -w", + "build": "npm run tslint && rimraf dist && tsc", + "build:w": "npm run tslint && rimraf dist && tsc -w", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts" }, "license": "Apache-2.0", @@ -37,7 +37,8 @@ "material-design-lite": "^1.1.3", "ng2-alfresco-documentlist": "^0.1.16", "alfresco-js-api": "^0.1.0", - "ng2-translate": "2.2.0" + "ng2-translate": "2.2.0", + "rimraf": "^2.5.2" }, "devDependencies": { "browser-sync": "^2.10.0", diff --git a/ng2-components/ng2-alfresco-documentlist/package.json b/ng2-components/ng2-alfresco-documentlist/package.json index b1e80d1ae9..5fe0510bf7 100644 --- a/ng2-components/ng2-alfresco-documentlist/package.json +++ b/ng2-components/ng2-alfresco-documentlist/package.json @@ -4,23 +4,23 @@ "version": "0.1.27", "author": "Alfresco Software, Ltd.", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "typings": "typings install", "server": "http-server -c-1 -o -p 8875 .", - "build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", - "build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", + "build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check", + "build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts", "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-i18n:w\" \"npm run copy-images: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", + "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:w": "tsc -w", "pretest": "npm run build", @@ -74,7 +74,8 @@ "angular2-in-memory-web-api": "0.0.12", "ng2-alfresco-core": "^0.1.0", "alfresco-js-api": "^0.1.0", - "ng2-translate": "2.2.0" + "ng2-translate": "2.2.0", + "rimraf": "^2.5.2" }, "devDependencies": { "concurrently": "^2.1.0", diff --git a/ng2-components/ng2-alfresco-login/demo/package.json b/ng2-components/ng2-alfresco-login/demo/package.json index 0191e5a6d7..6f6dc69618 100644 --- a/ng2-components/ng2-alfresco-login/demo/package.json +++ b/ng2-components/ng2-alfresco-login/demo/package.json @@ -5,15 +5,15 @@ "author": "Alfresco Software, Ltd.", "main": "index.js", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "typings": "typings install", "postinstall": "npm run typings && npm run build", "start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ", "server": "node browser-sync-config.js", - "build": "npm run tslint && rm -rf dist && tsc", - "build:w": "npm run tslint && rm -rf dist && tsc -w", + "build": "npm run tslint && rimraf dist && tsc", + "build:w": "npm run tslint && rimraf dist && tsc -w", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts" }, "license": "Apache-2.0", @@ -67,7 +67,8 @@ "alfresco-js-api": "^0.1.0", "ng2-alfresco-core": "^0.1.0", "ng2-alfresco-login": "^0.1.0", - "ng2-translate": "2.2.0" + "ng2-translate": "2.2.0", + "rimraf": "^2.5.2" }, "devDependencies": { "browser-sync": "^2.10.0", diff --git a/ng2-components/ng2-alfresco-login/package.json b/ng2-components/ng2-alfresco-login/package.json index 65b7feef52..15db664410 100644 --- a/ng2-components/ng2-alfresco-login/package.json +++ b/ng2-components/ng2-alfresco-login/package.json @@ -4,23 +4,23 @@ "version": "0.1.20", "author": "Alfresco Software, Ltd.", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "typings": "typings install", "server": "http-server -c-1 -o -p 8875 .", - "build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", - "build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", + "build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check", + "build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts", "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", + "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:w": "tsc -w", "pretest": "npm run build", @@ -82,7 +82,8 @@ "angular2-in-memory-web-api": "0.0.12", "ng2-alfresco-core": "^0.1.0", "alfresco-js-api": "^0.1.0", - "ng2-translate": "2.2.0" + "ng2-translate": "2.2.0", + "rimraf": "^2.5.2" }, "devDependencies": { "concurrently": "^2.1.0", diff --git a/ng2-components/ng2-alfresco-search/demo/package.json b/ng2-components/ng2-alfresco-search/demo/package.json index 3627766c70..e311e08c7d 100644 --- a/ng2-components/ng2-alfresco-search/demo/package.json +++ b/ng2-components/ng2-alfresco-search/demo/package.json @@ -5,15 +5,15 @@ "author": "Alfresco Software, Ltd.", "main": "index.js", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "postinstall": "npm run typings && npm run build", "typings": "typings install", "start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ", "server": "node browser-sync-config.js", - "build": "npm run tslint && rm -rf dist && tsc", - "build:w": "npm run tslint && rm -rf dist && tsc -w", + "build": "npm run tslint && rimraf dist && tsc", + "build:w": "npm run tslint && rimraf dist && tsc -w", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts" }, "license": "Apache-2.0", @@ -67,7 +67,8 @@ "ng2-translate": "2.2.0", "alfresco-js-api": "^0.1.0", "ng2-alfresco-core": "^0.1.0", - "ng2-alfresco-search": "^0.1.12" + "ng2-alfresco-search": "^0.1.12", + "rimraf": "^2.5.2" }, "devDependencies": { "browser-sync": "^2.10.0", diff --git a/ng2-components/ng2-alfresco-search/package.json b/ng2-components/ng2-alfresco-search/package.json index efbfc9e1be..328a8213e2 100644 --- a/ng2-components/ng2-alfresco-search/package.json +++ b/ng2-components/ng2-alfresco-search/package.json @@ -4,23 +4,23 @@ "version": "0.1.20", "author": "Alfresco Software, Ltd.", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "typings": "typings install", "server": "http-server -c-1 -o -p 8875 .", - "build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", - "build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", + "build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check", + "build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts", "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-i18n:w\" \"npm run copy-images: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-images": "cpx './src/**/*.{png,jpg,gif,svg}' dist/src", - "copy-images:w": "cpx './src/**/*.{png,jpg,gif,svg}' dist/src -w", - "copy-i18n:w": "cpx './i18n/**/*.json' dist/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:w": "tsc -w", "pretest": "npm run build", @@ -70,7 +70,8 @@ "angular2-in-memory-web-api": "0.0.12", "alfresco-js-api": "^0.1.0", "ng2-alfresco-core": "^0.1.25", - "ng2-translate": "2.2.0" + "ng2-translate": "2.2.0", + "rimraf": "^2.5.2" }, "devDependencies": { "concurrently": "^2.1.0", diff --git a/ng2-components/ng2-alfresco-upload/demo/package.json b/ng2-components/ng2-alfresco-upload/demo/package.json index e6ee4d2672..8ab9c5dee1 100644 --- a/ng2-components/ng2-alfresco-upload/demo/package.json +++ b/ng2-components/ng2-alfresco-upload/demo/package.json @@ -5,15 +5,15 @@ "author": "Alfresco Software, Ltd.", "main": "index.js", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "typings": "typings install", "postinstall": "npm run typings && npm run build", "start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ", "server": "node browser-sync-config.js", - "build": "npm run tslint && rm -rf dist && tsc", - "build:w": "npm run tslint && rm -rf dist && tsc -w", + "build": "npm run tslint && rimraf dist && tsc", + "build:w": "npm run tslint && rimraf dist && tsc -w", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts" }, "license": "Apache-2.0", @@ -67,7 +67,8 @@ "alfresco-js-api": "^0.1.0", "ng2-alfresco-core": "^0.1.0", "ng2-translate": "2.2.0", - "ng2-alfresco-upload": "^0.1.0" + "ng2-alfresco-upload": "^0.1.0", + "rimraf": "^2.5.2" }, "devDependencies": { "browser-sync": "^2.10.0", diff --git a/ng2-components/ng2-alfresco-upload/package.json b/ng2-components/ng2-alfresco-upload/package.json index 4c02393360..20410f4944 100644 --- a/ng2-components/ng2-alfresco-upload/package.json +++ b/ng2-components/ng2-alfresco-upload/package.json @@ -4,21 +4,21 @@ "version": "0.1.40", "author": "Alfresco Software, Ltd.", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "typings": "typings install", "server": "http-server -c-1 -o -p 8875 .", - "build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", - "build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", + "build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check", + "build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts", "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", + "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:w": "tsc -w", "pretest": "npm run build", @@ -77,7 +77,8 @@ "angular2-in-memory-web-api": "0.0.12", "alfresco-js-api": "^0.1.0", "ng2-alfresco-core": "^0.1.0", - "ng2-translate": "2.2.0" + "ng2-translate": "2.2.0", + "rimraf": "^2.5.2" }, "devDependencies": { "concurrently": "^2.1.0", diff --git a/ng2-components/ng2-alfresco-viewer/demo/package.json b/ng2-components/ng2-alfresco-viewer/demo/package.json index effee219e3..804af452c7 100644 --- a/ng2-components/ng2-alfresco-viewer/demo/package.json +++ b/ng2-components/ng2-alfresco-viewer/demo/package.json @@ -5,15 +5,15 @@ "author": "Alfresco Software, Ltd.", "main": "index.js", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "typings": "typings install", "postinstall": "npm run typings && npm run build", "start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ", "server": "node browser-sync-config.js", - "build": "npm run tslint && rm -rf dist && tsc", - "build:w": "npm run tslint && rm -rf dist && tsc -w", + "build": "npm run tslint && rimraf dist && tsc", + "build:w": "npm run tslint && rimraf dist && tsc -w", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts" }, "license": "Apache-2.0", @@ -35,7 +35,8 @@ "angular2-in-memory-web-api": "0.0.12", "ng2-alfresco-viewer": "file:../", "material-design-icons": "^2.2.3", - "material-design-lite": "^1.1.3" + "material-design-lite": "^1.1.3", + "rimraf": "^2.5.2" }, "devDependencies": { "browser-sync": "^2.10.0", diff --git a/ng2-components/ng2-alfresco-viewer/package.json b/ng2-components/ng2-alfresco-viewer/package.json index 07db4c5810..4f8dc27c48 100644 --- a/ng2-components/ng2-alfresco-viewer/package.json +++ b/ng2-components/ng2-alfresco-viewer/package.json @@ -1,25 +1,25 @@ { "name": "ng2-alfresco-viewer", "description": "Alfresco documents viewer", - "version": "0.1.21", + "version": "0.1.22", "author": "Eugenio Romano", "scripts": { - "clean": "rm -rf dist node_modules typings", + "clean": "rimraf dist node_modules typings", "typings": "typings install", "start": "npm run build && npm run server", "server": "http-server -c-1 -o -p 8875 .", - "build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", - "build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", + "build": "npm run tslint && typings install && rimraf dist && tsc && npm run copytemplates && license-check", + "build:w": "npm run tslint && typings install && rimraf dist && npm run watch-task", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"", "tslint": "npm run tslint-src && npm run tslint-root", - "tslint-src": "tslint -c tslint.json src/**/*.ts", + "tslint-src": "tslint -c tslint.json src/{,**/}**.ts", "tslint-root": "tslint -c tslint.json *.ts", "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", + "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:w": "tsc -w", "pretest": "npm run build", @@ -69,7 +69,8 @@ "rxjs": "5.0.0-beta.6", "zone.js": "^0.6.12", "angular2-in-memory-web-api": "0.0.12", - "pdfjs-dist": "^1.5.258" + "pdfjs-dist": "^1.5.258", + "rimraf": "^2.5.2" }, "devDependencies": { "concurrently": "^2.1.0", diff --git a/ng2-components/ng2-alfresco-viewer/src/notSupportedFormat.component.ts b/ng2-components/ng2-alfresco-viewer/src/notSupportedFormat.component.ts index eaf4eabfeb..4c83441c68 100644 --- a/ng2-components/ng2-alfresco-viewer/src/notSupportedFormat.component.ts +++ b/ng2-components/ng2-alfresco-viewer/src/notSupportedFormat.component.ts @@ -36,7 +36,7 @@ export class NotSupportedFormat { /** * Download file opening it in a new window */ - private download() { + download() { window.open(this.urlFile); } } diff --git a/ng2-components/ng2-alfresco-viewer/src/pdfViewer.component.ts b/ng2-components/ng2-alfresco-viewer/src/pdfViewer.component.ts index 1d66123e82..9b74006079 100644 --- a/ng2-components/ng2-alfresco-viewer/src/pdfViewer.component.ts +++ b/ng2-components/ng2-alfresco-viewer/src/pdfViewer.component.ts @@ -244,9 +244,9 @@ export class PdfViewerComponent { @HostListener('document:keydown', ['$event']) handleKeyboardEvent(event: KeyboardEvent) { let key = event.keyCode; - if (key === 39) { //right arrow + if (key === 39) { // right arrow this.nextPage(); - } else if (key === 37) {//left arrow + } else if (key === 37) {// left arrow this.previousPage(); } } diff --git a/ng2-components/ng2-alfresco-viewer/src/viewer.component.ts b/ng2-components/ng2-alfresco-viewer/src/viewer.component.ts index 2e176ac12d..63dc15917d 100644 --- a/ng2-components/ng2-alfresco-viewer/src/viewer.component.ts +++ b/ng2-components/ng2-alfresco-viewer/src/viewer.component.ts @@ -151,7 +151,7 @@ export class ViewerComponent { * * @returns {boolean} */ - private supportedExtension() { + supportedExtension() { return this.isImage() || this.isPdf(); } @@ -162,7 +162,7 @@ export class ViewerComponent { @HostListener('document:keydown', ['$event']) handleKeyboardEvent(event: KeyboardEvent) { let key = event.keyCode; - if (key === 27) { //esc + if (key === 27) { // esc this.close(); } } diff --git a/ng2-components/ng2-alfresco-viewer/tsconfig.json b/ng2-components/ng2-alfresco-viewer/tsconfig.json index 209df29f98..39deca0930 100644 --- a/ng2-components/ng2-alfresco-viewer/tsconfig.json +++ b/ng2-components/ng2-alfresco-viewer/tsconfig.json @@ -8,11 +8,20 @@ "sourceMap": true, "removeComments": true, "declaration": true, + "noLib": false, + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "noImplicitAny": false, + "noImplicitReturns": false, + "noImplicitUseStrict": false, + "noFallthroughCasesInSwitch": true, "outDir": "dist" }, "exclude": [ "demo", "node_modules", + "typings/main", + "typings/main.d.ts", "dist" ] }