
This commit moves the build of the web into a sub-repository and refactors the build instructions to understand that move. The simple result at this time will be just a move and a re-arrangement of the build paths so that the final product is still deposited in the `./dist` folder. Only a few "functional" changes have been made: - The core package has been renamed '@goauthentik/authentik' to distinguish itself from the root package name '@goauthentik/web'. - The codespell paths have been updated - The path to the imported markdown documentation has been updated. - TSConfig.json has been split into a "base" and "build" pair. This is necessary because our future builds will use a slightly different configuration from our linters, as the former do not need the typing information (their job is to strip it away, leaving us with pure JavaScript), and the latter very definitely need it to make our IDE's work correctly. - Rollup.config.js has also been split into a "base" and "build" pair. The base has been slightly refactored, with heavily concretized paths for the project ROOT and project DIST folders. This informs the moved authentik project where to put the built release. The NPM -> Lage relationship was done mechanicall: I copied our targets from the existing package.json into lage, then used some regex magic to tell lage "call all these targets in our packages," of which we have exactly ONE right now. I also had to fix yet another xliff consistency error. *Sigh*.
34 lines
1.5 KiB
JavaScript
34 lines
1.5 KiB
JavaScript
module.exports = {
|
|
// Basic syntax: just run these tasks all the packages. There is only one package at the moment.
|
|
pipeline: {
|
|
"extract-locales": ["^extract-locales"],
|
|
"build-locales": ["^build-locales"],
|
|
"build-locales:build": ["^build-locales:build"],
|
|
"build-locales:repair": ["^build-locales:repair"],
|
|
"rollup:build": ["^rollup:build"],
|
|
"rollup:build-proxy": ["^rollup:build-proxy"],
|
|
"rollup:watch": ["^rollup:watch"],
|
|
"build": ["^build"],
|
|
"build-proxy": ["^build-proxy"],
|
|
"watch": ["^watch"],
|
|
"lint": ["^lint"],
|
|
"lint:precommit": ["^lint:precommit"],
|
|
"lint:spelling": ["^lint:spelling"],
|
|
"lit-analyse": ["^lit-analyse"],
|
|
"precommit": ["^precommit"],
|
|
"prequick": ["^prequick"],
|
|
"prettier-check": ["^prettier-check"],
|
|
"prettier": ["^prettier"],
|
|
"pseudolocalize:build-extract-script": ["^pseudolocalize:build-extract-script"],
|
|
"pseudolocalize:extract": ["^pseudolocalize:extract"],
|
|
"pseudolocalize": ["^pseudolocalize"],
|
|
"tsc:execute": ["^tsc:execute"],
|
|
"tsc": ["^tsc"],
|
|
"storybook": ["^storybook"],
|
|
"storybook:build": ["^storybook:build"],
|
|
"storybook:build-import-map": ["^storybook:build-import-map"],
|
|
"storybook:build-import-map-script": ["^storybook:build-import-map-script"],
|
|
"storybook:run-import-map-script": ["^storybook:run-import-map-script"],
|
|
},
|
|
};
|