mirror of
https://github.com/goauthentik/authentik.git
synced 2026-06-17 19:09:11 +03:00
packages: use openapi-generator-ignore instead of deleting extra files (#21209)
Signed-off-by: Jens Langhammer <jens@goauthentik.io>
This commit is contained in:
@@ -1,2 +1,9 @@
|
||||
go.mod
|
||||
go.sum
|
||||
.gitignore
|
||||
.travis.yml
|
||||
README.md
|
||||
api/**
|
||||
docs/**
|
||||
git_push.sh
|
||||
test/**
|
||||
|
||||
@@ -11,15 +11,5 @@ build:
|
||||
-g go \
|
||||
-o local \
|
||||
-c /local/config.yaml
|
||||
rm -rf \
|
||||
"${PWD}/.gitignore" \
|
||||
"${PWD}/.openapi-generator" \
|
||||
"${PWD}/.travis.yml" \
|
||||
"${PWD}/README.md" \
|
||||
"${PWD}/api" \
|
||||
"${PWD}/docs" \
|
||||
"${PWD}/git_push.sh" \
|
||||
"${PWD}/test" \
|
||||
"${PWD}/go.mod" \
|
||||
"${PWD}/go.sum"
|
||||
rm -rf "${PWD}/.openapi-generator"
|
||||
go fmt .
|
||||
|
||||
@@ -1 +1,7 @@
|
||||
Cargo.toml
|
||||
.gitignore
|
||||
.openapi-generator/**
|
||||
docs/**
|
||||
git_push.sh
|
||||
.travis.yml
|
||||
README.md
|
||||
|
||||
@@ -3,13 +3,6 @@ PWD = $(shell pwd)
|
||||
UID = $(shell id -u)
|
||||
GID = $(shell id -g)
|
||||
|
||||
UNAME_S := $(shell uname -s)
|
||||
ifeq ($(UNAME_S),Darwin)
|
||||
SED_INPLACE = sed -i ''
|
||||
else
|
||||
SED_INPLACE = sed -i
|
||||
endif
|
||||
|
||||
build:
|
||||
ifndef version
|
||||
$(error Usage: make build version=20xx.xx.xx)
|
||||
@@ -22,11 +15,5 @@ endif
|
||||
-o local \
|
||||
-c /local/config.yaml \
|
||||
--additional-properties=packageVersion=$(version)
|
||||
$(SED_INPLACE) 's/models::models::/models::/g' ${PWD}/src/apis/*
|
||||
rm -rf \
|
||||
"${PWD}/.gitignore" \
|
||||
"${PWD}/.openapi-generator" \
|
||||
"${PWD}/.travis.yml" \
|
||||
"${PWD}/docs" \
|
||||
"${PWD}/git_push.sh" \
|
||||
"${PWD}/README.md"
|
||||
sed -i 's/models::models::/models::/g' ${PWD}/src/apis/*
|
||||
rm -rf "${PWD}/.openapi-generator"
|
||||
|
||||
@@ -1 +1,4 @@
|
||||
.gitignore
|
||||
.npmignore
|
||||
docs/**
|
||||
README.md
|
||||
|
||||
@@ -14,8 +14,4 @@ build:
|
||||
--additional-properties=npmVersion=0.0.0 \
|
||||
--git-repo-id authentik \
|
||||
--git-user-id goauthentik
|
||||
rm -rf \
|
||||
.npmignore \
|
||||
.openapi-generator \
|
||||
docs \
|
||||
README.md
|
||||
rm -rf "${PWD}/.openapi-generator"
|
||||
|
||||
Reference in New Issue
Block a user