Skip to content

Instantly share code, notes, and snippets.

@ZackDeRose
Created January 26, 2023 05:43
Show Gist options
  • Save ZackDeRose/92e7e8a55a4dca79e2207ab03a5ec887 to your computer and use it in GitHub Desktop.
Save ZackDeRose/92e7e8a55a4dca79e2207ab03a5ec887 to your computer and use it in GitHub Desktop.
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