fix clean script, remove typing folder and install rimraf if is not present

This commit is contained in:
Eugenio Romano
2016-09-30 09:42:53 +01:00
parent f3775b8c41
commit b309961edb
19 changed files with 35 additions and 35 deletions

View File

@@ -4,7 +4,7 @@
"version": "0.3.0", "version": "0.3.0",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && npm run tsc && npm run licensecheck", "build": "npm run tslint && npm run tsc && npm run licensecheck",
"start": "npm run build && concurrently \"npm run tsc:w\" \"npm run serve\" ", "start": "npm run build && concurrently \"npm run tsc:w\" \"npm run serve\" ",
"aws": "node app.js", "aws": "node app.js",

View File

@@ -4,7 +4,7 @@
"version": "0.3.3", "version": "0.3.3",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",

View File

@@ -4,7 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",

View File

@@ -4,7 +4,7 @@
"version": "0.3.3", "version": "0.3.3",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",

View File

@@ -4,7 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && tsc && npm run copy-dist:w && npm run watch-task", "build:w": "npm run tslint && rimraf dist && tsc && npm run copy-dist:w && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"license-check\"",

View File

@@ -4,7 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",

View File

@@ -4,7 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",

View File

@@ -4,7 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",

View File

@@ -4,7 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",

View File

@@ -6,7 +6,7 @@
"main": "./dist/index.js", "main": "./dist/index.js",
"typings": "./dist/index.d.ts", "typings": "./dist/index.d.ts",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",

View File

@@ -4,7 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",

View File

@@ -4,7 +4,7 @@
"version": "0.3.2", "version": "0.3.2",
"author": "Alfresco Software, Ltd.", "author": "Alfresco Software, Ltd.",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",

View File

@@ -6,7 +6,7 @@
"main": "./dist/index.js", "main": "./dist/index.js",
"typings": "./dist/index.d.ts", "typings": "./dist/index.d.ts",
"scripts": { "scripts": {
"clean": "rimraf dist node_modules", "clean": "npm install rimraf && rimraf dist node_modules typings",
"build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check", "build": "npm run tslint && rimraf dist && tsc && npm run copy-dist && license-check",
"build:w": "npm run tslint && rimraf dist && npm run watch-task", "build:w": "npm run tslint && rimraf dist && npm run watch-task",
"watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"", "watch-task": "concurrently \"npm run tsc:w\" \"npm run copy-dist:w\" \"license-check\"",

View File

@@ -11,19 +11,19 @@ build_project() {
} }
for PACKAGE in \ for PACKAGE in \
ng2-alfresco-core \ ng2-activiti-analytics \
ng2-activiti-form \ ng2-activiti-form \
ng2-activiti-tasklist \
ng2-activiti-processlist \ ng2-activiti-processlist \
ng2-activiti-tasklist \
ng2-alfresco-core \
ng2-alfresco-datatable \ ng2-alfresco-datatable \
ng2-alfresco-documentlist \ ng2-alfresco-documentlist \
ng2-alfresco-login \ ng2-alfresco-login \
ng2-alfresco-search \ ng2-alfresco-search \
ng2-alfresco-tag \
ng2-alfresco-upload \ ng2-alfresco-upload \
ng2-alfresco-viewer \ ng2-alfresco-viewer \
ng2-alfresco-webscript \ ng2-alfresco-webscript
ng2-alfresco-tag \
ng2-activiti-analytics
do do
DESTDIR="$DIR/../ng2-components/${PACKAGE}" DESTDIR="$DIR/../ng2-components/${PACKAGE}"
build_project $DESTDIR $PACKAGE build_project $DESTDIR $PACKAGE

View File

@@ -7,6 +7,7 @@ npm install -g npm-check
echo 'start' > ../check-dependecies.log echo 'start' > ../check-dependecies.log
for PACKAGE in \ for PACKAGE in \
ng2-activiti-analytics \
ng2-activiti-form \ ng2-activiti-form \
ng2-activiti-processlist \ ng2-activiti-processlist \
ng2-activiti-tasklist \ ng2-activiti-tasklist \
@@ -15,11 +16,10 @@ for PACKAGE in \
ng2-alfresco-documentlist \ ng2-alfresco-documentlist \
ng2-alfresco-login \ ng2-alfresco-login \
ng2-alfresco-search \ ng2-alfresco-search \
ng2-alfresco-tag \
ng2-alfresco-upload \ ng2-alfresco-upload \
ng2-alfresco-viewer \ ng2-alfresco-viewer \
ng2-alfresco-webscript \ ng2-alfresco-webscript
ng2-alfresco-tag \
ng2-activiti-analytics
do do
echo "====== Check component: ${PACKAGE} =====" echo "====== Check component: ${PACKAGE} ====="
cd "$DIR/../ng2-components/${PACKAGE}" cd "$DIR/../ng2-components/${PACKAGE}"

View File

@@ -3,6 +3,7 @@
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
for PACKAGE in \ for PACKAGE in \
ng2-activiti-analytics \
ng2-activiti-form \ ng2-activiti-form \
ng2-activiti-processlist \ ng2-activiti-processlist \
ng2-activiti-tasklist \ ng2-activiti-tasklist \
@@ -11,11 +12,10 @@ for PACKAGE in \
ng2-alfresco-documentlist \ ng2-alfresco-documentlist \
ng2-alfresco-login \ ng2-alfresco-login \
ng2-alfresco-search \ ng2-alfresco-search \
ng2-alfresco-tag \
ng2-alfresco-upload \ ng2-alfresco-upload \
ng2-alfresco-viewer \ ng2-alfresco-viewer \
ng2-alfresco-webscript \ ng2-alfresco-webscript
ng2-alfresco-tag \
ng2-activiti-analytics
do do
echo "====== clean component: ${PACKAGE} =====" echo "====== clean component: ${PACKAGE} ====="
cd "$DIR/../ng2-components/${PACKAGE}" cd "$DIR/../ng2-components/${PACKAGE}"

View File

@@ -89,6 +89,7 @@ done
#LINK ALL THE COMPONENTS INSIDE THE DEMOSHELL #LINK ALL THE COMPONENTS INSIDE THE DEMOSHELL
cd "$DIR/../demo-shell-ng2" cd "$DIR/../demo-shell-ng2"
for PACKAGE in \ for PACKAGE in \
ng2-activiti-analytics \
ng2-activiti-form \ ng2-activiti-form \
ng2-activiti-processlist \ ng2-activiti-processlist \
ng2-activiti-tasklist \ ng2-activiti-tasklist \
@@ -97,11 +98,10 @@ for PACKAGE in \
ng2-alfresco-documentlist \ ng2-alfresco-documentlist \
ng2-alfresco-login \ ng2-alfresco-login \
ng2-alfresco-search \ ng2-alfresco-search \
ng2-alfresco-tag \
ng2-alfresco-upload \ ng2-alfresco-upload \
ng2-alfresco-viewer \ ng2-alfresco-viewer \
ng2-alfresco-webscript \ ng2-alfresco-webscript \
ng2-alfresco-tag \
ng2-activiti-analytics
do do
DESTDIR="$DIR/../ng2-components/${PACKAGE}" DESTDIR="$DIR/../ng2-components/${PACKAGE}"
echo "====== demo shell linking: ${PACKAGE} =====" echo "====== demo shell linking: ${PACKAGE} ====="

View File

@@ -5,6 +5,7 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
"$DIR/npm-clean.sh" "$DIR/npm-clean.sh"
for PACKAGE in \ for PACKAGE in \
ng2-activiti-analytics \
ng2-activiti-form \ ng2-activiti-form \
ng2-activiti-processlist \ ng2-activiti-processlist \
ng2-activiti-tasklist \ ng2-activiti-tasklist \
@@ -13,11 +14,10 @@ for PACKAGE in \
ng2-alfresco-documentlist \ ng2-alfresco-documentlist \
ng2-alfresco-login \ ng2-alfresco-login \
ng2-alfresco-search \ ng2-alfresco-search \
ng2-alfresco-tag \
ng2-alfresco-upload \ ng2-alfresco-upload \
ng2-alfresco-viewer \ ng2-alfresco-viewer \
ng2-alfresco-webscript \ ng2-alfresco-webscript
ng2-alfresco-tag \
ng2-activiti-analytics
do do
DESTDIR="$DIR/../ng2-components/${PACKAGE}" DESTDIR="$DIR/../ng2-components/${PACKAGE}"
echo "====== PUBLISHING: ${DESTDIR} =====" echo "====== PUBLISHING: ${DESTDIR} ====="

View File

@@ -15,6 +15,7 @@ then
fi fi
for PACKAGE in \ for PACKAGE in \
ng2-activiti-analytics \
ng2-activiti-form \ ng2-activiti-form \
ng2-activiti-processlist \ ng2-activiti-processlist \
ng2-activiti-tasklist \ ng2-activiti-tasklist \
@@ -23,11 +24,10 @@ for PACKAGE in \
ng2-alfresco-documentlist \ ng2-alfresco-documentlist \
ng2-alfresco-login \ ng2-alfresco-login \
ng2-alfresco-search \ ng2-alfresco-search \
ng2-alfresco-tag \
ng2-alfresco-upload \ ng2-alfresco-upload \
ng2-alfresco-viewer \ ng2-alfresco-viewer \
ng2-alfresco-webscript \ ng2-alfresco-webscript
ng2-alfresco-tag \
ng2-activiti-analytics
do do
DESTDIR="$DIR/../ng2-components/${PACKAGE}" DESTDIR="$DIR/../ng2-components/${PACKAGE}"
echo "====== UPDATE VERSION of ${PACKAGE} to ${VERSION} version in all the package.json ======" echo "====== UPDATE VERSION of ${PACKAGE} to ${VERSION} version in all the package.json ======"
@@ -35,6 +35,7 @@ do
done done
for PACKAGE in \ for PACKAGE in \
ng2-activiti-analytics \
ng2-activiti-form \ ng2-activiti-form \
ng2-activiti-processlist \ ng2-activiti-processlist \
ng2-activiti-tasklist \ ng2-activiti-tasklist \
@@ -43,11 +44,10 @@ for PACKAGE in \
ng2-alfresco-documentlist \ ng2-alfresco-documentlist \
ng2-alfresco-login \ ng2-alfresco-login \
ng2-alfresco-search \ ng2-alfresco-search \
ng2-alfresco-tag \
ng2-alfresco-upload \ ng2-alfresco-upload \
ng2-alfresco-viewer \ ng2-alfresco-viewer \
ng2-alfresco-webscript \ ng2-alfresco-webscript
ng2-alfresco-tag \
ng2-activiti-analytics
do do
DESTDIR="$DIR/../ng2-components/${PACKAGE}" DESTDIR="$DIR/../ng2-components/${PACKAGE}"
echo "====== UPDATE VERSION OF ${PACKAGE} to ${VERSION} version ======" echo "====== UPDATE VERSION OF ${PACKAGE} to ${VERSION} version ======"