From 0b77459294728f185a0fc722b770b3c3c0b0281f Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Fri, 3 Jan 2025 14:10:44 -0500 Subject: [PATCH 1/2] Add init task --- BUILD.md | 8 ++++++++ Taskfile.yml | 7 +++++++ yarn.lock | 2 +- 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/BUILD.md b/BUILD.md index 923c4e0709..fe7f442f63 100644 --- a/BUILD.md +++ b/BUILD.md @@ -103,6 +103,14 @@ or git clone https://github.com/wavetermdev/waveterm.git ``` +## Install code dependencies + +The first time you clone the repo, you'll need to run the following to load the dependencies. If you ever have issues building the app, try running this again: + +```sh +task init +``` + ## Build and Run All the methods below will install Node and Go dependencies when they run the first time. All these should be run from within the Git repository. diff --git a/Taskfile.yml b/Taskfile.yml index 909346ebc7..d1212deebc 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -321,6 +321,13 @@ tasks: - task: dev:cleardata:linux - task: dev:cleardata:macos + init: + desc: Initialize the project for development. + cmds: + - yarn + - go mod tidy + - cd docs && yarn + dev:cleardata:windows: internal: true platforms: [windows] diff --git a/yarn.lock b/yarn.lock index 7c66034d5b..277b7e97f7 100644 --- a/yarn.lock +++ b/yarn.lock @@ -21015,7 +21015,7 @@ __metadata: "typescript@patch:typescript@npm%3A^5.7.2#optional!builtin": version: 5.7.2 - resolution: "typescript@patch:typescript@npm%3A5.7.2#optional!builtin::version=5.7.2&hash=cef18b" + resolution: "typescript@patch:typescript@npm%3A5.7.2#optional!builtin::version=5.7.2&hash=8c6c40" bin: tsc: bin/tsc tsserver: bin/tsserver From 3364ed05696d6dcae6a42af4ed26d12f467c9f84 Mon Sep 17 00:00:00 2001 From: Evan Simkowitz Date: Fri, 3 Jan 2025 14:14:31 -0500 Subject: [PATCH 2/2] revert yarn.lock --- yarn.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yarn.lock b/yarn.lock index 277b7e97f7..7c66034d5b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -21015,7 +21015,7 @@ __metadata: "typescript@patch:typescript@npm%3A^5.7.2#optional!builtin": version: 5.7.2 - resolution: "typescript@patch:typescript@npm%3A5.7.2#optional!builtin::version=5.7.2&hash=8c6c40" + resolution: "typescript@patch:typescript@npm%3A5.7.2#optional!builtin::version=5.7.2&hash=cef18b" bin: tsc: bin/tsc tsserver: bin/tsserver