mirror of https://github.com/coder/coder.git
chore: prevent gen from rerunning every time (#7985)
This commit is contained in:
parent
b70d2b1767
commit
6ac7d86c93
4
Makefile
4
Makefile
|
@ -50,7 +50,7 @@ endif
|
||||||
# Note, all find statements should be written with `.` or `./path` as
|
# Note, all find statements should be written with `.` or `./path` as
|
||||||
# the search path so that these exclusions match.
|
# the search path so that these exclusions match.
|
||||||
FIND_EXCLUSIONS= \
|
FIND_EXCLUSIONS= \
|
||||||
-not \( \( -path '*/.git/*' -o -path './build/*' -o -path './vendor/*' -o -path './.coderv2/*' -o -path '*/node_modules/*' -o -path './site/out/*' \) -prune \)
|
-not \( \( -path '*/.git/*' -o -path './build/*' -o -path './vendor/*' -o -path './.coderv2/*' -o -path '*/node_modules/*' -o -path './site/out/*' -o -path './coderd/apidoc/*' \) -prune \)
|
||||||
# Source files used for make targets, evaluated on use.
|
# Source files used for make targets, evaluated on use.
|
||||||
GO_SRC_FILES = $(shell find . $(FIND_EXCLUSIONS) -type f -name '*.go')
|
GO_SRC_FILES = $(shell find . $(FIND_EXCLUSIONS) -type f -name '*.go')
|
||||||
# All the shell files in the repo, excluding ignored files.
|
# All the shell files in the repo, excluding ignored files.
|
||||||
|
@ -522,7 +522,7 @@ docs/admin/prometheus.md: scripts/metricsdocgen/main.go scripts/metricsdocgen/me
|
||||||
cd site
|
cd site
|
||||||
yarn run format:write:only ../docs/admin/prometheus.md
|
yarn run format:write:only ../docs/admin/prometheus.md
|
||||||
|
|
||||||
docs/cli.md: scripts/clidocgen/main.go $(GO_SRC_FILES) docs/manifest.json
|
docs/cli.md: scripts/clidocgen/main.go $(GO_SRC_FILES)
|
||||||
BASE_PATH="." go run ./scripts/clidocgen
|
BASE_PATH="." go run ./scripts/clidocgen
|
||||||
cd site
|
cd site
|
||||||
yarn run format:write:only ../docs/cli.md ../docs/cli/*.md ../docs/manifest.json
|
yarn run format:write:only ../docs/cli.md ../docs/cli/*.md ../docs/manifest.json
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
"description": "Coder V2 (Workspaces V2)",
|
"description": "Coder V2 (Workspaces V2)",
|
||||||
"repository": "https://github.com/coder/coder",
|
"repository": "https://github.com/coder/coder",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
"license": "AGPL-3.0",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postinstall": "yarn typegen",
|
"postinstall": "yarn typegen",
|
||||||
"build": "NODE_ENV=production yarn vite build",
|
"build": "NODE_ENV=production yarn vite build",
|
||||||
|
|
Loading…
Reference in New Issue