feat(frontend): add build script

The build script prepares the package for a production build, builds the app, places every all needed files in a dist directory and cleans it.

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2023-08-26 14:26:47 +02:00
parent 7b3c217470
commit 4cb332622a
7 changed files with 50 additions and 26 deletions

View file

@ -37,12 +37,6 @@ const isMockMode = !!process.env.NEXT_PUBLIC_USE_MOCK_API && isPositiveAnswer(pr
*/
const isDevMode = process.env.NODE_ENV === 'development'
/**
* Defines if the current runtime was built in production mode.
* @type boolean
*/
const isProductionMode = process.env.NODE_ENV === 'production'
/**
* Defines if the current runtime contains the bundle analyzer and profiling metrics.
* @type boolean
@ -53,6 +47,5 @@ module.exports = {
isTestMode,
isMockMode,
isDevMode,
isProductionMode,
isProfilingMode
}