cross platform rm

This commit is contained in:
Mario Romano
2016-06-20 17:50:31 +01:00
parent 696af117e7
commit 5aca16bef1
13 changed files with 62 additions and 49 deletions

View File

@@ -4,7 +4,7 @@
"version": "0.1.0", "version": "0.1.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "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\" ", "start": "npm run tslint && typings install && concurrently \"npm run tsc:w\" \"license-check\" \"npm run serve\" ",
"tsc": "tsc", "tsc": "tsc",
"tsc:w": "tsc -w", "tsc:w": "tsc -w",
@@ -80,7 +80,8 @@
"ng2-alfresco-login": "^0.1.0", "ng2-alfresco-login": "^0.1.0",
"ng2-alfresco-search": "^0.1.9", "ng2-alfresco-search": "^0.1.9",
"ng2-alfresco-upload": "^0.1.0", "ng2-alfresco-upload": "^0.1.0",
"ng2-alfresco-viewer": "^0.1.13" "ng2-alfresco-viewer": "^0.1.13",
"rimraf": "^2.5.2"
}, },
"devDependencies": { "devDependencies": {
"browser-sync": "^2.10.0", "browser-sync": "^2.10.0",

View File

@@ -11,12 +11,12 @@
], ],
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rm -rf dist node_modules typings", "clean": "rimraf dist node_modules typings",
"postinstall": "npm run typings && npm run build", "postinstall": "npm run typings && npm run build",
"typings": "typings install", "typings": "typings install",
"start": "rm -rf dist && npm install && npm run server", "start": "rimraf dist && npm install && npm run server",
"server": "wsrv -o", "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": "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"
@@ -38,6 +38,7 @@
"rxjs": "5.0.0-beta.6", "rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12", "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",
"material-design-icons": "^2.2.3", "material-design-icons": "^2.2.3",
"material-design-lite": "^1.1.3", "material-design-lite": "^1.1.3",

View File

@@ -4,11 +4,11 @@
"version": "0.1.11", "version": "0.1.11",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rm -rf dist node_modules typings", "clean": "rimraf dist node_modules typings",
"typings": "typings install", "typings": "typings install",
"server": "wsrv -o -p 9875", "server": "wsrv -o -p 9875",
"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",
"build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", "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\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
"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",
@@ -65,7 +65,8 @@
"reflect-metadata": "^0.1.3", "reflect-metadata": "^0.1.3",
"rxjs": "5.0.0-beta.6", "rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12", "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": { "peerDependencies": {
"material-design-icons": "^2.2.3", "material-design-icons": "^2.2.3",

View File

@@ -5,13 +5,13 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rm -rf dist node_modules typings", "clean": "rimraf dist node_modules typings",
"typings": "typings install", "typings": "typings install",
"postinstall": "npm run typings && npm run build", "postinstall": "npm run typings && npm run build",
"start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ", "start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ",
"server": "node browser-sync-config.js", "server": "node browser-sync-config.js",
"build": "npm run tslint && rm -rf dist && tsc", "build": "npm run tslint && rimraf dist && tsc",
"build:w": "npm run tslint && rm -rf dist && tsc -w", "build:w": "npm run tslint && rimraf dist && tsc -w",
"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"
@@ -37,7 +37,8 @@
"material-design-lite": "^1.1.3", "material-design-lite": "^1.1.3",
"ng2-alfresco-documentlist": "^0.1.16", "ng2-alfresco-documentlist": "^0.1.16",
"alfresco-js-api": "^0.1.0", "alfresco-js-api": "^0.1.0",
"ng2-translate": "2.2.0" "ng2-translate": "2.2.0",
"rimraf": "^2.5.2"
}, },
"devDependencies": { "devDependencies": {
"browser-sync": "^2.10.0", "browser-sync": "^2.10.0",

View File

@@ -4,11 +4,11 @@
"version": "0.1.27", "version": "0.1.27",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rm -rf 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": "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",
"build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", "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\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
"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",
@@ -74,7 +74,8 @@
"angular2-in-memory-web-api": "0.0.12", "angular2-in-memory-web-api": "0.0.12",
"ng2-alfresco-core": "^0.1.0", "ng2-alfresco-core": "^0.1.0",
"alfresco-js-api": "^0.1.0", "alfresco-js-api": "^0.1.0",
"ng2-translate": "2.2.0" "ng2-translate": "2.2.0",
"rimraf": "^2.5.2"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "^2.1.0", "concurrently": "^2.1.0",

View File

@@ -5,13 +5,13 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rm -rf dist node_modules typings", "clean": "rimraf dist node_modules typings",
"typings": "typings install", "typings": "typings install",
"postinstall": "npm run typings && npm run build", "postinstall": "npm run typings && npm run build",
"start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ", "start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ",
"server": "node browser-sync-config.js", "server": "node browser-sync-config.js",
"build": "npm run tslint && rm -rf dist && tsc", "build": "npm run tslint && rimraf dist && tsc",
"build:w": "npm run tslint && rm -rf dist && tsc -w", "build:w": "npm run tslint && rimraf dist && tsc -w",
"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"
@@ -67,7 +67,8 @@
"alfresco-js-api": "^0.1.0", "alfresco-js-api": "^0.1.0",
"ng2-alfresco-core": "^0.1.0", "ng2-alfresco-core": "^0.1.0",
"ng2-alfresco-login": "^0.1.0", "ng2-alfresco-login": "^0.1.0",
"ng2-translate": "2.2.0" "ng2-translate": "2.2.0",
"rimraf": "^2.5.2"
}, },
"devDependencies": { "devDependencies": {
"browser-sync": "^2.10.0", "browser-sync": "^2.10.0",

View File

@@ -4,11 +4,11 @@
"version": "0.1.20", "version": "0.1.20",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rm -rf 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": "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",
"build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", "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\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
"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",
@@ -82,7 +82,8 @@
"angular2-in-memory-web-api": "0.0.12", "angular2-in-memory-web-api": "0.0.12",
"ng2-alfresco-core": "^0.1.0", "ng2-alfresco-core": "^0.1.0",
"alfresco-js-api": "^0.1.0", "alfresco-js-api": "^0.1.0",
"ng2-translate": "2.2.0" "ng2-translate": "2.2.0",
"rimraf": "^2.5.2"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "^2.1.0", "concurrently": "^2.1.0",

View File

@@ -5,13 +5,13 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rm -rf dist node_modules typings", "clean": "rimraf dist node_modules typings",
"postinstall": "npm run typings && npm run build", "postinstall": "npm run typings && npm run build",
"typings": "typings install", "typings": "typings install",
"start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ", "start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ",
"server": "node browser-sync-config.js", "server": "node browser-sync-config.js",
"build": "npm run tslint && rm -rf dist && tsc", "build": "npm run tslint && rimraf dist && tsc",
"build:w": "npm run tslint && rm -rf dist && tsc -w", "build:w": "npm run tslint && rimraf dist && tsc -w",
"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"
@@ -67,7 +67,8 @@
"ng2-translate": "2.2.0", "ng2-translate": "2.2.0",
"alfresco-js-api": "^0.1.0", "alfresco-js-api": "^0.1.0",
"ng2-alfresco-core": "^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": { "devDependencies": {
"browser-sync": "^2.10.0", "browser-sync": "^2.10.0",

View File

@@ -4,11 +4,11 @@
"version": "0.1.20", "version": "0.1.20",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rm -rf 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": "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",
"build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", "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\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
"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",
@@ -70,7 +70,8 @@
"angular2-in-memory-web-api": "0.0.12", "angular2-in-memory-web-api": "0.0.12",
"alfresco-js-api": "^0.1.0", "alfresco-js-api": "^0.1.0",
"ng2-alfresco-core": "^0.1.25", "ng2-alfresco-core": "^0.1.25",
"ng2-translate": "2.2.0" "ng2-translate": "2.2.0",
"rimraf": "^2.5.2"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "^2.1.0", "concurrently": "^2.1.0",

View File

@@ -5,13 +5,13 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rm -rf dist node_modules typings", "clean": "rimraf dist node_modules typings",
"typings": "typings install", "typings": "typings install",
"postinstall": "npm run typings && npm run build", "postinstall": "npm run typings && npm run build",
"start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ", "start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ",
"server": "node browser-sync-config.js", "server": "node browser-sync-config.js",
"build": "npm run tslint && rm -rf dist && tsc", "build": "npm run tslint && rimraf dist && tsc",
"build:w": "npm run tslint && rm -rf dist && tsc -w", "build:w": "npm run tslint && rimraf dist && tsc -w",
"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"
@@ -67,7 +67,8 @@
"alfresco-js-api": "^0.1.0", "alfresco-js-api": "^0.1.0",
"ng2-alfresco-core": "^0.1.0", "ng2-alfresco-core": "^0.1.0",
"ng2-translate": "2.2.0", "ng2-translate": "2.2.0",
"ng2-alfresco-upload": "^0.1.0" "ng2-alfresco-upload": "^0.1.0",
"rimraf": "^2.5.2"
}, },
"devDependencies": { "devDependencies": {
"browser-sync": "^2.10.0", "browser-sync": "^2.10.0",

View File

@@ -4,11 +4,11 @@
"version": "0.1.40", "version": "0.1.40",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rm -rf 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": "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",
"build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", "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\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
"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",
@@ -77,7 +77,8 @@
"angular2-in-memory-web-api": "0.0.12", "angular2-in-memory-web-api": "0.0.12",
"alfresco-js-api": "^0.1.0", "alfresco-js-api": "^0.1.0",
"ng2-alfresco-core": "^0.1.0", "ng2-alfresco-core": "^0.1.0",
"ng2-translate": "2.2.0" "ng2-translate": "2.2.0",
"rimraf": "^2.5.2"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "^2.1.0", "concurrently": "^2.1.0",

View File

@@ -5,13 +5,13 @@
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {
"clean": "rm -rf dist node_modules typings", "clean": "rimraf dist node_modules typings",
"typings": "typings install", "typings": "typings install",
"postinstall": "npm run typings && npm run build", "postinstall": "npm run typings && npm run build",
"start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ", "start": "npm install && npm run typings && concurrently \"npm run build:w\" \"npm run server\" ",
"server": "node browser-sync-config.js", "server": "node browser-sync-config.js",
"build": "npm run tslint && rm -rf dist && tsc", "build": "npm run tslint && rimraf dist && tsc",
"build:w": "npm run tslint && rm -rf dist && tsc -w", "build:w": "npm run tslint && rimraf dist && tsc -w",
"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"
@@ -35,7 +35,8 @@
"angular2-in-memory-web-api": "0.0.12", "angular2-in-memory-web-api": "0.0.12",
"ng2-alfresco-viewer": "file:../", "ng2-alfresco-viewer": "file:../",
"material-design-icons": "^2.2.3", "material-design-icons": "^2.2.3",
"material-design-lite": "^1.1.3" "material-design-lite": "^1.1.3",
"rimraf": "^2.5.2"
}, },
"devDependencies": { "devDependencies": {
"browser-sync": "^2.10.0", "browser-sync": "^2.10.0",

View File

@@ -4,12 +4,12 @@
"version": "0.1.21", "version": "0.1.21",
"author": "Eugenio Romano", "author": "Eugenio Romano",
"scripts": { "scripts": {
"clean": "rm -rf dist node_modules typings", "clean": "rimraf dist node_modules typings",
"typings": "typings install", "typings": "typings install",
"start": "npm run build && npm run server", "start": "npm run build && npm run server",
"server": "http-server -c-1 -o -p 8875 .", "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",
"build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", "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\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
"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",
@@ -69,7 +69,8 @@
"rxjs": "5.0.0-beta.6", "rxjs": "5.0.0-beta.6",
"zone.js": "^0.6.12", "zone.js": "^0.6.12",
"angular2-in-memory-web-api": "0.0.12", "angular2-in-memory-web-api": "0.0.12",
"pdfjs-dist": "^1.5.258" "pdfjs-dist": "^1.5.258",
"rimraf": "^2.5.2"
}, },
"devDependencies": { "devDependencies": {
"concurrently": "^2.1.0", "concurrently": "^2.1.0",