Skip to content

Instantly share code, notes, and snippets.

@ZackDeRose
Created January 26, 2023 05:48
Show Gist options
  • Save ZackDeRose/c742f68238ef0c30a0079cd10964f81c to your computer and use it in GitHub Desktop.
Save ZackDeRose/c742f68238ef0c30a0079cd10964f81c to your computer and use it in GitHub Desktop.
import { applicationGenerator as nodeAppGenerator } from '@nrwl/node';
// ...
async function createNodeApplication(
tree: Tree,
options: AppGeneratorSchema,
serverName: string,
webAppName: string
) {
await nodeAppGenerator(tree, {
name: serverName,
js: false,
linter: Linter.EsLint,
unitTestRunner: 'none',
pascalCaseFiles: false,
skipFormat: true,
skipPackageJson: false,
frontendProject: webAppName,
});
// ... rest of implementation to go here!
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment