Skip to content

Commit 828c34a

Browse files
committed
✨ v2 rewrite
1 parent 4f3e5c5 commit 828c34a

60 files changed

Lines changed: 19646 additions & 10583 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.eslintignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/docs.yml

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
name: Docs
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
jobs:
10+
checks:
11+
if: github.event_name != 'push'
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout repo 🛎
16+
uses: actions/checkout@v2
17+
18+
- name: Use Node 14.x 🔧
19+
uses: actions/setup-node@v2
20+
with:
21+
node-version: "14.x"
22+
23+
- name: Install deps and build (with cache) 📦
24+
uses: bahmutov/npm-install@v1
25+
26+
- name: Build Project 🚧
27+
run: |
28+
yarn build
29+
30+
- name: Install deps and build (with cache) 📦
31+
uses: bahmutov/npm-install@v1
32+
with:
33+
working-directory: website
34+
35+
- name: Test Build 🚧
36+
run: |
37+
pushd website
38+
yarn build
39+
popd
40+
41+
gh-release:
42+
if: github.event_name != 'pull_request'
43+
runs-on: ubuntu-latest
44+
45+
steps:
46+
- name: Checkout repo 🛎
47+
uses: actions/checkout@v2
48+
49+
- name: Use Node 14.x 🔧
50+
uses: actions/setup-node@v2
51+
with:
52+
node-version: "14.x"
53+
54+
- name: Setup SSH Keys 🔑
55+
uses: webfactory/ssh-agent@v0.5.0
56+
with:
57+
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}
58+
59+
- name: Install deps and build (with cache) 📦
60+
uses: bahmutov/npm-install@v1
61+
62+
- name: Build Project 🚧
63+
run: |
64+
yarn build
65+
66+
- name: Install deps and build (with cache) 📦
67+
uses: bahmutov/npm-install@v1
68+
with:
69+
working-directory: website
70+
71+
- name: Release to GitHub Pages 🚀
72+
env:
73+
USE_SSH: true
74+
GIT_USER: git
75+
DEPLOYMENT_BRANCH: gh-pages
76+
77+
run: |
78+
git config --global user.email "actions@github.com"
79+
git config --global user.name "gh-actions"
80+
pushd website
81+
yarn deploy
82+
popd

.github/workflows/main.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: CI
2+
on: [push]
3+
jobs:
4+
build:
5+
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
6+
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
node: [12, 14, 16]
11+
os: [ubuntu-latest, windows-latest, macOS-latest]
12+
env:
13+
OS: ${{ matrix.os }}
14+
NODE_VERSION: ${{ matrix.node }}
15+
16+
steps:
17+
- name: Checkout repo 🛎
18+
uses: actions/checkout@v2
19+
20+
- name: Use Node ${{ matrix.node }} 🔧
21+
uses: actions/setup-node@v2
22+
with:
23+
node-version: ${{ matrix.node }}
24+
25+
- name: Install deps and build (with cache) 📦
26+
uses: bahmutov/npm-install@v1
27+
28+
- name: Lint 🔍
29+
run: yarn lint
30+
31+
- name: Test ✅
32+
run: yarn test:coverage --ci
33+
34+
- name: Build 🚧
35+
run: yarn build
36+
37+
- name: Upload coverage to Codecov ☔
38+
uses: codecov/codecov-action@v1
39+
with:
40+
token: ${{ secrets.CODECOV_TOKEN }}
41+
env_vars: OS, NODE
42+
fail_ci_if_error: false
43+
verbose: true

.github/workflows/nodejs.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

.github/workflows/npm.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.gitignore

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
node_modules
2-
dist/*
3-
coverage
4-
.nyc_output
1+
*.log
52
.DS_Store
6-
*.tgz
3+
node_modules
4+
dist
5+
coverage

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
tsdx lint

0 commit comments

Comments
 (0)