Skip to content

Commit

Permalink
Improved the configuration page
Browse files Browse the repository at this point in the history
  • Loading branch information
BitcoinMitchell committed Feb 19, 2024
1 parent a430058 commit 8fcc87c
Show file tree
Hide file tree
Showing 15 changed files with 799 additions and 247 deletions.
27 changes: 27 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ MODULE_FOLDER := "./modules"

BUILD_FOLDER := "./build"
ZIP_NAME := "${MODULE}.zip"
ZIP_DEBUG_NAME := "${MODULE}_debug.zip"
MODULE_OUT := "${BUILD_FOLDER}/${ZIP_NAME}"

.PHONY: all build install update upgrade clean lint lint-fix
Expand Down Expand Up @@ -35,6 +36,32 @@ build: ## Build the bastard binary file
&& zip -r $(ZIP_NAME) $(MODULE) \
&& mv $(ZIP_NAME) "../$(BUILD_FOLDER)"

debug: ## Build the bastard binary file as debug file
# Installing all dependencies
@cd "$(MODULE_FOLDER)/$(MODULE)" \
&& composer install

# Dump autoloader
@cd "$(MODULE_FOLDER)/$(MODULE)" \
&& composer dump-autoload -o

# Removing the old ZIP if present
@rm -f $(MODULE_OUT)

# Make the build folder
@mkdir -p $(BUILD_FOLDER)

# Copy the license to the module
@cp ./LICENSE "$(MODULE_FOLDER)/$(MODULE)"

# Copy the README to the module
@cp ./README.md "$(MODULE_FOLDER)/$(MODULE)"

# Zip the module
@cd $(MODULE_FOLDER) \
&& zip -r $(ZIP_DEBUG_NAME) $(MODULE) \
&& mv $(ZIP_DEBUG_NAME) "../$(BUILD_FOLDER)"

bump: ## Bump all package versions
# Bump all root dependencies
@composer install
Expand Down
19 changes: 10 additions & 9 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8fcc87c

Please sign in to comment.