Remove npm (#3)
Merged
Unknown opened 3 years ago

Npm lock file has been committed into the repository despite yarn being used as the package manager. This causes yarn to throw a warning outlined in issue #1

Commits were merged into target branch
  • Robin Shen merged 3 years ago
  • Unknown commented 3 years ago
    Thanks for merging this Robin :)
  • Unknown commented 3 years ago

    Yarn should stop complaining about this issue now (hopefully)

  • Robin Shen commented 3 years ago

    Yes it won't. But we still need to commit yarn.lock to lock dependencies.

  • Robin Shen commented 3 years ago

    I will add that

  • Unknown commented 3 years ago

    Yeah I thought about doing this myself within the npm PR, but I felt it was outside the scope of the PR and would defeat the purpose, guess now you got to waste your time doing it... sorry...

  • Unknown commented 3 years ago

    As for the other issues within issue #1, I will look into them and see if I can find a solution to them (it is not really a big deal, but its going to trigger me every time I build the docs for debugging if I do not fix it xD)

  • Robin Shen commented 3 years ago

    No problem at all. The README.md is using yarn, but I am committing package-lock.json. This is really a bug.

  • Unknown commented 3 years ago

    Yeah that is why I submitted this PR, it is highly recommended to NOT mish-mash package managers, and thus removing the package-lock.json would stop yarn from complaining (since it was the package manager you choose for the job)

  • Robin Shen commented 3 years ago

    As for the other issues within issue #1, I will look into them and see if I can find a solution to them (it is not really a big deal, but its going to trigger me every time I build the docs for debugging if I do not fix it xD)

    Yes, please go ahead to investigate, and I will be happy to merge the work. My impression is that modern javascript projects often have many warnings like this, as things are evolving quickly there, and often there are libraries abandoned by its maintainers.

  • Unknown commented 3 years ago
    Yes, that is one of the many issues with javascript, every single day a new library is brought out, look how many web frameworks javascript has, all with their own pros and cons, and being updated so rapidly most sites can't keep up.

    Yes it is good to have fast development, but also it doesn't seem like javascript code is tested as robustly as other codebases, you don't see C codebases releasing massive changes every few days because it could cause severe security vulnerabilities.

    I might go ask the developers if they know why these warnings are being thrown, as it seems to be thrown by dependencies being resolved from docusaurus and not the dependencies you have named in the package.

  • Unknown commented 3 years ago

    ^^^ Also as seen above, email replies get a bit messy and I can't seem to figure out why...

  • Unknown commented 3 years ago

    image.png

    See there is no newlines in each paragraph so I do not see why it has been appended in the response here, maybe I should report this in onedev/server?

  • Robin Shen commented 3 years ago

    What email client are you using?

  • Unknown commented 3 years ago

    Thunderbird

  • Robin Shen commented 3 years ago

    Yes, you may report this separately in onedev/server as a bug.

  • Unknown commented 3 years ago

    Done, thanks for the help :)

pull request 1/1
Submitter Unknown
Target main
Source unknown
Assignees
Merge Strategy
Create Merge Commit
Watchers (3)
Reference
pull request onedev/docs#3
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover