Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #34 from drtechie/develop
Browse files Browse the repository at this point in the history
Add CI build process, update Java packages
  • Loading branch information
drtechie authored Nov 21, 2023
2 parents 7ee9d95 + 83cefd5 commit e26ad6b
Show file tree
Hide file tree
Showing 13 changed files with 814 additions and 347 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ testem.log
.DS_Store
Thumbs.db
/.vscode
src/environments/environment.ci.ts
target
1 change: 1 addition & 0 deletions .java-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
17.0
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16
73 changes: 0 additions & 73 deletions Gruntfile.js

This file was deleted.

13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,18 @@ To install the ECD module, please follow these steps:
- Run the command `npm start`.
3. Open your browser and access `http://localhost:4200/#/login` to view the login page of module.

## Configuration
The ECD module can be configured by editing the config.js file. This file contains all of the settings for the module, such as the database connection string, the user authentication mechanism, and the role hierarchy.
## Building war files

To build deployable war files
```bash
mvn -B package --file pom.xml -P <profile_name>
```

The available profiles include dev, local, test, and ci.
Refer to `src/environments/environment.ci.template` file and ensure that the right environment variables are set for the build.

Packing with `ci` profile calls `build-ci` script in `package.json`.
It creates a `environment.ci.ts` file with all environment variables used in the generated build.

## Usage

Expand Down
21 changes: 21 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,27 @@
],
"outputHashing": "all"
},
"ci": {
"budgets": [
{
"type": "initial",
"maximumWarning": "4mb",
"maximumError": "5mb"
},
{
"type": "anyComponentStyle",
"maximumWarning": "1mb",
"maximumError": "2mb"
}
],
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.ci.ts"
}
],
"outputHashing": "all"
},
"development": {
"buildOptimizer": false,
"optimization": false,
Expand Down
Loading

0 comments on commit e26ad6b

Please sign in to comment.