fix: add repo link

This commit is contained in:
Thomas E Lackey 2020-11-16 14:11:34 -06:00
parent 8577d56575
commit e78184c0c3
4 changed files with 3 additions and 22 deletions

View File

@ -1,5 +1,2 @@
name: console name: console
build: yarn dist build: yarn dist
version: 0.0.25
package:
/: QmRTdeFtvdu41EXPoBovEhFc4V1RNKBUGjQ1GcBGMxBk1c

View File

@ -2,6 +2,7 @@
"name": "@dxos/console-app", "name": "@dxos/console-app",
"version": "1.1.0-beta.17", "version": "1.1.0-beta.17",
"description": "Kubenet Console Client", "description": "Kubenet Console Client",
"repository": "https://github.com/dxos/console",
"main": "dist/es/index.js", "main": "dist/es/index.js",
"files": [ "files": [
"src/gql" "src/gql"

View File

@ -1,7 +1,7 @@
{ {
"build": { "build": {
"name": "@dxos/console-app", "name": "@dxos/console-app",
"buildDate": "2020-11-16T19:22:58.531Z", "buildDate": "2020-11-16T20:04:29.098Z",
"version": "1.1.0-beta.16" "version": "1.1.0-beta.16"
} }
} }

View File

@ -7,32 +7,15 @@ for appdir in `find ./packages -name '*-app' -type d | grep -v node_modules`; do
WNS_ORG="dxos" WNS_ORG="dxos"
PKG_NAME=`cat package.json | jq -r '.name' | cut -d'/' -f2- | sed 's/-app$//'` PKG_NAME=`cat package.json | jq -r '.name' | cut -d'/' -f2- | sed 's/-app$//'`
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="$WNS_ORG/$PKG_NAME" WNS_NAME="$WNS_ORG/$PKG_NAME"
WNS_VERSION=`yarn -s wire wns name resolve wrn://${WNS_ORG}/application/${PKG_NAME} | jq -r '.records[0].attributes.version'`
if [ -z "$WNS_VERSION" ]; then
WNS_VERSION="0.0.1"
fi
cat <<EOF > app.yml cat <<EOF > app.yml
name: $PKG_NAME name: $PKG_NAME
build: yarn dist build: yarn dist
version: $WNS_VERSION
EOF EOF
yarn clean yarn clean
yarn -s wire app build
# TODO(telackey): We need to fix `wire app build` not to bake in a path!
# In the meantime, use `yarn dist` which will not.
# yarn -s wire app build
yarn dist
if [ -d "dist/production" ]; then if [ -d "dist/production" ]; then
yarn -s wire app publish --path './dist/production' yarn -s wire app publish --path './dist/production'