fix cpx for windows

This commit is contained in:
Mario Romano 2016-06-21 14:52:30 +01:00
parent d3940b1b10
commit f9c4174ccb
7 changed files with 38 additions and 35 deletions

View File

@ -12,10 +12,13 @@
"tslint": "npm run tslint-src && npm run tslint-root", "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", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html && npm run copy-css && npm run copy-i18n", "copytemplates": "npm run copy-html && npm run copy-i18n",
"copy-html": "copyfiles './src/**/*.html' dist", "copy-html-css": "cpx \"./src/**/*.{html,css}\" ./dist/src",
"copy-css": "copyfiles './src/**/*.css' dist", "copy-html-css:w": "cpx \"./src/**/*.{html,css}\" ./dist/src -w",
"copy-i18n": "copyfiles './i18n/**/*.json' dist", "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", "licensecheck": "license-check",
"tsc": "tsc", "tsc": "tsc",
"pretest": "npm run build", "pretest": "npm run build",
@ -71,7 +74,7 @@
"zone.js": "^0.6.12" "zone.js": "^0.6.12"
}, },
"devDependencies": { "devDependencies": {
"copyfiles": "^0.2.1", "cpx": "^1.3.1",
"coveralls": "^2.11.9", "coveralls": "^2.11.9",
"http-server": "0.8.5", "http-server": "0.8.5",
"jasmine-ajax": "^3.2.0", "jasmine-ajax": "^3.2.0",

View File

@ -15,10 +15,10 @@
"tslint-root": "tslint -c tslint.json *.ts", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html-css && npm run copy-i18n", "copytemplates": "npm run copy-html-css && npm run copy-i18n",
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"", "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": "cpx \"./src/**/*.{html,css}\" ./dist/src",
"copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w", "copy-html-css:w": "cpx \"./src/**/*.{html,css}\" ./dist/src -w",
"copy-i18n": "cpx './i18n/**/*.json' dist/i18n", "copy-i18n": "cpx \"./i18n/**/*.json\" ./dist/i18n",
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w", "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",

View File

@ -15,12 +15,12 @@
"tslint-root": "tslint -c tslint.json *.ts", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images", "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\"", "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": "cpx \"./src/**/*.{html,css}\" ./dist/src",
"copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w", "copy-html-css:w": "cpx \"./src/**/*.{html,css}\" ./dist/src -w",
"copy-i18n": "cpx './i18n/**/*.json' dist/i18n", "copy-i18n": "cpx \"./i18n/**/*.json\" ./dist/i18n",
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w", "copy-i18n:w": "cpx \"./i18n/**/*.json\" ./dist/i18n -w",
"copy-images": "cpx './src/**/*.{png,jpg,gif,svg}' dist/src", "copy-images": "cpx \"./src/**/*.{png,jpg,gif,svg}\" ./dist/src",
"copy-images:w": "cpx './src/**/*.{png,jpg,gif,svg}' dist/src -w", "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",

View File

@ -15,12 +15,12 @@
"tslint-root": "tslint -c tslint.json *.ts", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images", "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\"", "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": "cpx \"./src/**/*.{html,css}\" ./dist/src",
"copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w", "copy-html-css:w": "cpx \"./src/**/*.{html,css}\" ./dist/src -w",
"copy-i18n": "cpx './i18n/**/*.json' dist/i18n", "copy-i18n": "cpx \"./i18n/**/*.json\" ./dist/i18n",
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w", "copy-i18n:w": "cpx \"./i18n/**/*.json\" ./dist/i18n -w",
"copy-images": "cpx './src/**/*.{png,jpg,gif,svg}' dist/src", "copy-images": "cpx \"./src/**/*.{png,jpg,gif,svg}\" ./dist/src",
"copy-images:w": "cpx './src/**/*.{png,jpg,gif,svg}' dist/src -w", "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",

View File

@ -15,12 +15,12 @@
"tslint-root": "tslint -c tslint.json *.ts", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html-css && npm run copy-i18n && npm run copy-images", "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\"", "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": "cpx \"./src/**/*.{html,css}\" ./dist/src",
"copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w", "copy-html-css:w": "cpx \"./src/**/*.{html,css}\" ./dist/src -w",
"copy-i18n": "cpx './i18n/**/*.json' dist/i18n", "copy-i18n": "cpx \"./i18n/**/*.json\" ./dist/i18n",
"copy-images": "cpx './src/**/*.{png,jpg,gif,svg}' dist/src", "copy-i18n:w": "cpx \"./i18n/**/*.json\" ./dist/i18n -w",
"copy-images:w": "cpx './src/**/*.{png,jpg,gif,svg}' dist/src -w", "copy-images": "cpx \"./src/**/*.{png,jpg,gif,svg}\" ./dist/src",
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w", "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",

View File

@ -15,10 +15,10 @@
"tslint-root": "tslint -c tslint.json *.ts", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html-css && npm run copy-i18n", "copytemplates": "npm run copy-html-css && npm run copy-i18n",
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"", "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": "cpx \"./src/**/*.{html,css}\" ./dist/src",
"copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w", "copy-html-css:w": "cpx \"./src/**/*.{html,css}\" ./dist/src -w",
"copy-i18n": "cpx './i18n/**/*.json' dist/i18n", "copy-i18n": "cpx \"./i18n/**/*.json\" ./dist/i18n",
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w", "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",

View File

@ -16,10 +16,10 @@
"tslint-root": "tslint -c tslint.json *.ts", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates": "npm run copy-html-css && npm run copy-i18n", "copytemplates": "npm run copy-html-css && npm run copy-i18n",
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"", "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": "cpx \"./src/**/*.{html,css}\" ./dist/src",
"copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w", "copy-html-css:w": "cpx \"./src/**/*.{html,css}\" ./dist/src -w",
"copy-i18n": "cpx './i18n/**/*.json' dist/i18n", "copy-i18n": "cpx \"./i18n/**/*.json\" ./dist/i18n",
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w", "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",