Problem
During this week, developers had a problem with loading up localhost:3000 in the browser due to not upgrading the nextjs version to the latest version of v13.5. We should add a CLI command in the dlp-cli to upgrade a specified node package to latest version.
Create a development branch in dlp-cli through the following steps
cd ~/Deep-Learning-Playground
cd dlp-cli
git checkout main
git pull origin main
git checkout -b dlp-cli-pnpm-upgrade-cmd
Write your command under the cmd/frontend/upgrade directory. Note that you will have to create the upgrade folder under the cmd/frontend directory
Take inspiration from existing go files under cmd/frontend to build the CLI command. If your CLI Go file works properly, you will need to be able to do something like dlp-cli frontend upgrade next which will run pnpm upgrade next under the ~/Deep-Learning-Playground/frontend directory
Make a PR
After the PR is merged, you will need to create a release. Ask @dwu359 for help/instructions here!
goreleaser will run and a new version will be created for homebrew and scoop versions of the dlp-cli package!
Any other considerations
Make sure that you have Golang setup. Follow these docs. Please post in the #backend channel in the DLP discord if you have any questions.
Feature Name
DLP Cli to upgrade frontend dependencies
Your Name
karkir0003
Description
Problem During this week, developers had a problem with loading up
localhost:3000
in the browser due to not upgrading the nextjs version to the latest version ofv13.5
. We should add a CLI command in thedlp-cli
to upgrade a specifiednode
package to latest version.Approach
dlp-cli
using the README.md instructions. Follow this section especiallydlp-cli
through the following stepscmd/frontend/upgrade
directory. Note that you will have to create theupgrade
folder under thecmd/frontend
directorycmd/frontend
to build the CLI command. If your CLIGo
file works properly, you will need to be able to do something likedlp-cli frontend upgrade next
which will runpnpm upgrade next
under the~/Deep-Learning-Playground/frontend
directorygoreleaser
will run and a new version will be created forhomebrew
andscoop
versions of thedlp-cli
package!Any other considerations Make sure that you have Golang setup. Follow these docs. Please post in the #backend channel in the DLP discord if you have any questions.