-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(π§Ή): architecture + code + tests
βββ source β βββ core β β βββ data β β β βββ transformer β β βββ security β β βββ util β βββ error β β βββ key β βββ i18n β βββ types β βββ data βββ test βββ core β βββ data β βββ security β βββ util βββ error
- Loading branch information
Showing
54 changed files
with
336 additions
and
413 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 |
---|---|---|
|
@@ -5,6 +5,4 @@ build | |
docs/ | ||
coverage/ | ||
|
||
node_modules | ||
|
||
tsconfig.tsbuildinfo | ||
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
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,27 +1,42 @@ | ||
import dts from 'bun-plugin-dts'; | ||
|
||
import pkg from './package.json'; | ||
|
||
const dependencies = 'dependencies' in pkg ? Object.keys(pkg.dependencies ?? {}) : []; | ||
const devDependencies = 'devDependencies' in pkg ? Object.keys(pkg.devDependencies ?? {}) : []; | ||
const peerDependencies = 'peerDependencies' in pkg ? Object.keys(pkg.peerDependencies ?? {}) : []; | ||
|
||
await Bun.build({ | ||
target: 'bun', | ||
external: [...dependencies, ...devDependencies, ...peerDependencies], | ||
root: './source', | ||
entrypoints: [ | ||
'./source/index.ts', | ||
'./source/common/error/index.ts', | ||
'./source/common/type/data/index.ts', | ||
'./source/common/util/index.ts', | ||
'./source/domain/service/data/index.ts', | ||
'./source/domain/service/data/strategy/transformer/index.ts', | ||
'./source/domain/service/global/index.ts', | ||
'./source/domain/service/security/index.ts', | ||
'./source/common/i18n/index.ts' | ||
'./source/core/data/index.ts', | ||
'./source/core/data/transformer/index.ts', | ||
|
||
'./source/core/security/index.ts', | ||
|
||
'./source/core/util/index.ts', | ||
|
||
'./source/error/index.ts', | ||
'./source/error/key/index.ts', | ||
|
||
'./source/i18n/index.ts', | ||
|
||
'./source/types/index.ts', | ||
|
||
'./source/index.ts' | ||
], | ||
plugins: [ | ||
dts({ | ||
output: { | ||
noBanner: true | ||
} | ||
}) | ||
], | ||
outdir: './build', | ||
splitting: true, | ||
format: 'esm', | ||
minify: true, | ||
sourcemap: process.env.NODE_ENV === 'development' ? 'external' : 'none', | ||
target: 'node', | ||
sourcemap: process.env.NODE_ENV === 'development' ? 'external' : 'none' | ||
}); |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
export * from './data'; |
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
2 changes: 1 addition & 1 deletion
2
...y/transformer/basaltKebabCase.strategy.ts β .../core/data/transformer/basaltKebabCase.ts
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
Oops, something went wrong.