Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Following CONTRIBUTING.md: npm run test fails, npm run lint script is missing #192

Open
mtrefzer opened this issue Jan 6, 2023 · 7 comments

Comments

@mtrefzer
Copy link

mtrefzer commented Jan 6, 2023

According to CONTRIBUTING.md after cloning the repo and running npm ci npm run test fails and npm run lint doesn't work because there is not lint in the scripts section.

To Reproduce
Steps to reproduce the behavior:

  1. git clone https://github.com/bennymeg/nx-electron.git
  2. cd nx-electron && npm link
  3. npm ci
  4. npm run test
  5. initially throws various errors
  6. npm run lint
  7. there is no lint in the scripts section

Expected behavior
Without any changes all tests should run without any errors.
Either add lint to the scripts section or remove the part about linting the forked project from CONTRIBUTING.md file.

Desktop (please complete the following information):

  • OS: Ubuntu 22.04.1
  • Nx Electron Version [latest]
  • node: v16.13.1
  • npm: v8.1.2
@dhrn
Copy link

dhrn commented Jan 7, 2023

+1

@ErickRodrCodes
Copy link

test fails since Nx 15.4 changes the cli architecture.

@bennymeg
Copy link
Owner

bennymeg commented Jan 8, 2023

The tests need a lot of reworks, and some are broken for quite a long time (unfortunately)
I'll add a lint script once I will allocate some time to work on v14/15

@ErickRodrCodes
Copy link

Count me in @bennymeg , I have fix partially some of the test scripts.

  • Please use join.path for tests related to paths. static paths break tests on windows, and I believe you are in a mac
  • I need to get more familiar with nx schematics and migration, so I can be able to provide a decent PR.
  • I am willing to put my own time to help with this project, so please let me know.

@ErickRodrCodes
Copy link

Ok, for 15, I'm going to probably write a FULL REWRITE. yes. and this is why

The constant issues the current plugin has in terms of testing make it inviable to use it as it is. so I will create a separate branch JUST FOR 15, and work from there.

There might be no point in doing the migration from 14 with all the breaking changes it is having. Better to have clear schematics from start.

@bennymeg
Copy link
Owner

please wait a bit until I will release v14 (by the end of this week) and branch from there.

@ErickRodrCodes
Copy link

ok! then I will wait 😂, migration from there should be easy.

I would suggest to take a look into the vite plugin for electron. probably a good option for rewrite: https://github.com/alex8088/electron-vite

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants