-
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.
fix: build output as nodejs to allow using it inside
.js
file (#415)
- Loading branch information
Showing
40 changed files
with
235 additions
and
8,463 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
File renamed without changes.
File renamed without changes.
12 changes: 12 additions & 0 deletions
12
hygen/_templates/command/new/src/commands/command/index.ejs.t
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,12 @@ | ||
--- | ||
force: true | ||
to: ../src/commands/<%= name %>/index.ts | ||
--- | ||
import { <%= h.changeCase.pascal(name) %>ConfigType } from "./data"; | ||
|
||
export const <%= h.changeCase.camel(name) %> = async (config: <%= h.changeCase.pascal(name) %>ConfigType) => { | ||
const { debug, dry } = config; | ||
// TODO: Add you logic here | ||
|
||
return false; | ||
} |
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,12 +1,6 @@ | ||
--- | ||
force: true | ||
to: ../src/commands/<%= name %>/index.ts | ||
to: ../src/commands/index.ts | ||
inject: true | ||
append: true | ||
--- | ||
import { <%= h.changeCase.pascal(name) %>ConfigType } from "./data"; | ||
|
||
export const <%= h.changeCase.camel(name) %> = async (config: <%= h.changeCase.pascal(name) %>ConfigType) => { | ||
const { debug, dry } = config; | ||
// TODO: Add you logic here | ||
|
||
return false; | ||
} | ||
export * from "./<%= name %>"; |
Oops, something went wrong.