Skip to content

Commit

Permalink
Add makefile commands
Browse files Browse the repository at this point in the history
And invoke `config-api-schema` when building the config options and updating the client API schema.
  • Loading branch information
davelopez committed Aug 4, 2023
1 parent f726972 commit dbc745a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,18 @@ config-convert-dry-run: ## convert old style galaxy ini to yaml (dry run)
config-convert: ## convert old style galaxy ini to yaml
$(CONFIG_MANAGE) convert galaxy

config-api-schema: ## generates the schema model for the galaxy config file
$(CONFIG_MANAGE) generate_api_models galaxy
$(IN_VENV) isort lib/galaxy/schema/configuration.py
$(IN_VENV) black lib/galaxy/schema/configuration.py

config-rebuild: ## Rebuild all sample YAML and RST files from config schema
$(CONFIG_MANAGE) build_sample_yaml galaxy --add-comments
$(CONFIG_MANAGE) build_rst galaxy > doc/source/admin/galaxy_options.rst
$(CONFIG_MANAGE) build_sample_yaml reports --add-comments
$(CONFIG_MANAGE) build_rst reports > doc/source/admin/reports_options.rst
$(CONFIG_MANAGE) build_sample_yaml tool_shed --add-comments
$(MAKE) config-api-schema

config-lint: ## lint galaxy YAML configuration file
$(CONFIG_MANAGE) lint galaxy
Expand Down Expand Up @@ -186,7 +192,7 @@ build-api-schema:
remove-api-schema:
rm _schema.yaml

update-client-api-schema: client-node-deps build-api-schema
update-client-api-schema: config-api-schema client-node-deps build-api-schema
$(IN_VENV) cd client && node openapi_to_schema.mjs ../_schema.yaml > src/schema/schema.ts && npx prettier --write src/schema/schema.ts
$(MAKE) remove-api-schema

Expand Down

0 comments on commit dbc745a

Please sign in to comment.