mirror of
https://github.com/tengge1/ShadowEditor.git
synced 2025-12-08 19:26:19 +00:00
66 lines
2.2 KiB
Bash
Executable File
66 lines
2.2 KiB
Bash
Executable File
#! /bin/bash
|
|
|
|
# Copyright 2017-2020 The ShadowEditor Authors. All rights reserved.
|
|
# Use of this source code is governed by a MIT-style
|
|
# license that can be found in the LICENSE file.
|
|
#
|
|
# For more information, please visit: https://github.com/tengge1/ShadowEditor
|
|
# You can also visit: https://gitee.com/tengge1/ShadowEditor
|
|
#
|
|
# Download and install the third-party development dependencies. These are only
|
|
# needed when you want to develop the golang server.
|
|
#
|
|
# First, you should install `VSCode`. You can download from: https://code.visualstudio.com/
|
|
# Second, open `VSCode`, install the `Go` extension.
|
|
# Last, run this file to download and install the third-party development dependencies.
|
|
#
|
|
# You are ready to go, and can experience the power of golang now.
|
|
|
|
# The current dir that you run this bash file.
|
|
CURRENT_DIR=$(pwd)
|
|
# The root dir that contains `README.md`.
|
|
ROOT_DIR=$(cd "$(dirname "$0")";cd "..";pwd)
|
|
# The golang server dir.
|
|
SERVER_DIR=$ROOT_DIR/server
|
|
# The web dir.
|
|
WEB_DIR=$ROOT_DIR/web
|
|
|
|
# Print the dir information.
|
|
echo "current dir:" $CURRENT_DIR
|
|
echo "root dir:" $ROOT_DIR
|
|
echo "server dir:" $SERVER_DIR
|
|
echo "web dir:" $WEB_DIR
|
|
|
|
# install the golang development dependencies.
|
|
echo "enter" $SERVER_DIR
|
|
cd $SERVER_DIR
|
|
|
|
go env -w GO111MODULE=on
|
|
|
|
go get -u golang.org/x/tools/cmd/guru
|
|
go get -u golang.org/x/tools/cmd/gorename
|
|
go get -u golang.org/x/tools/cmd/goimports
|
|
go get -u golang.org/x/lint/golint
|
|
go get -u golang.org/x/tools/cmd/godoc
|
|
go get -u -v golang.org/x/tools/gopls
|
|
|
|
go get -u -v github.com/uudashr/gopkgs/v2/cmd/gopkgs
|
|
go get -u -v github.com/acroca/go-symbols
|
|
go get -u -v github.com/cweill/gotests/...
|
|
go get -u -v github.com/fatih/gomodifytags
|
|
go get -u -v github.com/josharian/impl
|
|
go get -u -v github.com/davidrjenni/reftools/cmd/fillstruct
|
|
go get -u -v github.com/haya14busa/goplay/cmd/goplay
|
|
go get -u -v github.com/godoctor/godoctor
|
|
go get -u -v github.com/go-delve/delve/cmd/dlv
|
|
go get -u -v github.com/zmb3/gogetdoc
|
|
go get -u -v github.com/rogpeppe/godef
|
|
go get -u -v github.com/ramya-rao-a/go-outline
|
|
go get -u -v github.com/sqs/goreturns
|
|
go get -u -v github.com/tylerb/gotype-live
|
|
go get -u -v github.com/sourcegraph/go-langserver
|
|
go get -u -v github.com/stamblerre/gocode
|
|
|
|
# Back to the current dir.
|
|
echo 'leave' $SERVER_DIR
|
|
cd $CURRENT_DIR |