Running ui-jar in an NX setup
See original GitHub issue@nording I like your approach running this tool within a test environment. I tried to run it within an NX setup which has a slightly different structure than pure Angular CLI projects.
βββ README.md
βββ angular.json
βββ apps
βΒ Β βββ app1
βΒ Β βΒ Β βββ browserslist
βΒ Β βΒ Β βββ src
βΒ Β βΒ Β βββ tsconfig.app.json
βΒ Β βΒ Β βββ tslint.json
βΒ Β βββ ui-jar
βΒ Β βββ browserslist
β βββ src
βΒ Β βΒ Β βββ app
βΒ Β βΒ Β βΒ Β βββ app.component.html
βΒ Β βΒ Β βΒ Β βββ app.component.scss
βΒ Β βΒ Β βΒ Β βββ app.component.ts
βΒ Β βΒ Β βΒ Β βββ app.module.ts
βΒ Β βΒ Β βββ assets
βΒ Β βΒ Β βββ environments
βΒ Β βΒ Β βΒ Β βββ environment.prod.ts
βΒ Β βΒ Β βΒ Β βββ environment.ts
βΒ Β βΒ Β βββ favicon.ico
βΒ Β βΒ Β βββ index.html
βΒ Β βΒ Β βββ main.ts
βΒ Β βΒ Β βββ polyfills.ts
βΒ Β βΒ Β βββ styles.scss
βΒ Β βΒ Β βββ test.ts
βΒ Β βββ tsconfig.app.json
βΒ Β βββ tslint.json
βββ jest-global-mocks.ts
βββ jest.config.js
βββ libs
βΒ Β βββ lib1
βΒ Β βΒ Β βββ src
βΒ Β βΒ Β βββ tsconfig.lib.json
βΒ Β βββ lib2
βΒ Β βββ src
βΒ Β βΒ Β βββ xyz
βΒ Β βΒ Β βΒ Β βββ xyz.component.spec.ts
βΒ Β βΒ Β βΒ Β βββ xyz.component.ts
βΒ Β βΒ Β βββ ute.module.ts
βΒ Β βββ tsconfig.lib.json
βββ nx.json
βββ package-lock.json
βββ package.json
βββ setup-jest.ts
βββ tools
βββ tsconfig.json
βββ tsconfig.spec.json
βββ tslint.json
As a testing framework Iβm using jest. To me itβs not exactly clear, wherefore the exclude/include setup is and how it can match the expectations within my setup.
Open βprojects/ui-jar/tsonfig.app.jsonβ and add following:
"exclude": [
...
"../../src/**/*.spec.ts"
]
"include": [
"**/*.ts",
"../../src/**/*.ts"
]
Appreciate your work and feedback.
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Start NX without graphical UI for NX remote
Is it possible to start NX without graphical interface? Since this NX session will be controlled by remote executable, the UI is not...
Read more >Field 'browser' doesn't contain a valid alias configuration #8036
The build fails when trying to perform a build involving a requirejs dependency which also requires other files.
Read more >Finding files and syntax notes - Engineering.com
Compiling and linking tools providing by NX use <NX install directory>\UGOPEN\ as the base directory for all include files.
Read more >Chapter 3. The Seam life cycle - Seam in Action
Once running, the servlet container also notifies Seam when HTTP sessions ... Ade ncz htikn le dxr Skmz life cycle sc nz oltnuivoe...
Read more >Installing Cisco License Manager
If you want to install using a command line script, see Running the Command Line Installation ... Client packageβclm-ui.jar and clm-sdk.jar.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I use nx and generated the docs app with this tsconfig.app.json:
NPM scripts:
Works as expected.
@picomis thank you pointing me in the right direction.
First I referenced my appβs path for ui-jar instead the
./libs/
path. Second I missed the comment in my component to group it within the sidebar:Thanks all for help.