-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #145 from ms-club-sliit/development
Development to Production
- Loading branch information
Showing
78 changed files
with
9,484 additions
and
21,332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build | ||
dist/* | ||
.idea/* | ||
.vscode | ||
node_modules/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ | ||
"env": { | ||
"es2021": true, | ||
"node": true | ||
}, | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
"parser": "@typescript-eslint/parser", | ||
"parserOptions": { | ||
"sourceType": "module" | ||
}, | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
"indent": ["error", "tab"], | ||
"quotes": ["error", "double"], | ||
"semi": ["error", "always"], | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"no-const-assign": "error", | ||
"max-len": ["error", { "code": 180, "ignoreUrls": true, "ignoreRegExpLiterals": true }], | ||
"no-unused-vars": "error", | ||
"no-console": "error", | ||
"no-duplicate-imports": ["error", { "includeExports": true }], | ||
"default-case": "error" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
## Pull Request(PR) Template :octocat: | ||
|
||
**Check following steps are fulfilled before creating the PR** <br> | ||
📝 Explain what are the changes that you have done to the codebase in the PR description<br> | ||
✔️ Assign more than 2 reviewers to the PR. <br> | ||
✔️ Add relevent labes to the PR <br> | ||
✔️ Add relevant labels to the PR <br> | ||
(⚠️ Must to have one of the these labels. **high-priority**, **medium-priority**, **low-priority**)<br> | ||
✔️ Select the project. **(MS Club Web Server)** <br> | ||
✔️ If there is any issue created that related to the PR, please link link it to the PR. | ||
|
||
✔️ If there is any issue created that related to the PR, please link it to the PR. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,26 @@ | ||
# This workflow will build the Docker image of the MS Club Web Server and push it | ||
# This workflow will build the Docker image of the MS Club Web Server and push it | ||
# to the GitHub Container Registry (GHCR) | ||
|
||
name: Docker Image CI | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
name: Check out code | ||
- uses: mr-smithers-excellent/docker-build-push@v5 | ||
name: Build & Push Docker image | ||
with: | ||
image: msclubwebserver | ||
tags: v1.0.0, latest | ||
registry: ghcr.io | ||
dockerfile: Dockerfile | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- uses: actions/checkout@v2 | ||
name: Check out code | ||
|
||
- uses: mr-smithers-excellent/docker-build-push@v5 | ||
name: Build & Push Docker image | ||
with: | ||
image: msclubwebserver | ||
tags: v1.0.0, latest | ||
registry: ghcr.io | ||
dockerfile: Dockerfile | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,29 @@ | ||
# This workflow will do a clean install of node dependencies, | ||
# cache/restore them, build the source code and run tests across | ||
# This workflow will do a clean install of node dependencies, | ||
# cache/restore them, build the source code and run tests across | ||
# different versions of node | ||
|
||
name: Node Build CI | ||
|
||
on: | ||
push: | ||
branches: [ master, development ] | ||
branches: [master, development] | ||
pull_request: | ||
branches: [ master, development ] | ||
branches: [master, development] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
node-version: [14.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: 'npm' | ||
- run: npm install | ||
- run: npm ci | ||
- run: npm run build | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
cache: "npm" | ||
- run: npm install | ||
- run: npm ci | ||
- run: npm run build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
echo '🏗️👷 Hi, my name is Bob. I am responsible for styling, testing and building your project before commit' | ||
|
||
# Check Prettier standards | ||
npm run check-format || | ||
( | ||
echo '🤢🤮 Prettier Check Failed. Your code styling not looking good. 🤢🤮 Run npm run format, add changes and try commit again.'; | ||
false; | ||
) | ||
|
||
# Check ESLint Standards | ||
npm run check-lint || | ||
( | ||
echo '😤🏀 ESLint Check Failed. Your code may have some linting issues. 👋😤 Make the required changes listed above, add changes and try to commit again.' | ||
false; | ||
) | ||
|
||
# Check tsconfig standards | ||
npm run check-types || | ||
( | ||
echo '❌❌ Failed Type check. ❌❌ Are you seriously trying to write that? Make the changes required above.' | ||
false; | ||
) | ||
|
||
# If everything passes... Now we can commit | ||
echo '🤔🤔 Alright.... Code looks good to me... Trying to build now. 🤔🤔' | ||
|
||
npm run build || | ||
( | ||
echo '🔨❌ Better call Bob... Because your build failed 🔨❌ Next build failed: View the errors above to see why.' | ||
false; | ||
) | ||
|
||
# If everything passes... Now we can commit | ||
echo '✅✅ You win this time... I am committing this now. ✅✅' | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build | ||
dist/* | ||
.idea/* | ||
.vscode | ||
node_modules/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"trailingComma": "es5", | ||
"tabWidth": 2, | ||
"useTabs": true, | ||
"semi": true, | ||
"singleQuote": false, | ||
"printWidth": 120, | ||
"arrowParens": "always" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.