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

[Frontend] Document and fix recommended npm daily practices #2452

Closed
1 of 2 tasks
Bobgy opened this issue Oct 22, 2019 · 1 comment · Fixed by #3142
Closed
1 of 2 tasks

[Frontend] Document and fix recommended npm daily practices #2452

Bobgy opened this issue Oct 22, 2019 · 1 comment · Fixed by #3142
Labels

Comments

@Bobgy
Copy link
Contributor

Bobgy commented Oct 22, 2019

Summary:

  • Use npm ci to
    • Install exact dependencies as before. @eterna2 pointed this out.
    • Keep node_modules up-to-date when someone else has installed a module.
  • Commit package-lock.json and package.json when you installed/deleted packages.
  • Use npm install --save (or npm i -S for short) for dependencies (dependency needed at runtime).
  • Use npm install --save-dev (or npm i -D for short) for dev dependencies (dependency only used a develop time tool).
  • Use npm uninstall [package] (or npm rm [package] for short) for removing any type of dependencies.
  • Use npm audit/npm audit fix to deal with vulnerabilities.

Action items:

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