25 lines
650 B
Makefile
25 lines
650 B
Makefile
###
|
|
# All-in-one build command.
|
|
###
|
|
build: build-yarn-dependencies build-protocol-definitions
|
|
|
|
###
|
|
# Download dependencies from the Frontend using Yarn.
|
|
###
|
|
build-yarn-dependencies:
|
|
yarn --cwd ${PWD}/frontend install
|
|
|
|
###
|
|
# Protobuf Definitions.
|
|
# This will generate Protobuf definitions from ./proto to both Go and JS/TypeScript.
|
|
###
|
|
build-protocol-definitions:
|
|
prototool generate ${PWD}/proto
|
|
|
|
###
|
|
# Create new frontend plugin.
|
|
# This will run Cookiecutter to generate a new Backstage frontend plugin.
|
|
###
|
|
scaffold-new-frontend-plugin:
|
|
${PWD}/tools/cookiecutter/init.sh frontend/packages/plugins/_template --output-dir frontend/packages/plugins
|