Skip to content

Commit

Permalink
feat(roles): get roles route
Browse files Browse the repository at this point in the history
  • Loading branch information
antoinezanardi committed Mar 5, 2023
1 parent 7632aae commit ec395f9
Show file tree
Hide file tree
Showing 22 changed files with 1,536 additions and 345 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Start Docker containers 🐳
run: npm run docker:test:start
- name: Install project dependencies 📦
run: npm ci
run: npm ci --ignore-scripts
- name: Build app ✨
run: npm run build
- name: Check and lint code 🔍
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,20 @@ on:
branches:
- 'main'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_TOKEN }}
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Setup GitHub repository 🔧
uses: actions/checkout@v3
with:
persist-credentials: false
- name: Setup NodeJS v18 ✨
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install project dependencies 📦
run: npm ci
run: npm ci --ignore-scripts
- name: Release 🏷️
run: npx semantic-release
57 changes: 55 additions & 2 deletions .releaserc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,65 @@
"debug": "false",
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/release-notes-generator",
{
"preset": "conventionalcommits",
"presetConfig": {
"types": [
{
"type": "feat",
"section": "🚀 Features",
"hidden": false
},
{
"type": "fix",
"section": "🐛 Bug Fixes",
"hidden": false
},
{
"type": "docs",
"section": "📖 Docs",
"hidden": false
},
{
"type": "style",
"section": "🎨 Styles",
"hidden": false
},
{
"type": "refactor",
"section": "🔩 Refactor",
"hidden": false
},
{
"type": "perf",
"section": "⚡️ Performances",
"hidden": false
},
{
"type": "test",
"section": "✅ Tests",
"hidden": false
},
{
"type": "ci",
"section": "🔁 CI",
"hidden": false
},
{
"type": "chore",
"section": "🧹 Chore",
"hidden": true
}
]
}
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Semantic Versioning Changelog"
"changelogTitle": "# 🐺 Werewolves Assistant API Versioning Changelog"
}
],
[
Expand Down
2 changes: 1 addition & 1 deletion .validate-branch-namerc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"pattern": "^develop|(feat|fix)\/.+$",
"pattern": "^(feat|fix)\/.+$",
"errorMsg": "Your branch name doesn't respect the established convention. Please respect the following format : (feat|fix)/[FEATURE_NAME]\nYou can change the name of your branch with the command `git branch -m NEW_NAME`"
}
20 changes: 20 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Semantic Versioning Changelog

# 1.0.0 (2023-03-03)


### Bug Fixes

* **release:** fix release system ([897dbd3](https://github.com/antoinezanardi/werewolves-assistant-api-next/commit/897dbd38229c9f292361e6000a45eac551a9e6d7))
* **release:** fix release system ([8778f86](https://github.com/antoinezanardi/werewolves-assistant-api-next/commit/8778f86103163969e5f1d8525dc31c801fdab92d))
* **release:** fix release system ([e2cb1fd](https://github.com/antoinezanardi/werewolves-assistant-api-next/commit/e2cb1fdbbe020b90c11f4f77998f5c4dfa19ed2d))


### Features

* **health:** health route ([#6](https://github.com/antoinezanardi/werewolves-assistant-api-next/issues/6)) ([452aedf](https://github.com/antoinezanardi/werewolves-assistant-api-next/commit/452aedfc9c11b9acb241e3ebd97d62f02519b791))
* **mongo:** mongo connection added ([#2](https://github.com/antoinezanardi/werewolves-assistant-api-next/issues/2)) ([f133b05](https://github.com/antoinezanardi/werewolves-assistant-api-next/commit/f133b055942f634033710a94d014615efc7a4490))
* **release:** better release system ([#8](https://github.com/antoinezanardi/werewolves-assistant-api-next/issues/8)) ([5dd4f01](https://github.com/antoinezanardi/werewolves-assistant-api-next/commit/5dd4f01ae65448df2d757f21bd52b75ff0ee6229))
* **setup:** init project ([39e28f6](https://github.com/antoinezanardi/werewolves-assistant-api-next/commit/39e28f6a198b5ee9be5d53d69ed3f1a67a8c75c1))
* **setup:** init project ([b483e56](https://github.com/antoinezanardi/werewolves-assistant-api-next/commit/b483e56567d5c4ef00a43e7fa115104c27eaa7ec))
* **setup:** init project ([#1](https://github.com/antoinezanardi/werewolves-assistant-api-next/issues/1)) ([3007bbe](https://github.com/antoinezanardi/werewolves-assistant-api-next/commit/3007bbe6a739e3865381ddc8adde379c872a5e2b))
8 changes: 2 additions & 6 deletions config/eslint/rules/standard.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { ERROR, WARNING, OFF, MAX_NESTED_CALLBACK, MAX_PARAMS, INDENT_SPACE_COUNT, MAX_LENGTH_DEFAULT_CONFIG } = require("../constants");
const { ERROR, WARNING, OFF, MAX_NESTED_CALLBACK, MAX_PARAMS, MAX_LENGTH_DEFAULT_CONFIG } = require("../constants");

const standardRules = Object.freeze({
// ---- ESLint Rules -----
Expand Down Expand Up @@ -211,11 +211,7 @@ const standardRules = Object.freeze({
},
],
"implicit-arrow-linebreak": OFF,
"indent": [
ERROR,
INDENT_SPACE_COUNT,
{ FunctionExpression: { parameters: "first" } },
],
"indent": OFF,
"jsx-quotes": [ERROR, "prefer-double"],
"key-spacing": [ERROR, { mode: "strict" }],
"line-comment-position": ERROR,
Expand Down
9 changes: 6 additions & 3 deletions config/eslint/rules/typescript.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { ERROR, OFF, NAMING_CONVENTION_DEFAULT_CONFIG } = require("../constants");
const { ERROR, OFF, NAMING_CONVENTION_DEFAULT_CONFIG, INDENT_SPACE_COUNT } = require("../constants");

const typescriptRules = Object.freeze({
// ---- TypeScript Rules -----
Expand Down Expand Up @@ -118,8 +118,11 @@ const typescriptRules = Object.freeze({
"@typescript-eslint/default-param-last": ERROR,
"@typescript-eslint/dot-notation": ERROR,
"@typescript-eslint/func-call-spacing": ERROR,
// rule below is OFF for the moment because it has an issue with certain TS nodes (https://github.com/typescript-eslint/typescript-eslint/issues/1824)
"@typescript-eslint/indent": OFF,
"@typescript-eslint/indent": [
ERROR,
INDENT_SPACE_COUNT,
{ FunctionExpression: { parameters: "first" } },
],
"@typescript-eslint/init-declarations": ERROR,
"@typescript-eslint/keyword-spacing": ERROR,
"@typescript-eslint/lines-between-class-members": [ERROR, "always", { exceptAfterSingleLine: true }],
Expand Down
1 change: 1 addition & 0 deletions config/stryker/stryker.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"checkers": ["typescript"],
"tsconfigFile": "tsconfig.json",
"testRunner": "jest",
"ignoreStatic": true,
"jest": {
"configFile": "config/jest/jest-global.ts"
},
Expand Down
3 changes: 2 additions & 1 deletion nest-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true
"deleteOutDir": true,
"plugins": ["@nestjs/swagger"]
}
}

0 comments on commit ec395f9

Please sign in to comment.