Skip to content

Commit a75da96

Browse files
authored
feat(template): use config in apply (#10)
1 parent 6969ec7 commit a75da96

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/scripts/template/src/index.console.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export interface Config {}
88

99
export const Config: Schema<Config> = Schema.object({})
1010

11-
export function apply(ctx: Context) {
11+
export function apply(ctx: Context, config: Config) {
1212
ctx.inject(['console'], (ctx) => {
1313
ctx.console.addEntry({
1414
dev: resolve(__dirname, '../client/index.ts'),

packages/scripts/template/src/index.default.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ export interface Config {}
66

77
export const Config: Schema<Config> = Schema.object({})
88

9-
export function apply(ctx: Context) {
9+
export function apply(ctx: Context, config: Config) {
1010
// write your plugin here
1111
}

0 commit comments

Comments
 (0)