Skip to content

Commit e37c67b

Browse files
committed
[TASK] Add asset handling to makefile
For now it only runs on ddev.
1 parent 322f08b commit e37c67b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

Makefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,18 @@ help: ## Displays this list of targets with descriptions
4141

4242
## LIST: Targets that can be executed directly
4343

44+
.PHONE: assets
45+
assets: ## Builds all assets (Css, JavaScript, Fonts etc).
46+
ddev npm-build
47+
48+
.PHONE: assets-install
49+
assets-install: ## Installs the node-modules needed to build the assets.
50+
ddev npm-ci
51+
52+
.PHONE: assets-debug
53+
assets-debug: ## Builds assets, keeping the sourcemap. It copies the output files directly into Documentation-GENERATED-temp so they can be tested without reloading.
54+
ddev npm-debug
55+
4456
.PHONE: build-phar
4557
build-phar: ## Creates a guides.phar file (github workflow)
4658
./tools/build-phar.sh

0 commit comments

Comments
 (0)