Skip to content

Commit c903102

Browse files
authored
chore(ci): add script to install dev tools on macos (#5059)
* chore: add a simple script to install dev tools * chore: use Brewfile
1 parent 2b37539 commit c903102

File tree

4 files changed

+20
-11
lines changed

4 files changed

+20
-11
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,5 @@ tap-output
4747
# Jest
4848
coverage
4949
test/fixtures/basic-swift/.build
50-
test/fixtures/basic-swift/Package.resolved
50+
test/fixtures/basic-swift/Package.resolved
51+
scripts/Brewfile.lock.json

CONTRIBUTING.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,11 @@
44
55
## Prerequisites
66

7-
You will need the following software installed:
8-
9-
- Git
10-
- Node.js (and bundled npm)
11-
- Use whichever version is in [`.nvmrc`](./.nvmrc).
12-
13-
Open a terminal and make sure they are available.
7+
To install the required development dependencies in homebrew based environments, execute the following script from the root directory.
8+
The only additional prerequisite is having [homebrew](https://brew.sh/) installed.
149

1510
```sh
16-
git --version
17-
node --version
18-
npm --version
11+
./scripts/install-dev-dependencies.sh
1912
```
2013

2114
## Setting up

scripts/Brewfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
brew 'fnm'
2+
brew 'git'
3+
brew 'go'
4+
brew 'gitleaks'
5+
brew 'pre-commit'
6+
brew 'convco'
7+
brew 'python'
8+
brew 'gnupg'
9+
10+
cask 'github'

scripts/install-dev-dependencies.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/usr/bin/env bash
2+
set -exuo pipefail
3+
4+
# requires https://brew.sh/
5+
brew bundle --file=$(dirname "$0")/Brewfile

0 commit comments

Comments
 (0)