Created
January 26, 2023 05:43
-
-
Save ZackDeRose/92e7e8a55a4dca79e2207ab03a5ec887 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import { names, Tree } from '@nrwl/devkit'; | |
import { AppGeneratorSchema } from './schema'; | |
const defaultPorts = { | |
frontendPort: 3000, | |
backendPort: 3333, | |
}; | |
export default async function (tree: Tree, options: AppGeneratorSchema) { | |
const optionsWithDefaults = { | |
...defaultPorts, | |
...options, | |
}; | |
const kebobCaseName = names(optionsWithDefaults.name).fileName; | |
const webAppName = `${kebobCaseName}-web`; | |
const serverName = `${kebobCaseName}-server`; | |
const trpcServerName = `${kebobCaseName}-trpc-server`; | |
const trpcClientName = `${kebobCaseName}-trpc-client`; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment