From 6a0ecedd5a08e7b9b2bca402c51122ea35bc8a12 Mon Sep 17 00:00:00 2001 From: Eugenio Romano Date: Wed, 15 Jun 2016 10:38:14 +0100 Subject: [PATCH] closed #197 clean script --- README.md | 6 + demo-shell-ng2/package.json | 2 +- ng2-components/ng2-alfresco-core/package.json | 1 + .../ng2-alfresco-datatable/package.json | 211 +++++++++--------- .../ng2-alfresco-documentlist/package.json | 1 + .../ng2-alfresco-login/package.json | 1 + .../ng2-alfresco-search/package.json | 1 + .../ng2-alfresco-upload/package.json | 1 + .../ng2-alfresco-viewer/package.json | 1 + start.sh | 4 + 10 files changed, 123 insertions(+), 106 deletions(-) diff --git a/README.md b/README.md index 5fa5cc20e1..5453f804e0 100644 --- a/README.md +++ b/README.md @@ -69,6 +69,12 @@ cd dev-platform-webcomponents ./start.sh -install ``` +* Start the demo and Install all the dependencies and remove the previous version of the npm package(do it after big changes) + +```sh +./start.sh -cleanInstall +``` + * Start the demo and update the dependencies ```sh diff --git a/demo-shell-ng2/package.json b/demo-shell-ng2/package.json index c8282b8156..b83a95d078 100644 --- a/demo-shell-ng2/package.json +++ b/demo-shell-ng2/package.json @@ -4,6 +4,7 @@ "version": "0.1.0", "author": "Alfresco Software, Ltd.", "scripts": { + "clean": "rm -rf 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", @@ -85,7 +86,6 @@ "browser-sync": "^2.10.0", "concurrently": "^2.0.0", "connect-history-api-fallback": "^1.2.0", - "del": "^2.1.0", "flag-icon-css": "^2.3.0", "license-check": "^1.0.4", "tslint": "^3.8.1", diff --git a/ng2-components/ng2-alfresco-core/package.json b/ng2-components/ng2-alfresco-core/package.json index a1fe821fa0..c4bfeb741a 100644 --- a/ng2-components/ng2-alfresco-core/package.json +++ b/ng2-components/ng2-alfresco-core/package.json @@ -4,6 +4,7 @@ "version": "0.1.33", "author": "Alfresco Software, Ltd.", "scripts": { + "clean": "rm -rf dist node_modules typings", "typings": "typings install", "start": "npm run build && npm run server", "server": "http-server -c-1 -o -p 8875 .", diff --git a/ng2-components/ng2-alfresco-datatable/package.json b/ng2-components/ng2-alfresco-datatable/package.json index 69349b5bd4..f0c2e7afed 100644 --- a/ng2-components/ng2-alfresco-datatable/package.json +++ b/ng2-components/ng2-alfresco-datatable/package.json @@ -1,108 +1,109 @@ { - "name": "ng2-alfresco-datatable", - "description": "Alfresco Angular2 DataTable Component", - "version": "0.1.7", - "author": "Alfresco Software, Ltd.", - "scripts": { - "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", - "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, src/**/*.spec.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", - "tsc": "tsc", - "tsc:w": "tsc -w", - "pretest": "npm run build", - "test": "karma start karma.conf.js --reporters mocha,coverage --single-run", - "test-browser": "concurrently \"karma start karma.conf.js --reporters kjhtml\" \"npm run watch-task\"", - "posttest": "node_modules/.bin/remap-istanbul -i coverage/report/coverage-final.json -o coverage/report -t html", - "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", - "prepublish": "npm run build" - }, - "repository": { - "type": "git", - "url": "https://github.com/Alfresco/dev-platform-webcomponents.git" - }, - "bugs": { - "url": "https://github.com/Alfresco/dev-platform-webcomponents/issues" - }, - "license": "Apache-2.0", - "contributors": [ - { - "name": "Denys Vuika", - "email": "denis.vuyka@gmail.com" - } - ], - "keywords": [ - "ng2", - "angular", - "angular2", - "alfresco" - ], - "dependencies": { - "@angular/common": "2.0.0-rc.1", - "@angular/compiler": "2.0.0-rc.1", - "@angular/core": "2.0.0-rc.1", - "@angular/http": "2.0.0-rc.1", - "@angular/platform-browser": "2.0.0-rc.1", - "@angular/platform-browser-dynamic": "2.0.0-rc.1", - "@angular/router": "2.0.0-rc.1", - "@angular/router-deprecated": "2.0.0-rc.1", - "@angular/upgrade": "2.0.0-rc.1", - "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.11" - }, - "peerDependencies": { - "material-design-icons": "^2.2.3", - "material-design-lite": "^1.1.3" - }, - "devDependencies": { - "concurrently": "^2.1.0", - "coveralls": "^2.11.9", - "cpx": "^1.3.1", - "jasmine-core": "2.4.1", - "karma": "~0.13.22", - "karma-chrome-launcher": "~1.0.1", - "karma-coverage": "^1.0.0", - "karma-jasmine": "~1.0.2", - "karma-jasmine-html-reporter": "^0.2.0", - "karma-mocha-reporter": "^2.0.3", - "license-check": "^1.0.4", - "remap-istanbul": "^0.6.3", - "traceur": "^0.0.91", - "tslint": "^3.8.1", - "typescript": "^1.8.10", - "typings": "^1.0.4", - "wsrv": "^0.1.0" - }, - "license-check-config": { - "src": [ - "**/*.js", - "**/*.ts", - "!/**/coverage/**/*", - "!/**/demo/**/*", - "!/**/node_modules/**/*", - "!/**/typings/**/*", - "!*.js" - ], - "path": "assets/license_header.txt", - "blocking": false, - "logInfo": false, - "logError": true - }, - "publishConfig": { - "registry": "http://devproducts.alfresco.me:4873/" + "name": "ng2-alfresco-datatable", + "description": "Alfresco Angular2 DataTable Component", + "version": "0.1.7", + "author": "Alfresco Software, Ltd.", + "scripts": { + "clean": "rm -rf 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", + "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, src/**/*.spec.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", + "tsc": "tsc", + "tsc:w": "tsc -w", + "pretest": "npm run build", + "test": "karma start karma.conf.js --reporters mocha,coverage --single-run", + "test-browser": "concurrently \"karma start karma.conf.js --reporters kjhtml\" \"npm run watch-task\"", + "posttest": "node_modules/.bin/remap-istanbul -i coverage/report/coverage-final.json -o coverage/report -t html", + "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", + "prepublish": "npm run build" + }, + "repository": { + "type": "git", + "url": "https://github.com/Alfresco/dev-platform-webcomponents.git" + }, + "bugs": { + "url": "https://github.com/Alfresco/dev-platform-webcomponents/issues" + }, + "license": "Apache-2.0", + "contributors": [ + { + "name": "Denys Vuika", + "email": "denis.vuyka@gmail.com" } + ], + "keywords": [ + "ng2", + "angular", + "angular2", + "alfresco" + ], + "dependencies": { + "@angular/common": "2.0.0-rc.1", + "@angular/compiler": "2.0.0-rc.1", + "@angular/core": "2.0.0-rc.1", + "@angular/http": "2.0.0-rc.1", + "@angular/platform-browser": "2.0.0-rc.1", + "@angular/platform-browser-dynamic": "2.0.0-rc.1", + "@angular/router": "2.0.0-rc.1", + "@angular/router-deprecated": "2.0.0-rc.1", + "@angular/upgrade": "2.0.0-rc.1", + "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.11" + }, + "peerDependencies": { + "material-design-icons": "^2.2.3", + "material-design-lite": "^1.1.3" + }, + "devDependencies": { + "concurrently": "^2.1.0", + "coveralls": "^2.11.9", + "cpx": "^1.3.1", + "jasmine-core": "2.4.1", + "karma": "~0.13.22", + "karma-chrome-launcher": "~1.0.1", + "karma-coverage": "^1.0.0", + "karma-jasmine": "~1.0.2", + "karma-jasmine-html-reporter": "^0.2.0", + "karma-mocha-reporter": "^2.0.3", + "license-check": "^1.0.4", + "remap-istanbul": "^0.6.3", + "traceur": "^0.0.91", + "tslint": "^3.8.1", + "typescript": "^1.8.10", + "typings": "^1.0.4", + "wsrv": "^0.1.0" + }, + "license-check-config": { + "src": [ + "**/*.js", + "**/*.ts", + "!/**/coverage/**/*", + "!/**/demo/**/*", + "!/**/node_modules/**/*", + "!/**/typings/**/*", + "!*.js" + ], + "path": "assets/license_header.txt", + "blocking": false, + "logInfo": false, + "logError": true + }, + "publishConfig": { + "registry": "http://devproducts.alfresco.me:4873/" + } } diff --git a/ng2-components/ng2-alfresco-documentlist/package.json b/ng2-components/ng2-alfresco-documentlist/package.json index cec28fe17d..01a8f64edf 100644 --- a/ng2-components/ng2-alfresco-documentlist/package.json +++ b/ng2-components/ng2-alfresco-documentlist/package.json @@ -4,6 +4,7 @@ "version": "0.1.24", "author": "Alfresco Software, Ltd.", "scripts": { + "clean": "rm -rf 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", diff --git a/ng2-components/ng2-alfresco-login/package.json b/ng2-components/ng2-alfresco-login/package.json index f97f1d1baf..38a43464a6 100644 --- a/ng2-components/ng2-alfresco-login/package.json +++ b/ng2-components/ng2-alfresco-login/package.json @@ -4,6 +4,7 @@ "version": "0.1.16", "author": "Alfresco Software, Ltd.", "scripts": { + "clean": "rm -rf 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", diff --git a/ng2-components/ng2-alfresco-search/package.json b/ng2-components/ng2-alfresco-search/package.json index 2556a331de..71ce1446b8 100644 --- a/ng2-components/ng2-alfresco-search/package.json +++ b/ng2-components/ng2-alfresco-search/package.json @@ -4,6 +4,7 @@ "version": "0.1.18", "author": "Alfresco Software, Ltd.", "scripts": { + "clean": "rm -rf 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", diff --git a/ng2-components/ng2-alfresco-upload/package.json b/ng2-components/ng2-alfresco-upload/package.json index 1cec091d0a..b00b91cf3e 100644 --- a/ng2-components/ng2-alfresco-upload/package.json +++ b/ng2-components/ng2-alfresco-upload/package.json @@ -4,6 +4,7 @@ "version": "0.1.37", "author": "Alfresco Software, Ltd.", "scripts": { + "clean": "rm -rf 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", diff --git a/ng2-components/ng2-alfresco-viewer/package.json b/ng2-components/ng2-alfresco-viewer/package.json index d050e409ad..863031c1f5 100644 --- a/ng2-components/ng2-alfresco-viewer/package.json +++ b/ng2-components/ng2-alfresco-viewer/package.json @@ -4,6 +4,7 @@ "version": "0.1.19", "author": "Eugenio Romano", "scripts": { + "clean": "rm -rf dist node_modules typings", "typings": "typings install", "start": "npm run build && npm run server", "server": "http-server -c-1 -o -p 8875 .", diff --git a/start.sh b/start.sh index 892f4a0984..8493ac5858 100755 --- a/start.sh +++ b/start.sh @@ -8,6 +8,10 @@ if [[ $1 = "-install" ]]; then elif [[ $1 = "-update " ]]; then npm run update npm run start +elif [[ $1 = "-cleanInstall" ]]; then + npm run clean + npm install + npm run start else npm run start fi \ No newline at end of file