Skip to content
This repository was archived by the owner on Mar 13, 2025. It is now read-only.

Commit 3016c55

Browse files
Merge branch 'bugbash' into yoution-issue-24
2 parents 3b6b744 + ad587c2 commit 3016c55

File tree

183 files changed

+2992
-9515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

183 files changed

+2992
-9515
lines changed

.circleci/config.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,16 @@ builddeploy_steps: &builddeploy_steps
2929
- run: *install_dependency
3030
- run: *install_deploysuite
3131
- restore_cache: *restore_cache_settings_for_build
32-
- run: ./build.sh ${APPNAME}
33-
- save_cache: *save_cache_settings
32+
- run:
33+
command: |
34+
./awsconfiguration.sh $DEPLOY_ENV
35+
source awsenvconf
36+
./buildenv.sh -e $DEPLOY_ENV -b ${LOGICAL_ENV}-${APPNAME}-buildvar
37+
- run:
38+
command: |
39+
source buildenvvar
40+
./build.sh ${APPNAME}
41+
#- save_cache: *save_cache_settings
3442
- deploy:
3543
name: Running MasterScript.
3644
command: |
@@ -69,7 +77,7 @@ workflows:
6977
branches:
7078
only:
7179
- dev
72-
- challenge-listing-part-1
80+
- challenge-listing-part-2
7381

7482
# Production builds are exectuted only on tagged commits to the
7583
# master branch.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,5 @@ Make sure you have [Heroky CLI](https://devcenter.heroku.com/articles/heroku-cli
5656

5757
- `git push heroku master` - push changes to Heroku and trigger deploying
5858

59-
- Now you have to configure frame app to use the URL provided by Heroku like `https://<APP-NAME>.herokuapp.com/topcoder-micro-frontends-earn-app.js` to load this microapp.
59+
- Now you have to configure frame app to use the URL provided by Heroku like `https://<APP-NAME>.herokuapp.com/earn-app/topcoder-micro-frontends-earn-app.js` to load this microapp.
6060

build.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,9 @@ set -eo pipefail
33
APP_NAME=$1
44
UPDATE_CACHE=""
55

6-
docker build -f docker/Dockerfile -t $APP_NAME:latest .
6+
docker build -f docker/Dockerfile -t $APP_NAME:latest \
7+
--build-arg APPMODE=$APPMODE \
8+
--build-arg APPENV=$APPENV .
79

810
docker create --name app $APP_NAME:latest
911

config/default.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ module.exports = {
33
DEBOUNCE_ON_CHANGE_TIME: 150,
44
},
55
API: {
6-
V5: 'https://api.topcoder-dev.com/v5',
7-
V3: 'https://api.topcoder-dev.com/v3',
6+
V5: "https://api.topcoder-dev.com/v5",
7+
V3: "https://api.topcoder-dev.com/v3",
88
},
99
URL: {
10-
COMMUNITY_APP: 'https://community-app.topcoder-dev.com',
10+
COMMUNITY_APP: "https://community-app.topcoder-dev.com",
1111
}
1212
}

config/development.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
GUIKIT: {
3+
DEBOUNCE_ON_CHANGE_TIME: 150,
4+
},
5+
API: {
6+
V5: "https://api.topcoder-dev.com/v5",
7+
V3: "https://api.topcoder-dev.com/v3",
8+
},
9+
URL: {
10+
COMMUNITY_APP: "https://community-app.topcoder-dev.com",
11+
},
12+
};

config/jest/setup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const config = require("config");
2+
3+
global.process.env = {...global.process.env, ...config};

config/production.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
module.exports = {
2+
GUIKIT: {
3+
DEBOUNCE_ON_CHANGE_TIME: 150,
4+
},
5+
API: {
6+
V5: "https://api.topcoder.com/v5",
7+
V3: "https://api.topcoder.com/v3",
8+
},
9+
URL: {
10+
COMMUNITY_APP: "https://community-app.topcoder.com",
11+
},
12+
};

docker/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Use the base image with Node.js
22
FROM node:latest
33

4+
ARG APPMODE
5+
ARG APPENV
6+
7+
ENV APPMODE=$APPMODE
8+
ENV APPENV=$APPENV
9+
410
# Copy the current directory into the Docker image
511
COPY . /micro-frontends-earn-app
612

jest.config.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ module.exports = {
44
"^.+\\.(j|t)sx?$": "babel-jest",
55
},
66
moduleNameMapper: {
7-
"\\.(css)$": "identity-obj-proxy",
8-
"\\.svg$": "<rootDir>/__mocks__/fileMock.js",
7+
"\\.(css|scss)$": "identity-obj-proxy",
8+
"\\.(png|eot|otf|ttf|woff|woff2|svg)$": "<rootDir>/__mocks__/fileMock.js",
9+
910
},
1011
setupFilesAfterEnv: [
1112
"../node_modules/@testing-library/jest-dom/dist/index.js",
13+
"../config/jest/setup.js",
1214
],
1315
};

0 commit comments

Comments
 (0)