closed #197 clean script

This commit is contained in:
Eugenio Romano
2016-06-15 10:38:14 +01:00
parent b9b527521c
commit 6a0ecedd5a
10 changed files with 123 additions and 106 deletions

View File

@@ -69,6 +69,12 @@ cd dev-platform-webcomponents
./start.sh -install ./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 * Start the demo and update the dependencies
```sh ```sh

View File

@@ -4,6 +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",
"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",
@@ -85,7 +86,6 @@
"browser-sync": "^2.10.0", "browser-sync": "^2.10.0",
"concurrently": "^2.0.0", "concurrently": "^2.0.0",
"connect-history-api-fallback": "^1.2.0", "connect-history-api-fallback": "^1.2.0",
"del": "^2.1.0",
"flag-icon-css": "^2.3.0", "flag-icon-css": "^2.3.0",
"license-check": "^1.0.4", "license-check": "^1.0.4",
"tslint": "^3.8.1", "tslint": "^3.8.1",

View File

@@ -4,6 +4,7 @@
"version": "0.1.33", "version": "0.1.33",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rm -rf 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 .",

View File

@@ -1,108 +1,109 @@
{ {
"name": "ng2-alfresco-datatable", "name": "ng2-alfresco-datatable",
"description": "Alfresco Angular2 DataTable Component", "description": "Alfresco Angular2 DataTable Component",
"version": "0.1.7", "version": "0.1.7",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"typings": "typings install", "clean": "rm -rf dist node_modules typings",
"server": "wsrv -o -p 9875", "typings": "typings install",
"build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check", "server": "wsrv -o -p 9875",
"build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task", "build": "npm run tslint && typings install && rm -rf dist && tsc && npm run copytemplates && license-check",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"", "build:w": "npm run tslint && typings install && rm -rf dist && npm run watch-task",
"tslint": "npm run tslint-src && npm run tslint-root", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copytemplates:w\" \"license-check\"",
"tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ", "tslint": "npm run tslint-src && npm run tslint-root",
"tslint-root": "tslint -c tslint.json *.ts", "tslint-src": "tslint -c tslint.json src/**/*.ts, src/**/*.spec.ts ",
"copytemplates": "npm run copy-html-css && npm run copy-i18n", "tslint-root": "tslint -c tslint.json *.ts",
"copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"", "copytemplates": "npm run copy-html-css && npm run copy-i18n",
"copy-html-css": "cpx './src/**/*.{html,css}' dist/src", "copytemplates:w": "concurrently \"npm run copy-html-css:w\" \"npm run copy-i18n:w\"",
"copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w", "copy-html-css": "cpx './src/**/*.{html,css}' dist/src",
"copy-i18n": "cpx './i18n/**/*.json' dist/i18n", "copy-html-css:w": "cpx './src/**/*.{html,css}' dist/src -w",
"copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w", "copy-i18n": "cpx './i18n/**/*.json' dist/i18n",
"tsc": "tsc", "copy-i18n:w": "cpx './i18n/**/*.json' dist/i18n -w",
"tsc:w": "tsc -w", "tsc": "tsc",
"pretest": "npm run build", "tsc:w": "tsc -w",
"test": "karma start karma.conf.js --reporters mocha,coverage --single-run", "pretest": "npm run build",
"test-browser": "concurrently \"karma start karma.conf.js --reporters kjhtml\" \"npm run watch-task\"", "test": "karma start karma.conf.js --reporters mocha,coverage --single-run",
"posttest": "node_modules/.bin/remap-istanbul -i coverage/report/coverage-final.json -o coverage/report -t html", "test-browser": "concurrently \"karma start karma.conf.js --reporters kjhtml\" \"npm run watch-task\"",
"coverage": "npm run test && wsrv -o -p 9875 ./coverage/report", "posttest": "node_modules/.bin/remap-istanbul -i coverage/report/coverage-final.json -o coverage/report -t html",
"prepublish": "npm run build" "coverage": "npm run test && wsrv -o -p 9875 ./coverage/report",
}, "prepublish": "npm run build"
"repository": { },
"type": "git", "repository": {
"url": "https://github.com/Alfresco/dev-platform-webcomponents.git" "type": "git",
}, "url": "https://github.com/Alfresco/dev-platform-webcomponents.git"
"bugs": { },
"url": "https://github.com/Alfresco/dev-platform-webcomponents/issues" "bugs": {
}, "url": "https://github.com/Alfresco/dev-platform-webcomponents/issues"
"license": "Apache-2.0", },
"contributors": [ "license": "Apache-2.0",
{ "contributors": [
"name": "Denys Vuika", {
"email": "denis.vuyka@gmail.com" "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/"
} }
],
"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/"
}
} }

View File

@@ -4,6 +4,7 @@
"version": "0.1.24", "version": "0.1.24",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rm -rf 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 && rm -rf dist && tsc && npm run copytemplates && license-check",

View File

@@ -4,6 +4,7 @@
"version": "0.1.16", "version": "0.1.16",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rm -rf 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 && rm -rf dist && tsc && npm run copytemplates && license-check",

View File

@@ -4,6 +4,7 @@
"version": "0.1.18", "version": "0.1.18",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rm -rf 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 && rm -rf dist && tsc && npm run copytemplates && license-check",

View File

@@ -4,6 +4,7 @@
"version": "0.1.37", "version": "0.1.37",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rm -rf 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 && rm -rf dist && tsc && npm run copytemplates && license-check",

View File

@@ -4,6 +4,7 @@
"version": "0.1.19", "version": "0.1.19",
"author": "Eugenio Romano", "author": "Eugenio Romano",
"scripts": { "scripts": {
"clean": "rm -rf 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 .",

View File

@@ -8,6 +8,10 @@ if [[ $1 = "-install" ]]; then
elif [[ $1 = "-update " ]]; then elif [[ $1 = "-update " ]]; then
npm run update npm run update
npm run start npm run start
elif [[ $1 = "-cleanInstall" ]]; then
npm run clean
npm install
npm run start
else else
npm run start npm run start
fi fi