Updated techdocs-cli build script
This commit is contained in:
@@ -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
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user