From f9c4174ccb5bedd8b4fb2958f62ff9d22fd6a46d Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Tue, 21 Jun 2016 14:52:30 +0100 Subject: [PATCH] fix cpx for windows --- ng2-components/ng2-alfresco-core/package.json | 13 ++++++++----- ng2-components/ng2-alfresco-datatable/package.json | 8 ++++---- .../ng2-alfresco-documentlist/package.json | 12 ++++++------ ng2-components/ng2-alfresco-login/package.json | 12 ++++++------ ng2-components/ng2-alfresco-search/package.json | 12 ++++++------ ng2-components/ng2-alfresco-upload/package.json | 8 ++++---- ng2-components/ng2-alfresco-viewer/package.json | 8 ++++---- 7 files changed, 38 insertions(+), 35 deletions(-) diff --git a/ng2-components/ng2-alfresco-core/package.json b/ng2-components/ng2-alfresco-core/package.json index 2368d00a3e..a46f72fc49 100644 --- a/ng2-components/ng2-alfresco-core/package.json +++ b/ng2-components/ng2-alfresco-core/package.json @@ -12,10 +12,13 @@ "tslint": "npm run tslint-src && npm run tslint-root", "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 && 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", @@ -71,7 +74,7 @@ "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/package.json b/ng2-components/ng2-alfresco-datatable/package.json index 5a6fffc802..e94fbe425d 100644 --- a/ng2-components/ng2-alfresco-datatable/package.json +++ b/ng2-components/ng2-alfresco-datatable/package.json @@ -15,10 +15,10 @@ "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", diff --git a/ng2-components/ng2-alfresco-documentlist/package.json b/ng2-components/ng2-alfresco-documentlist/package.json index c5bbffb6ed..5fe0510bf7 100644 --- a/ng2-components/ng2-alfresco-documentlist/package.json +++ b/ng2-components/ng2-alfresco-documentlist/package.json @@ -15,12 +15,12 @@ "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", diff --git a/ng2-components/ng2-alfresco-login/package.json b/ng2-components/ng2-alfresco-login/package.json index f149cba43d..15db664410 100644 --- a/ng2-components/ng2-alfresco-login/package.json +++ b/ng2-components/ng2-alfresco-login/package.json @@ -15,12 +15,12 @@ "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", diff --git a/ng2-components/ng2-alfresco-search/package.json b/ng2-components/ng2-alfresco-search/package.json index bb56a43ccb..328a8213e2 100644 --- a/ng2-components/ng2-alfresco-search/package.json +++ b/ng2-components/ng2-alfresco-search/package.json @@ -15,12 +15,12 @@ "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", diff --git a/ng2-components/ng2-alfresco-upload/package.json b/ng2-components/ng2-alfresco-upload/package.json index a1de1cb56b..20410f4944 100644 --- a/ng2-components/ng2-alfresco-upload/package.json +++ b/ng2-components/ng2-alfresco-upload/package.json @@ -15,10 +15,10 @@ "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", diff --git a/ng2-components/ng2-alfresco-viewer/package.json b/ng2-components/ng2-alfresco-viewer/package.json index ed44dc09fa..78d62a290d 100644 --- a/ng2-components/ng2-alfresco-viewer/package.json +++ b/ng2-components/ng2-alfresco-viewer/package.json @@ -16,10 +16,10 @@ "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",