create-baeta
Interfaces
Args
Properties
Property | Type |
---|---|
|
|
|
|
|
|
|
|
|
|
CliOptions
Properties
Property | Type |
---|---|
|
|
|
|
Type Aliases
JavaScriptRuntime
JavaScriptRuntime: typeof
runtimes
[number
]
PackageManager
PackageManager: keyof typeof
lockfileNames
Template
Template:
object
Type declaration
Name | Type |
---|---|
|
|
|
|
|
|
Variables
defaultJavaScriptRuntime
const
defaultJavaScriptRuntime:"node"
='node'
defaultPackageManager
const
defaultPackageManager:"npm"
='npm'
gitignoreUrl
const
gitignoreUrl:"https://raw.githubusercontent.com/github/gitignore/refs/heads/main/Node.gitignore"
='https://raw.githubusercontent.com/github/gitignore/refs/heads/main/Node.gitignore'
lockfileNames
const
lockfileNames:object
Type declaration
Name | Type | Default value |
---|---|---|
|
|
'bun.lockb' |
|
|
'package-lock.json' |
|
|
'pnpm-lock.yaml' |
|
|
'yarn.lock' |
packageManagers
const
packageManagers: ("npm"
|"yarn"
|"pnpm"
|"bun"
)[]
runtimes
const
runtimes: readonly ["node"
,"deno"
,"bun"
]
Functions
copyTemplate()
copyTemplate(
appName
,runtime
,template
,dest
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
|
|
|
| |
|
|
Returns
Promise
<void
>
createTsconfig()
createTsconfig():
object
Returns
object
Name | Type | Default value |
---|---|---|
$schema | string | "https://json.schemastore.org/tsconfig" |
compilerOptions | object | - |
compilerOptions.allowImportingTsExtensions | boolean | true |
compilerOptions.allowSyntheticDefaultImports | boolean | true |
compilerOptions.emitDeclarationOnly | boolean | false |
compilerOptions.esModuleInterop | boolean | true |
compilerOptions.forceConsistentCasingInFileNames | boolean | true |
compilerOptions.isolatedModules | boolean | true |
compilerOptions.lib | string [] | - |
compilerOptions.module | string | "esnext" |
compilerOptions.moduleResolution | string | "bundler" |
compilerOptions.noEmit | boolean | true |
compilerOptions.noImplicitAny | boolean | true |
compilerOptions.outDir | string | 'dist' |
compilerOptions.rootDir | string | 'src' |
compilerOptions.skipLibCheck | boolean | true |
compilerOptions.strict | boolean | true |
compilerOptions.target | string | "es2023" |
compilerOptions.verbatimModuleSyntax | boolean | true |
exclude | string [] | - |
getAppName()
getAppName(
reqName
,rootDir
):Promise
<string
>
Parameters
Parameter | Type |
---|---|
|
|
|
|
Returns
Promise
<string
>
getInstallCommand()
getInstallCommand(
pkgManager
):string
Parameters
Parameter | Type |
---|---|
|
|
Returns
string
getPackageJson()
getPackageJson(
appName
,runtime
,templateName
):undefined
|string
Parameters
Parameter | Type |
---|---|
|
|
|
|
|
|
Returns
undefined
| string
getPackageManager()
getPackageManager(
dest
,__namedParameters
):Promise
<PackageManager
>
Parameters
Parameter | Type |
---|---|
|
|
|
Returns
Promise
<PackageManager
>
getRuntime()
getRuntime():
Promise
<JavaScriptRuntime
>
Returns
Promise
<JavaScriptRuntime
>
getTemplate()
getTemplate(
reqTemplate
):Promise
<Template
>
Parameters
Parameter | Type |
---|---|
|
|
Returns
Promise
<Template
>
handler()
handler(
args
):Promise
<void
>
Parameters
Parameter | Type |
---|---|
|
Returns
Promise
<void
>