Skip to content

Commit 46a2de8

Browse files
alixanderBernard Xie
and
Bernard Xie
committed
oss
Co-authored-by: Bernard Xie <bernard@terrastruct.com>
0 parents  commit 46a2de8

24 files changed

+1715
-0
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
npm node_modules
2+
build

.eslintrc

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"env": { "node": true },
5+
"plugins": [
6+
"@typescript-eslint"
7+
],
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:@typescript-eslint/eslint-recommended",
11+
"plugin:@typescript-eslint/recommended"
12+
],
13+
"parserOptions": {
14+
"sourceType": "module"
15+
},
16+
"rules": {
17+
"no-unused-vars": "off",
18+
"@typescript-eslint/no-unused-vars": ["error", { "args": "none" }],
19+
"@typescript-eslint/ban-ts-comment": "off",
20+
"no-prototype-builtins": "off",
21+
"@typescript-eslint/no-empty-function": "off"
22+
}
23+
}

.github/workflows/ci.yml

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: ci
2+
on: [push]
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
5+
cancel-in-progress: true
6+
7+
jobs:
8+
fmt:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v3
12+
with:
13+
submodules: recursive
14+
- uses: actions/cache@v2
15+
with:
16+
path: ~/.cache/yarn/v6
17+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
18+
restore-keys: |
19+
${{ runner.os }}-yarn-
20+
- run: TERM=xterm-256color ./make.sh fmt
21+
env:
22+
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}
23+
build:
24+
runs-on: ubuntu-latest
25+
steps:
26+
- uses: actions/checkout@v3
27+
with:
28+
submodules: recursive
29+
- uses: actions/cache@v2
30+
with:
31+
path: ~/.cache/yarn/v6
32+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
33+
restore-keys: |
34+
${{ runner.os }}-yarn-
35+
- name: Install
36+
run: TERM=xterm-256color yarn
37+
- run: TERM=xterm-256color ./make.sh build
38+
env:
39+
GITHUB_TOKEN: ${{ secrets._GITHUB_TOKEN }}

.gitignore

+26
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# vscode
2+
.vscode
3+
4+
# Intellij
5+
*.iml
6+
.idea
7+
8+
# npm
9+
node_modules
10+
11+
# Don't include the compiled main.js file in the repo.
12+
# They should be uploaded to GitHub releases instead.
13+
main.js
14+
15+
# Exclude sourcemaps
16+
*.map
17+
18+
# obsidian
19+
data.json
20+
21+
# Exclude macOS Finder (System Explorer) View States
22+
.DS_Store
23+
24+
.make-log
25+
.changed-files
26+
.make-log.txt

.gitmodules

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "ci/sub"]
2+
path = ci/sub
3+
url = https://github.com/terrastruct/ci.git

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
tag-version-prefix=""

0 commit comments

Comments
 (0)