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.

Change default libs/ apps/ folder layout

See original GitHub issue

I’m opening this issue as a feature request.

Expected Behavior

I want the ability to create and maintain a different folder layout. Right now by default, created apps and libs are being hosted inside apps/ and libs/ folder respectively. I have a small Nx workspace where I want to keep both types inside a packages/ folder. Right now I’m creating them with the default behavior, moving them manually and updating the path references where needed and everything works like a charm. I think it will be cool to have this as a built-in feature. I’ve reviewed the code and identified which changes are needed and willing to make a PR.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:2
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
Bulletninjacommented, Nov 2, 2020

is it possible to use an array for appsDir?

i’d love to do something like

"workspaceLayout": {
  "appsDir": ["core-use-case1/clients/**", "core-use-case2/clients/**"], 
  "libsDir": "utils"
}

PS: This would also mean that a a way specify the prefix core-use-case*/clients when adding new apps would be needed

3reactions
bekoscommented, Sep 21, 2020

This is already supported in nx.json by using for example:

"workspaceLayout": {
  "appsDir": "projects",
  "libsDir": "packages"
}
Read more comments on GitHub >

github_iconTop Results From Across the Web

Change Default Save Locations for Libraries in Windows 11
Right click or press and hold on the library (ex: "Pictures") you want to include a folder in, and click/tap on Properties.
Read more >
How can I set the view options for a Library - AND SAVE THEM?
If I'm not in a library, I can set my view options (such as which columns ... view, etc) and then go to...
Read more >
Redefine ABI architecture default folder structure for native libs ...
Is it possible to somehow redefine structure for jniLibs.srcDirs parser or manually set lib for a specific ABI arch?
Read more >
How to make folder view default globally? - Android Server
Tabs are not moveable. Only option you have is a per user setting to make that tab the landing page. User preferences-Home Screen...
Read more >
Creating Custom Default Content Libraries - Vectorworks
The folder structure must be the same as that of the Vectorworks default ... application folder: [Vectorworks]\Libraries\Defaults\Attributes - Hatches.
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