nx-electron
nx-electron copied to clipboard
Custom directory support for apps under NX /apps not working
Describe the bug When trying to create new projects under custom directories inside the /apps folder in the NX file structure, nx-electron is looking for the wrong dist folder during make/build.
To Reproduce Steps to reproduce the behavior:
- Created a new electron app and react-ui in a custom directory structure under '/apps' specified as '/apps/sonarfi/client/desktop'
- Build the react-ui and observe the dist output gets generated in the following folder structure by NX '/dist/apps/sonarfi/client/desktop/react-ui'
- When running the make command to build the electron app, it assumes a directory directly under '/dist/apps' and changes the slashes to dashes.
![error](https://user-images.githubusercontent.com/266783/179375677-ffa906fe-245a-489e-9155-9bb9668c34be.png)
Expected behavior nx-electron should use the same directory structure generated by NX during build time 'dist/apps/sonarfi/client/desktop/electron-app' to find the project instead of 'dist/apps/sonarfi-client-desktop-electron-app/index.js'
Desktop (please complete the following information):
- OS: Mac OS
- Nx Electron Version 13.2.1
Note, once manually copy over the directory and rename it to match the path nx-electron is looking for it works, but was hoping to find a more straight forward approach for this.
Currently we only support the default nx structure (all apps should be directly below the /apps directory). We would be happy to include it to the project if you are willing to implement it.
Okay great, I will certainly add to my list of things to work on. Thanks for the permission to update it.
@keypuncherlabs did you get anywhere with this?