-
Notifications
You must be signed in to change notification settings - Fork 56
Description
I am using Ultracite (biome) for formatting and linting, and vitest for testing in an angular 20, nx 22 workspace.
When ever I attempted to create any angular artifact using this library it is always generating the library using predetermined foramtters, linter and testing tools. Look at the terminal code below:
nx g @angular-architects/ddd:api --name=shared-api-domain --directory=api --importPath=@com/xom/shared/shared-api-domain --shared=true --type=buildable --no-interactive --unitTestRunner=vitest --linter=none
NX Generating @angular-architects/ddd:api
Fetching prettier...
Fetching @nx/jest...
HINT: Don't forget to extend the rules in your "eslint.config.js" to allow selected domains to access this API.
For this, add the tag domain:shared/api-shared-api-domain to the respective domains' rule sets.
CREATE .prettierrc
CREATE .prettierignore
UPDATE package.json
UPDATE nx.json
CREATE libs/shared/api/project.json
CREATE libs/shared/api/README.md
CREATE libs/shared/api/ng-package.json
CREATE libs/shared/api/package.json
CREATE libs/shared/api/tsconfig.json
CREATE libs/shared/api/tsconfig.lib.json
CREATE libs/shared/api/tsconfig.lib.prod.json
CREATE libs/shared/api/src/index.ts
CREATE jest.preset.js
CREATE jest.config.ts
CREATE libs/shared/api/jest.config.ts
CREATE libs/shared/api/src/test-setup.ts
CREATE libs/shared/api/tsconfig.spec.json
UPDATE tsconfig.base.json
CREATE eslint.config.mjs
CREATE libs/shared/api/eslint.config.mjs
~/coding/nx/mf/com.ehrja>
Whether is is the api generation or ui, etc, I don't seem to have any option to choose my formatter, linter or test framework.
Also, there is no --dry-run for the library.
Is the formatter, linter and test framework determined by nx generators, or is it determined by this library.
Could there be an option to chose or NOT to use the predefined linter, formatter and test framework?
My only option after attempting different things to stop the predefined artifact is to remove them manually which is not efficient.
Looking forward for some help.
Cheers