DSGT-DLP / Deep-Learning-Playground

Web Application where people new to Deep Learning can input a dataset and toy around with basic Pytorch modules without writing any code
MIT License
24 stars 8 forks source link

[FEATURE]: build a dlp cli command to upgrade pnpm dependencies #1038

Closed karkir0003 closed 2 weeks ago

karkir0003 commented 11 months ago

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 of v13.5. We should add a CLI command in the dlp-cli to upgrade a specified node package to latest version.

Approach

  1. Setup dlp-cli using the README.md instructions. Follow this section especially
  2. 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
  3. Write your command under the cmd/frontend/upgrade directory. Note that you will have to create the upgrade folder under the cmd/frontend directory
  4. 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
  5. Make a PR
  6. After the PR is merged, you will need to create a release. Ask @dwu359 for help/instructions here!
  7. 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.

karkir0003 commented 10 months ago

NOTE: We should be using pnpm to upgrade the node dependencies. We switched from yarn to pnpm

Follow these docs here: https://pnpm.io/cli/update