-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
executable file
·27 lines (22 loc) · 964 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
sudo curl -fsSL -o /usr/local/bin/dbmate https://github.com/amacneil/dbmate/releases/latest/download/dbmate-linux-amd64
sudo chmod +x /usr/local/bin/dbmate
go install github.com/golangci/golangci-lint/cmd/[email protected]
go install github.com/deepmap/oapi-codegen/cmd/[email protected]
go install github.com/golang/mock/[email protected]
go install golang.org/x/lint/golint
go get -u github.com/gordonklaus/ineffassign && go mod tidy
go get -u github.com/client9/misspell/cmd/misspell && go mod tidy
sudo apt-get install -y gcc g++ make
curl -fsSL https://deb.nodesource.com/setup_16.x | sudo -E bash -
sudo apt install -y nodejs
node --version
sudo chown -R "$(whoami)" "${HOME}/.npm"
npm config set prefix "${HOME}/.npm"
echo 'export PATH="${PATH}:${HOME}/.npm/bin"' >> "${HOME}/.profile"
source "${HOME}/.profile"
npm install -g npm
npm install -g eslint
if [[ ! -f config/onix.json ]]; then
cp config/onix.dist.json config/onix.json
fi