Skip to content

Commit d2802ad

Browse files
authored
Add init task (#1681)
Add init task to initialize the dev environment
1 parent 2d11ac4 commit d2802ad

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

BUILD.md

+8
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,14 @@ or
103103
git clone https://github.com/wavetermdev/waveterm.git
104104
```
105105

106+
## Install code dependencies
107+
108+
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:
109+
110+
```sh
111+
task init
112+
```
113+
106114
## Build and Run
107115

108116
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.

Taskfile.yml

+7
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,13 @@ tasks:
321321
- task: dev:cleardata:linux
322322
- task: dev:cleardata:macos
323323

324+
init:
325+
desc: Initialize the project for development.
326+
cmds:
327+
- yarn
328+
- go mod tidy
329+
- cd docs && yarn
330+
324331
dev:cleardata:windows:
325332
internal: true
326333
platforms: [windows]

0 commit comments

Comments
 (0)