mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
Merge branch 'master' into dev-denys-340
# Conflicts: # ng2-components/ng2-alfresco-datatable/package.json # ng2-components/ng2-alfresco-documentlist/package.json
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Alfresco-Angular2-Demo",
|
"name": "Alfresco-Angular2-Demo",
|
||||||
"description": "Demo shell for Alfresco Angular2 components",
|
"description": "Demo shell for Alfresco Angular2 components",
|
||||||
"version": "0.1.0",
|
"version": "0.2.0",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf node_modules typings",
|
"clean": "rimraf node_modules typings",
|
||||||
@@ -76,13 +76,13 @@
|
|||||||
"flag-icon-css": "2.3.0",
|
"flag-icon-css": "2.3.0",
|
||||||
|
|
||||||
"alfresco-js-api": "^0.1.0",
|
"alfresco-js-api": "^0.1.0",
|
||||||
"ng2-alfresco-core": "0.0.0-PLACEHOLDER",
|
"ng2-alfresco-core": "0.2.0",
|
||||||
"ng2-alfresco-datatable": "0.0.0-PLACEHOLDER",
|
"ng2-alfresco-datatable": "0.2.0",
|
||||||
"ng2-alfresco-documentlist": "0.0.0-PLACEHOLDER",
|
"ng2-alfresco-documentlist": "0.2.0",
|
||||||
"ng2-alfresco-login": "0.0.0-PLACEHOLDER",
|
"ng2-alfresco-login": "0.2.0",
|
||||||
"ng2-alfresco-search": "0.0.0-PLACEHOLDER",
|
"ng2-alfresco-search": "0.2.0",
|
||||||
"ng2-alfresco-upload": "0.0.0-PLACEHOLDER",
|
"ng2-alfresco-upload": "0.2.0",
|
||||||
"ng2-alfresco-viewer": "0.0.0-PLACEHOLDER"
|
"ng2-alfresco-viewer": "0.2.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"browser-sync": "2.10.0",
|
"browser-sync": "2.10.0",
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-core",
|
"name": "ng2-alfresco-core",
|
||||||
"description": "Alfresco Angular 2 Components core",
|
"description": "Alfresco Angular 2 Components core",
|
||||||
"version": "0.0.0-PLACEHOLDER",
|
"version": "0.2.0",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-datatable",
|
"name": "ng2-alfresco-datatable",
|
||||||
"description": "Alfresco Angular2 DataTable Component",
|
"description": "Alfresco Angular2 DataTable Component",
|
||||||
"version": "0.0.0-PLACEHOLDER",
|
"version": "0.2.0",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-documentlist",
|
"name": "ng2-alfresco-documentlist",
|
||||||
"description": "Alfresco Angular2 Document List Component",
|
"description": "Alfresco Angular2 Document List Component",
|
||||||
"version": "0.0.0-PLACEHOLDER",
|
"version": "0.2.0",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
@@ -74,9 +74,9 @@
|
|||||||
"zone.js": "0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"rimraf": "2.5.2",
|
"rimraf": "2.5.2",
|
||||||
"ng2-translate": "2.2.2",
|
"ng2-translate": "2.2.2",
|
||||||
"alfresco-js-api": "^0.1.0",
|
"ng2-alfresco-core": "0.2.0",
|
||||||
"ng2-alfresco-core": "0.0.0-PLACEHOLDER",
|
"ng2-alfresco-datatable": "0.2.0",
|
||||||
"ng2-alfresco-datatable": "0.0.0-PLACEHOLDER"
|
"alfresco-js-api": "^0.1.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"material-design-icons": "^2.2.3",
|
"material-design-icons": "^2.2.3",
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-login",
|
"name": "ng2-alfresco-login",
|
||||||
"description": "Alfresco Angular2 Login Component",
|
"description": "Alfresco Angular2 Login Component",
|
||||||
"version": "0.0.0-PLACEHOLDER",
|
"version": "0.2.0",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
"zone.js": "0.6.12",
|
"zone.js": "0.6.12",
|
||||||
"rimraf": "2.5.2",
|
"rimraf": "2.5.2",
|
||||||
"ng2-translate": "2.2.2",
|
"ng2-translate": "2.2.2",
|
||||||
"ng2-alfresco-core": "0.0.0-PLACEHOLDER",
|
"ng2-alfresco-core": "0.2.0",
|
||||||
"alfresco-js-api": "^0.1.0",
|
"alfresco-js-api": "^0.1.0",
|
||||||
"coveralls": "^2.11.9"
|
"coveralls": "^2.11.9"
|
||||||
},
|
},
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-search",
|
"name": "ng2-alfresco-search",
|
||||||
"description": "Alfresco Angular2 Search Component",
|
"description": "Alfresco Angular2 Search Component",
|
||||||
"version": "0.0.0-PLACEHOLDER",
|
"version": "0.2.0",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
@@ -76,7 +76,7 @@
|
|||||||
"ng2-translate": "2.2.2",
|
"ng2-translate": "2.2.2",
|
||||||
"material-design-lite": "1.1.3",
|
"material-design-lite": "1.1.3",
|
||||||
"alfresco-js-api": "^0.1.0",
|
"alfresco-js-api": "^0.1.0",
|
||||||
"ng2-alfresco-core": "0.0.0-PLACEHOLDER"
|
"ng2-alfresco-core": "0.2.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"material-design-icons": "^2.2.3",
|
"material-design-icons": "^2.2.3",
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-upload",
|
"name": "ng2-alfresco-upload",
|
||||||
"description": "Alfresco Angular2 Upload Component",
|
"description": "Alfresco Angular2 Upload Component",
|
||||||
"version": "0.0.0-PLACEHOLDER",
|
"version": "0.2.0",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
@@ -78,7 +78,7 @@
|
|||||||
"rimraf": "2.5.2",
|
"rimraf": "2.5.2",
|
||||||
"ng2-translate": "2.2.2",
|
"ng2-translate": "2.2.2",
|
||||||
"alfresco-js-api": "^0.1.0",
|
"alfresco-js-api": "^0.1.0",
|
||||||
"ng2-alfresco-core": "0.0.0-PLACEHOLDER"
|
"ng2-alfresco-core": "0.2.0"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"material-design-icons": "^2.2.3",
|
"material-design-icons": "^2.2.3",
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "ng2-alfresco-viewer",
|
"name": "ng2-alfresco-viewer",
|
||||||
"description": "Alfresco documents viewer",
|
"description": "Alfresco documents viewer",
|
||||||
"version": "0.0.0-PLACEHOLDER",
|
"version": "0.2.0",
|
||||||
"author": "Alfresco Software, Ltd.",
|
"author": "Alfresco Software, Ltd.",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"clean": "rimraf dist node_modules typings",
|
"clean": "rimraf dist node_modules typings",
|
||||||
|
@@ -34,4 +34,11 @@ feel for what's available.
|
|||||||
./start.sh -update
|
./start.sh -update
|
||||||
```
|
```
|
||||||
|
|
||||||
|
* If you want to use your local components use the following script with any of the previous option. It will npm link all the components
|
||||||
|
in the demo shell:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
./start-linked.sh
|
||||||
|
```
|
||||||
|
|
||||||
For development environment configuration please refer to [project docs](demo-shell-ng2/README.md).
|
For development environment configuration please refer to [project docs](demo-shell-ng2/README.md).
|
@@ -18,3 +18,5 @@ done
|
|||||||
|
|
||||||
cd "$DIR/../demo-shell-ng2"
|
cd "$DIR/../demo-shell-ng2"
|
||||||
npm run clean
|
npm run clean
|
||||||
|
|
||||||
|
cd ${DIR}
|
@@ -2,6 +2,8 @@
|
|||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
"$DIR/npm-clean.sh"
|
||||||
|
|
||||||
for PACKAGE in \
|
for PACKAGE in \
|
||||||
ng2-alfresco-core \
|
ng2-alfresco-core \
|
||||||
ng2-alfresco-datatable \
|
ng2-alfresco-datatable \
|
||||||
@@ -13,5 +15,8 @@ for PACKAGE in \
|
|||||||
do
|
do
|
||||||
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
|
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
|
||||||
echo "====== PUBLISHING: ${DESTDIR} ====="
|
echo "====== PUBLISHING: ${DESTDIR} ====="
|
||||||
npm publish ${DESTDIR}
|
cd ${DESTDIR}
|
||||||
|
npm install
|
||||||
|
npm publish
|
||||||
|
cd ${DIR}
|
||||||
done
|
done
|
||||||
|
21
scripts/start-linked.sh
Executable file
21
scripts/start-linked.sh
Executable file
@@ -0,0 +1,21 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
|
"$DIR/npm-link-demo-shell.sh"
|
||||||
|
|
||||||
|
cd "$DIR/../demo-shell-ng2"
|
||||||
|
|
||||||
|
if [[ $1 = "-install" ]]; then
|
||||||
|
npm install
|
||||||
|
npm run start
|
||||||
|
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
|
@@ -2,22 +2,6 @@
|
|||||||
|
|
||||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
for PACKAGE in \
|
|
||||||
ng2-alfresco-core \
|
|
||||||
ng2-alfresco-datatable \
|
|
||||||
ng2-alfresco-documentlist \
|
|
||||||
ng2-alfresco-login \
|
|
||||||
ng2-alfresco-search \
|
|
||||||
ng2-alfresco-upload \
|
|
||||||
ng2-alfresco-viewer
|
|
||||||
do
|
|
||||||
cd "$DIR/../ng2-components/${PACKAGE}"; npm version patch
|
|
||||||
done
|
|
||||||
|
|
||||||
"$DIR/update-version.sh" ^0.1.0
|
|
||||||
|
|
||||||
"$DIR/npm-link-demo-shell.sh"
|
|
||||||
|
|
||||||
cd "$DIR/../demo-shell-ng2"
|
cd "$DIR/../demo-shell-ng2"
|
||||||
|
|
||||||
if [[ $1 = "-install" ]]; then
|
if [[ $1 = "-install" ]]; then
|
||||||
|
@@ -1,5 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||||
|
|
||||||
set -ex
|
set -ex
|
||||||
|
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
@@ -12,5 +14,34 @@ then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "====== RENAMING 0.0.0-PLACEHOLDER to N.N.N version ======"
|
for PACKAGE in \
|
||||||
find ././../ -type f -name package.json -print0 | xargs -0 sed -i '' "s/0\\.0\\.0-PLACEHOLDER/${VERSION}/g"
|
ng2-alfresco-core \
|
||||||
|
ng2-alfresco-datatable \
|
||||||
|
ng2-alfresco-documentlist \
|
||||||
|
ng2-alfresco-login \
|
||||||
|
ng2-alfresco-search \
|
||||||
|
ng2-alfresco-upload \
|
||||||
|
ng2-alfresco-viewer
|
||||||
|
do
|
||||||
|
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
|
||||||
|
echo "====== UPDATE VERSION of ${PACKAGE} to ${VERSION} version in all the package.json ======"
|
||||||
|
find ././../ -type f -name package.json -print0 | xargs -0 sed -i '' "s/\"${PACKAGE}\": \"0\\.2\\.0\"/\"${PACKAGE}\": \"${VERSION}\"/g"
|
||||||
|
done
|
||||||
|
|
||||||
|
for PACKAGE in \
|
||||||
|
ng2-alfresco-core \
|
||||||
|
ng2-alfresco-datatable \
|
||||||
|
ng2-alfresco-documentlist \
|
||||||
|
ng2-alfresco-login \
|
||||||
|
ng2-alfresco-search \
|
||||||
|
ng2-alfresco-upload \
|
||||||
|
ng2-alfresco-viewer
|
||||||
|
do
|
||||||
|
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
|
||||||
|
echo "====== UPDATE VERSION OF ${PACKAGE} to ${VERSION} version ======"
|
||||||
|
sed -i '' "s/\"version\": \"0\\.2\\.0\"/\"version\": \"${VERSION}\"/g" ${DESTDIR}/package.json
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "====== UPDATE VERSION OF DEMO-SHELL to ${VERSION} version ======"
|
||||||
|
|
||||||
|
sed -i '' "s/\"version\": \"0\\.2\\.0\"/\"version\": \"${VERSION}\"/g" ${DIR}/../demo-shell-ng2/package.json
|
Reference in New Issue
Block a user