Revert "web: manage version via package.json"
This reverts commit 022401b60e
.
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
# Conflicts:
# web/src/api/Sentry.ts
# web/src/api/Users.ts
This commit is contained in:
parent
0348d6558a
commit
ddae9dc6e1
|
@ -17,4 +17,4 @@ tag_name = version/{new_version}
|
|||
|
||||
[bumpversion:file:internal/constants/constants.go]
|
||||
|
||||
[bumpversion:file:web/package.json]
|
||||
[bumpversion:file:web/src/constants.ts]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@goauthentik/web",
|
||||
"version": "2022.6.3",
|
||||
"name": "authentik-web",
|
||||
"version": "0.0.0",
|
||||
"private": true,
|
||||
"license": "GNU GPLv3",
|
||||
"scripts": {
|
||||
|
|
|
@ -7,8 +7,6 @@ import copy from "rollup-plugin-copy";
|
|||
import cssimport from "rollup-plugin-cssimport";
|
||||
import { terser } from "rollup-plugin-terser";
|
||||
|
||||
import pkg from "./package.json";
|
||||
|
||||
const extensions = [".js", ".jsx", ".ts", ".tsx"];
|
||||
|
||||
export const resources = [
|
||||
|
@ -75,12 +73,6 @@ export const defaultOptions = {
|
|||
plugins: [
|
||||
cssimport(),
|
||||
markdown(),
|
||||
replace({
|
||||
"process.env.NODE_ENV": JSON.stringify(isProdBuild ? "production" : "development"),
|
||||
"process.env.AK_API_BASE_PATH": JSON.stringify(apiBasePath),
|
||||
"process.env.AK_VERSION": JSON.stringify(pkg.version),
|
||||
"preventAssignment": true,
|
||||
}),
|
||||
nodeResolve({ extensions, browser: true }),
|
||||
commonjs(),
|
||||
babel({
|
||||
|
@ -88,6 +80,11 @@ export const defaultOptions = {
|
|||
babelHelpers: "runtime",
|
||||
include: ["src/**/*"],
|
||||
}),
|
||||
replace({
|
||||
"process.env.NODE_ENV": JSON.stringify(isProdBuild ? "production" : "development"),
|
||||
"process.env.AK_API_BASE_PATH": JSON.stringify(apiBasePath),
|
||||
"preventAssignment": true,
|
||||
}),
|
||||
isProdBuild && terser(),
|
||||
].filter((p) => p),
|
||||
watch: {
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
// Placeholder, replaced by rollup;
|
||||
export const VERSION = process.env.AK_VERSION;
|
||||
|
||||
export const SECONDARY_CLASS = "pf-m-secondary";
|
||||
export const SUCCESS_CLASS = "pf-m-success";
|
||||
export const ERROR_CLASS = "pf-m-danger";
|
||||
export const PROGRESS_CLASS = "pf-m-in-progress";
|
||||
export const CURRENT_CLASS = "pf-m-current";
|
||||
export const VERSION = "2022.6.3";
|
||||
export const TITLE_DEFAULT = "authentik";
|
||||
export const ROUTE_SEPARATOR = ";";
|
||||
|
||||
|
|
Reference in New Issue