WNS publishing.
This commit is contained in:
parent
172e05ecaa
commit
90c67e34cc
@ -30,11 +30,14 @@
|
||||
"lerna": "^3.19.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@dxos/cli": "^1.0.1-beta.5",
|
||||
"@dxos/cli-app": "^1.0.1-beta.5",
|
||||
"@wirelineio/cli-wns": "^1.0.1-beta.5",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-loader": "^3.0.3",
|
||||
"eslint-config-semistandard": "^15.0.0",
|
||||
"eslint-config-standard": "^14.1.1",
|
||||
"eslint-loader": "^3.0.3",
|
||||
"eslint-plugin-babel": "^5.3.0",
|
||||
"eslint-plugin-import": "^2.18.2",
|
||||
"eslint-plugin-jest": "^23.13.1",
|
||||
|
@ -1,7 +1,7 @@
|
||||
{
|
||||
"build": {
|
||||
"name": "@dxos/console-app",
|
||||
"buildDate": "2020-06-11T21:23:02.421Z",
|
||||
"version": "1.0.0-beta.1"
|
||||
"buildDate": "2020-06-12T03:31:58.883Z",
|
||||
"version": "1.0.0-beta.2"
|
||||
}
|
||||
}
|
||||
|
40
scripts/deploy_apps_to_wns.sh
Executable file
40
scripts/deploy_apps_to_wns.sh
Executable file
@ -0,0 +1,40 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
for appdir in `find ./packages -name '*-app' -type d | grep -v node_modules`; do
|
||||
pushd $appdir
|
||||
|
||||
ORG="dxos.network"
|
||||
PKG_NAME=`cat package.json | jq -r '.name' | cut -d'/' -f2-`
|
||||
PKG_DESC=`cat package.json | jq -r '.description'`
|
||||
PKG_VERSION=`cat package.json | jq -r '.version'`
|
||||
|
||||
if [ -z "$PKG_DESC" ]; then
|
||||
PKG_DESC="$PKG_NAME"
|
||||
fi
|
||||
|
||||
WNS_NAME="$ORG/$PKG_NAME"
|
||||
WNS_VERSION=`yarn -s wire app query --name "$WNS_NAME" | jq -r '.[0].version'`
|
||||
|
||||
if [ -z "$WNS_VERSION" ]; then
|
||||
WNS_VERSION="0.0.0"
|
||||
fi
|
||||
|
||||
cat <<EOF > app.yml
|
||||
name: $WNS_NAME
|
||||
displayName: $PKG_DESC
|
||||
build: yarn dist
|
||||
version: $WNS_VERSION
|
||||
EOF
|
||||
|
||||
yarn -s wire app build
|
||||
if [ -d "dist/production" ]; then
|
||||
yarn -s wire app publish --path './dist/production'
|
||||
else
|
||||
yarn -s wire app publish
|
||||
fi
|
||||
yarn -s wire app register
|
||||
|
||||
popd
|
||||
done
|
Loading…
Reference in New Issue
Block a user