Something went wrong. Try again.
⭐️ A friendly language for building type-safe, scalable systems! forked from gleam.run/gleam
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273## Goals to be specified by user#
.PHONY: helphelp: @cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: buildbuild: ## Build the compiler cargo build --release
.PHONY: installinstall: ## Build the Gleam compiler and place it on PATH cd gleam-bin && cargo install --path . --force --locked
.PHONY: testtest: ## Run the compiler unit tests cargo test --quiet cargo clippy cd test/language && make cd test/javascript_prelude && make test cd test/project_erlang && cargo run clean && cargo run check && cargo run test cd test/project_javascript && cargo run clean && cargo run check && cargo run test cd test/project_deno && cargo run clean && cargo run check && cargo run test cd test/hextarball && make test cd test/typescript_declarations && make test cd test/running_modules && make test cd test/subdir_ffi && make
.PHONY: snapshots-check-unusedsnapshots-check-unused: ## Check for unused cargo insta snapshots cargo insta test --unreferenced=warn
.PHONY: snapshots-fix-unusedsnapshots-fix-unused: ## Remove unused cargo insta snapshots cargo insta test --unreferenced=delete
.PHONY: language-testlanguage-test: ## Run the language integration tests for all targets cd test/language && make
.PHONY: language-test-watchlanguage-test-watch: ## Run the language integration tests for all targets when files change watchexec "cd test/language && make"
.PHONY: javascript-prelude-testjavascript-prelude-test: ## Run the JavaScript prelude core tests cd test/javascript_prelude && make test
.PHONY: javascript-prelude-test-watchjavascript-prelude-test-watch: ## Run the JavaScript prelude core tests when files change watchexec "cd test/javascript_prelude && make test"
.PHONY: test-watchtest-watch: ## Run compiler tests when files change watchexec -e rs,toml,gleam,html "cargo test --quiet"
.PHONY: export-hex-tarball-testexport-hex-tarball-test: ## Run `gleam export hex-tarball` and verify it is created cd test/hextarball && make test
.PHONY: typescript-declarations-testtypescript-declarations-test: ## Check that generated TypeScript declaration compile cd test/typescript_declarations && make test
.PHONY: benchmarkbenchmark: ## Run the benchmarks cd benchmark/list && make
# Debug print vars with `make print-VAR_NAME`print-%: ; @echo $*=$($*)