mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 10:33:59 -05:00
Implements Prettier formatting (#2766)
This commit is contained in:
committed by
GitHub
parent
cfff740283
commit
3d68f5382e
9
Makefile
9
Makefile
@@ -75,11 +75,11 @@ run: prereqs webpack ## Runs the site normally
|
||||
./node_modules/.bin/supervisor -w app.js,lib,etc/config,static/tsconfig.json -e 'js|ts|node|properties|yaml' --exec $(NODE) $(NODE_ARGS) -- -r esm ./app.js $(EXTRA_ARGS)
|
||||
|
||||
dev: export NODE_ENV=development
|
||||
dev: prereqs install-git-hooks ## Runs the site as a developer; including live reload support and installation of git hooks
|
||||
dev: prereqs ## Runs the site as a developer; including live reload support and installation of git hooks
|
||||
./node_modules/.bin/supervisor -w app.js,lib,etc/config,static/tsconfig.json -e 'js|ts|node|properties|yaml' -n exit --exec $(NODE) $(NODE_ARGS) -- -r esm ./app.js $(EXTRA_ARGS)
|
||||
|
||||
debug: export NODE_ENV=development
|
||||
debug: prereqs install-git-hooks ## Runs the site as a developer with full debugging; including live reload support and installation of git hooks
|
||||
debug: prereqs ## Runs the site as a developer with full debugging; including live reload support and installation of git hooks
|
||||
./node_modules/.bin/supervisor -w app.js,lib,etc/config,static/tsconfig.json -e 'js|ts|node|properties|yaml' -n exit --inspect 9229 --exec $(NODE) $(NODE_ARGS) -- -r esm ./app.js --debug $(EXTRA_ARGS)
|
||||
|
||||
HASH := $(shell git rev-parse HEAD)
|
||||
@@ -106,11 +106,6 @@ gh-dist: dist ## Creates a distribution as if we were running on github
|
||||
@[ -z "$(SENTRY_AUTH_TOKEN)" ] || $(NPM) run sentry -- releases set-commits --auto $(RELEASE_NAME)
|
||||
@[ -z "$(SENTRY_AUTH_TOKEN)" ] || $(NPM) run sentry -- releases files $(RELEASE_NAME) upload-sourcemaps out/dist/static
|
||||
|
||||
install-git-hooks: ## Install git hooks that will ensure code is linted and tests are run before allowing a check in
|
||||
mkdir -p "$(shell git rev-parse --git-dir)/hooks"
|
||||
ln -sf "$(shell pwd)/etc/scripts/pre-commit" "$(shell git rev-parse --git-dir)/hooks/pre-commit"
|
||||
.PHONY: install-git-hooks
|
||||
|
||||
changelog: ## Create the changelog
|
||||
python3 ./etc/scripts/changelog.py
|
||||
|
||||
|
||||
Reference in New Issue
Block a user