question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support independent project configuration files in Nx workspaces

See original GitHub issue

🧩 Feature request

Description

In version 2 workspaces, project configurations can also be independent files, referenced by angular.json. For instance, an angular.json may contain projects configured as below.

https://nx.dev/latest/angular/core-concepts/configuration#projectjson

Currently, Scully doesn’t know how to deal with these configs not being directly present as an object in either angular.json or workspace.json.

Describe the solution you’d like

If the project in angular.json or workspace.json is a string and not an object Scully should take that path string and get the project config from the project.json in the specified project path.

Describe alternatives you’ve considered

Not sure of any alternatives at the moment.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
daton89commented, Jan 4, 2022

Hi @sonicparke, adding target: 'targets' solved the issue, thanks!

4reactions
sonicparkecommented, Jan 4, 2022

@daton89 Do you have target: 'targets', in your scully config file? By default, it looks for architect so maybe that’s the difference?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Project Configuration - Nx
json files are located in each project's folder. Nx merges the two files to get each project's configuration. The following configuration creates build...
Read more >
Per-project configuration, Storybook support for Angular 12 ...
Project configurations can be independent files, referenced by workspace.json . For instance, a workspace.json may contain projects configured ...
Read more >
Support for a workspace.js file. #6511 - nrwl/nx - GitHub
I'm interested in a dynamically generated config file, such as a workspace.js (versus .json ). I've got a repository that will eventually grow...
Read more >
Configuring your Nx Workspace - YouTube
Brandon Roberts is joined by fellow Nrwlian and JavaScript Architect Ben Cabanes to discuss configuring and organizing your Nx workspace.
Read more >
Decomposing a project using Nx - Part 1 - This Dot Labs
2 approaches for decomposing a project; How they can help you to better manage your project's codebase; What tools Nx Workspace provides us...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found