Skip to content

Commit

Permalink
Move some dependencies to dev
Browse files Browse the repository at this point in the history
  • Loading branch information
josephspurrier committed Mar 7, 2020
1 parent b6029ca commit 5400404
Show file tree
Hide file tree
Showing 3 changed files with 9,923 additions and 5,161 deletions.
45 changes: 44 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,53 @@ These are the current versions on the front-end components:
Yuu can use these commands to interact with nuxt.

```bash
# CD to the UI folder.
cd ${GOPATH}/src/app/ui

# Check the versions of packages.
npm outdated

# Update all the packages to the latest version (specified by the tag config), respecting semver.
# https://docs.npmjs.com/cli-commands/update.html
npm update

# Scan your project for vulnerabilities and automatically install any compatible updates to vulnerable dependencies.
# https://docs.npmjs.com/cli/audit
npm audit fix

# Get the current verson of a package.
npm -v eslint

# Get a list of all packages that rely on another package
# https://docs.npmjs.com/cli/ls
npm ls typescript

# View all top level packages.
npm ls --depth=0

# Install the latest version of a package.
# https://bytearcher.com/articles/using-npm-update-and-npm-outdated-to-update-dependencies/
npm install eslint@latest

# Install the latest verson package of a major version.
npm install eslint@^5.0.0

# Install the exact version of a package.
npm install lodash@4.17.4

# Remove a package.
# https://docs.npmjs.com/cli/uninstall
npm uninstall eslint-config-standard

# Use --save (-S) to add a package to the package.json dependencies (packages required when the app is built).
# Use --save-dev (-D) to add a package to the package.json devDependencies (packages used during dev to build, bundle, lint).

# Check the version of nuxt.
make nuxt-upgrade
make nuxt-version

# Upgrade nuxt to the new version.
# When doing an update to nuxt, you should upgrade, remove node_modules dir,
# delete the package-lock.json, and then run 'npm install' again.
make nuxt-upgrade
```

Expand Down
Loading

0 comments on commit 5400404

Please sign in to comment.