Skip to content

Latest commit

 

History

History
154 lines (109 loc) · 3.32 KB

build-management.md

File metadata and controls

154 lines (109 loc) · 3.32 KB

Build Management

Set up the Development Environment

You need to set up your development environment before you can do anything.

What you need:

  • git
  • Node.js
  • Angular CLI

Clone the project

Change the current working directory to the location where you want the cloned directory to be:

cd ~/workspace

Clone the project by running the following command:

git clone https://github.com/Robinyo/serendipity
cd serendipity/frontend

Development

To build the project:

# In the project's /frontend directory

ng build --configuration="development" utils-lib && \
ng build --configuration="development" auth-lib && \
ng build --configuration="development" auth-bff-lib && \
ng build --configuration="development" serendipity-components-lib && \
ng build --configuration="development" dynamic-forms-lib && \
ng build --configuration="development" flowable-lib && \
ng build --configuration="development" party-lib && \
ng build --configuration="development" work-lib && \
ng build --configuration="development" serendipity-web-app

To launch the project:

ng serve serendipity-web-app --port 30001

Navigate to: http://127.0.0.1:30001

Production

To build the project:

ng build utils-lib && \
ng build auth-lib && \
ng build auth-bff-lib && \
ng build serendipity-components-lib && \
ng build dynamic-forms-lib && \
ng build flowable-lib && \
ng build party-lib && \
ng build work-lib && \
ng build serendipity-web-app

The build artifacts will be stored in the `/dist' directory.

To launch the project using http-server:

http-server -p 4200 -c-1 ./dist/serendipity-web-app

Navigate to:

http://localhost:4200

Aliases

To add support for aliases update the "paths" array in the compilerOptions section of tsconfig.json:

  "paths": {
    "@app/*": [
      "src/app/*"
    ],
    "@env/*": [
      "src/environments/*"
    ],

    ...
    
  }

Project Assets

You use the assets array inside the build target in angular.json to list files or folders you want to copy as-is when building your project:

  "assets": [
    "projects/party/src/favicon.ico",
    "projects/party/src/assets"
    ...
  ]

Source Control

Check in:

git add .
git commit -m "Updated the README.md file"
git push -u origin main

Tag Format:

1.0.0-beta.1

To create a local tag on your current branch, run this:

git tag <tagname>

To push the local tags to GitHub:

git push origin --tags

or

git push origin <tag>

Resources