Skip to content

Commit

Permalink
chore: config 파일 정리 (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
son-daehyeon authored Aug 6, 2024
1 parent 2a30b5a commit 316c4f9
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 29 deletions.
4 changes: 4 additions & 0 deletions commitlint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,9 @@ const type = ['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'refactor', 'revert
export default {
rules: {
'type-enum': [2, 'always', type],
'type-empty': [2, 'never'],
'type-case': [2, 'always', ['lower-case']],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
},
};
34 changes: 17 additions & 17 deletions jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,27 +8,27 @@ export default {
testEnvironment: 'node',
moduleNameMapper: {
// Comon
"^@wink/app$": "<rootDir>/../src/common/app",
"^@wink/config$": "<rootDir>/../src/common/config",
"^@wink/filter$": "<rootDir>/../src/common/filter",
"^@wink/interceptor$": "<rootDir>/../src/common/interceptor",
"^@wink/mongo$": "<rootDir>/../src/common/mongo",
"^@wink/redis$": "<rootDir>/../src/common/redis",
"^@wink/s3$": "<rootDir>/../src/common/s3",
'^@wink/app$': '<rootDir>/../src/common/app',
'^@wink/config$': '<rootDir>/../src/common/config',
'^@wink/filter$': '<rootDir>/../src/common/filter',
'^@wink/interceptor$': '<rootDir>/../src/common/interceptor',
'^@wink/mongo$': '<rootDir>/../src/common/mongo',
'^@wink/redis$': '<rootDir>/../src/common/redis',
'^@wink/s3$': '<rootDir>/../src/common/s3',

// Utils
"^@wink/event$": "<rootDir>/../src/common/util/event",
"^@wink/logger$": "<rootDir>/../src/common/util/logger",
"^@wink/mail$": "<rootDir>/../src/common/util/mail",
"^@wink/swagger$": "<rootDir>/../src/common/util/swagger",
"^@wink/validation$": "<rootDir>/../src/common/util/validation",
'^@wink/event$': '<rootDir>/../src/common/util/event',
'^@wink/logger$': '<rootDir>/../src/common/util/logger',
'^@wink/mail$': '<rootDir>/../src/common/util/mail',
'^@wink/swagger$': '<rootDir>/../src/common/util/swagger',
'^@wink/validation$': '<rootDir>/../src/common/util/validation',

// Domain
"^@wink/auth/(.*)$": "<rootDir>/../src/domain/auth/$1",
"^@wink/member/(.*)$": "<rootDir>/../src/domain/member/$1",
"^@wink/activity/(.*)$": "<rootDir>/../src/domain/activity/$1",
'^@wink/auth/(.*)$': '<rootDir>/../src/domain/auth/$1',
'^@wink/member/(.*)$': '<rootDir>/../src/domain/member/$1',
'^@wink/activity/(.*)$': '<rootDir>/../src/domain/activity/$1',

// Test
"^@wink/test-mock$": "<rootDir>/mock"
}
'^@wink/test-mock$': '<rootDir>/mock',
},
};
8 changes: 5 additions & 3 deletions nest-cli.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
"builder": "swc",
"deleteOutDir": true,
"assets": [
{ "include": "../config/config*.yaml", "outDir": "dist/config", "watchAssets": true }
],
"watchAssets": true
{
"include": "../config/config*.yaml",
"outDir": "dist/config"
}
]
}
}
4 changes: 1 addition & 3 deletions tsconfig.build.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"extends": [
"./tsconfig.json",
],
"extends": ["./tsconfig.json"],
"exclude": ["test"]
}
5 changes: 1 addition & 4 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
{
"extends": [
"./tsconfig.general.json",
"./tsconfig.path.json",
]
"extends": ["./tsconfig.general.json", "./tsconfig.path.json"]
}
4 changes: 2 additions & 2 deletions tsconfig.path.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@wink/activity/*": ["domain/activity/*"],

// Test
"@wink/test-mock": ["../test/mock"],
"@wink/test-mock": ["../test/mock"]
}
},
}
}

0 comments on commit 316c4f9

Please sign in to comment.