Skip to content

Commit

Permalink
refactor: cleanup of drivers and mailer API
Browse files Browse the repository at this point in the history
  • Loading branch information
thetutlage committed Nov 11, 2023
1 parent c30a05d commit 9da5f16
Show file tree
Hide file tree
Showing 75 changed files with 1,677 additions and 4,081 deletions.
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- commitlint --edit
npx --no -- commitlint --edit
10 changes: 5 additions & 5 deletions bin/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
*/

import { assert } from '@japa/assert'
import { snapshot } from '@japa/snapshot'
import { fileSystem } from '@japa/file-system'
import { processCLIArgs, configure, run } from '@japa/runner'
import { expectTypeOf } from '@japa/expect-type'
import { snapshot } from '@japa/snapshot'
import { processCLIArgs, configure, run } from '@japa/runner'

/*
|--------------------------------------------------------------------------
Expand All @@ -32,12 +32,12 @@ configure({
suites: [
{
name: 'unit',
files: ['test/unit/**/*.spec.ts'],
files: ['tests/unit/**/*.spec.ts'],
},
{
name: 'integration',
files: ['test/integration/**/*.spec.ts'],
timeout: 1000 * 10,
files: ['tests/integration/**/*.spec.ts'],
timeout: 2000 * 10,
},
],
})
Expand Down
35 changes: 0 additions & 35 deletions commands/make_mailer.ts

This file was deleted.

138 changes: 0 additions & 138 deletions configure.ts

This file was deleted.

72 changes: 0 additions & 72 deletions factories/mail_manager.ts

This file was deleted.

10 changes: 0 additions & 10 deletions factories/main.ts

This file was deleted.

8 changes: 3 additions & 5 deletions index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,8 @@
* file that was distributed with this source code.
*/

import './src/types/extended.js'
export * as errors from './src/errors.js'

export { stubsRoot } from './stubs/index.js'
export { configure } from './configure.js'
export { defineConfig, mailers } from './src/define_config.js'
export { BaseMailer } from './src/base_mailer.js'
export { Mailer } from './src/mailer.js'
export { Message } from './src/message.js'
export { MailResponse } from './src/mail_response.js'
Loading

0 comments on commit 9da5f16

Please sign in to comment.