From bb63c4ceba4bce6daf100d0c41fcbf1d524c0fce Mon Sep 17 00:00:00 2001 From: Sebastian Qvarfordt Date: Wed, 15 Jul 2020 10:48:52 +0200 Subject: [PATCH] Updated techdocs-cli build script --- packages/techdocs-cli/bin/{build => build.sh} | 7 +++---- packages/techdocs-cli/package.json | 5 +++-- 2 files changed, 6 insertions(+), 6 deletions(-) rename packages/techdocs-cli/bin/{build => build.sh} (92%) diff --git a/packages/techdocs-cli/bin/build b/packages/techdocs-cli/bin/build.sh similarity index 92% rename from packages/techdocs-cli/bin/build rename to packages/techdocs-cli/bin/build.sh index 45fb71f9d5..225cc334aa 100755 --- a/packages/techdocs-cli/bin/build +++ b/packages/techdocs-cli/bin/build.sh @@ -1,3 +1,5 @@ +#!/bin/bash + # Copyright 2020 Spotify AB # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -18,11 +20,8 @@ ROOT_DIR=$(git rev-parse --show-toplevel) TECHDOCS_PREVIEW_SOURCE=$ROOT_DIR/plugins/techdocs/dist TECHDOCS_PREVIEW_DEST=$ROOT_DIR/packages/techdocs-cli/dist/techdocs-preview-bundle -# Clean output -yarn workspace @backstage/plugin-techdocs clean - # Build the CLI -backstage-cli build --outputs cjs +yarn run backstage-cli -- build --outputs cjs # Create export of the TechDocs plugin APP_CONFIG_techdocs_storageUrl='"http://localhost:3000/api"' yarn workspace @backstage/plugin-techdocs export diff --git a/packages/techdocs-cli/package.json b/packages/techdocs-cli/package.json index 2e06c4a71e..8b954d2277 100644 --- a/packages/techdocs-cli/package.json +++ b/packages/techdocs-cli/package.json @@ -18,11 +18,12 @@ "license": "Apache-2.0", "main": "dist/index.cjs.js", "scripts": { - "build": "./bin/build", + "build": "./bin/build.sh", "lint": "backstage-cli lint", "test": "backstage-cli test --passWithNoTests", "clean": "backstage-cli clean", - "start": "nodemon --" + "start": "nodemon --", + "backstage-cli": "backstage-cli --" }, "bin": { "techdocs": "bin/techdocs-cli"