-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fc37336
commit 0d21098
Showing
7 changed files
with
183 additions
and
139 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
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,16 +1,18 @@ | ||
import type { CreateContext } from 'create-gasket-app'; | ||
|
||
export interface Utils { | ||
gatherDevDeps(pkgName: string): Promise<Record<string, string>>; | ||
runScriptStr(script: string): string; | ||
export function gatherDevDeps(pkgName: string): Record<string, string>; | ||
export function runScriptStr(script: string): string; | ||
export function safeRunScript(name: string): Promise<void>; | ||
export function makeGatherDevDeps(): typeof gatherDevDeps; | ||
export function makeRunScriptStr(context: CreateContext): typeof runScriptStr; | ||
export function makeSafeRunScript(context: CreateContext, runScript): typeof safeRunScript; | ||
|
||
type Utils = { | ||
gatherDevDeps: typeof gatherDevDeps, runScriptStr?: typeof runScriptStr | ||
} | ||
|
||
export interface CodeStyle { | ||
name?: string; | ||
allowStylelint?: boolean; | ||
create?: (context: CreateContext, utils: Utils) => Promise<void>; | ||
} | ||
|
||
export interface LintUtils { | ||
makeGatherDevDeps(context: CreateContext): Promise<string[]>; | ||
} |
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 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.