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

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

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