Update 01_Development.md

Signed-off-by: Dennis Eichhorn <spl1nes.com@googlemail.com>
This commit is contained in:
Dennis Eichhorn 2024-01-10 17:21:08 +01:00 committed by GitHub
parent 1f448a1894
commit ed8bae73ab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -109,13 +109,15 @@ If a developer (or employee in general) has an idea for an improvement, feature
### Release flow
In case scss/css or js files got changed they must get re-built locally before comitting the code change:
In case SCSS/CSS or JS files got changed they must get re-built locally before comitting the code change:
```sh
npx esbuild Web/Frontend/js/frontend.js --bundle --outfile=privateSetup/cms/Frontend/js/frontend.min.js --minify && npx esbuild Web/Backend/js/backend.js --bundle --outfile=Install/Application/Backend/js/backend.min.js --minify && cp Install/Application/Backend/js/backend.min.js Web/Backend/js/backend.min.js
npx esbuild Web/Backend/js/backend.js --bundle --outfile=Install/Application/Backend/js/backend.min.js --minify
scss cssOMS/styles.scss > cssOMS/styles.css
```
For JS you may also use the shorthand command `npm run build`.
Code changes must be performed in a new branch. A new branch can be created with:
```sh