-
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(web): Add strict mode (nrwl#23457)
This PR adds the option of `strict` when using `@nx/web:app` generator. It also updates the application generator by separating utility functions into their own modules. closes: nrwl#9238
- Loading branch information
1 parent
312b271
commit 0f47f03
Showing
10 changed files
with
359 additions
and
296 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
24 changes: 24 additions & 0 deletions
24
packages/web/src/generators/application/lib/add-project.ts
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,24 @@ | ||
import { | ||
TargetConfiguration, | ||
Tree, | ||
addProjectConfiguration, | ||
joinPathFragments, | ||
} from '@nx/devkit'; | ||
import { NormalizedSchema } from '../schema'; | ||
|
||
export async function addProject(tree: Tree, options: NormalizedSchema) { | ||
const targets: Record<string, TargetConfiguration> = {}; | ||
|
||
addProjectConfiguration( | ||
tree, | ||
options.projectName, | ||
{ | ||
projectType: 'application', | ||
root: options.appProjectRoot, | ||
sourceRoot: joinPathFragments(options.appProjectRoot, 'src'), | ||
tags: options.parsedTags, | ||
targets, | ||
}, | ||
options.standaloneConfig | ||
); | ||
} |
Oops, something went wrong.