Skip to content

Commit

Permalink
perf!: add new lazy plugin spec to rest of plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
ivomurrell committed Sep 4, 2024
1 parent 20dd046 commit 5367c9a
Show file tree
Hide file tree
Showing 15 changed files with 45 additions and 9 deletions.
4 changes: 4 additions & 0 deletions plugins/babel/.toolkitrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
tasks:
- BabelDevelopment
- BabelProduction

hooks:
'build:local': BabelDevelopment
'build:ci': BabelProduction
Expand Down
2 changes: 1 addition & 1 deletion plugins/babel/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import BabelDevelopment from './tasks/development'
import BabelProduction from './tasks/production'

export const tasks = [BabelDevelopment, BabelProduction]
export const tasks = { BabelDevelopment, BabelProduction }
5 changes: 4 additions & 1 deletion plugins/circleci-npm/.toolkitrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,8 @@ plugins:
- '@dotcom-tool-kit/circleci'
- '@dotcom-tool-kit/npm'

installs:
- 'publish:tag'

hooks:
'publish:tag': NpmPublish
'publish:tag': NpmPublish
7 changes: 7 additions & 0 deletions plugins/cypress/.toolkitrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
installs:
- 'e2e:local'

tasks:
- CypressCi
- CypressLocal

hooks:
'test:review': CypressCi
'test:staging': CypressCi
Expand Down
2 changes: 1 addition & 1 deletion plugins/cypress/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ export const hooks = {
'e2e:local': E2ETestHook
}

export const tasks = [CypressLocal, CypressCi]
export const tasks = { CypressLocal, CypressCi }
4 changes: 4 additions & 0 deletions plugins/jest/.toolkitrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
tasks:
- JestLocal
- JestCI

hooks:
'test:local': JestLocal
'test:ci': JestCI
4 changes: 2 additions & 2 deletions plugins/jest/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import JestCI from './tasks/ci'
import JestLocal from './tasks/local'

export const tasks = [
export const tasks = {
JestCI,
JestLocal
]
}
3 changes: 3 additions & 0 deletions plugins/pa11y/.toolkitrc.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
plugins:
- '@dotcom-tool-kit/doppler'

tasks:
- Pa11y

hooks:
'test:local': Pa11y
2 changes: 1 addition & 1 deletion plugins/pa11y/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import Pa11y from './tasks/pa11y'

export const tasks = [Pa11y]
export const tasks = { Pa11y }
6 changes: 6 additions & 0 deletions plugins/prettier/.toolkitrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
installs:
- "format:local"

tasks:
- Prettier

hooks:
'format:local': Prettier
'format:staged': Prettier
2 changes: 1 addition & 1 deletion plugins/prettier/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { PackageJsonScriptHook } from '@dotcom-tool-kit/package-json-hook'
import Prettier from './tasks/prettier'

export const tasks = [Prettier]
export const tasks = { Prettier }

class FormatLocal extends PackageJsonScriptHook {
static description = 'format prettier'
Expand Down
4 changes: 4 additions & 0 deletions plugins/serverless/.toolkitrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
tasks:
- ServerlessRun
- ServerlessDeploy
- ServerlessProvision
2 changes: 1 addition & 1 deletion plugins/serverless/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ import ServerlessProvision from './tasks/provision'
import ServerlessRun from './tasks/run'
import ServerlessTeardown from './tasks/teardown'

export const tasks = [ServerlessRun, ServerlessDeploy, ServerlessProvision, ServerlessTeardown]
export const tasks = { ServerlessRun, ServerlessDeploy, ServerlessProvision, ServerlessTeardown }
5 changes: 5 additions & 0 deletions plugins/typescript/.toolkitrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
tasks:
- TypeScriptBuild
- TypeScriptWatch
- TypeScriptTest

hooks:
'build:local': TypeScriptBuild
'build:ci': TypeScriptBuild
Expand Down
2 changes: 1 addition & 1 deletion plugins/typescript/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
import { TypeScriptBuild, TypeScriptWatch, TypeScriptTest } from './tasks/typescript'

export const tasks = [TypeScriptBuild, TypeScriptWatch, TypeScriptTest]
export const tasks = { TypeScriptBuild, TypeScriptWatch, TypeScriptTest }

0 comments on commit 5367c9a

Please sign in to comment.