Skip to content

Commit

Permalink
✨ v2 rewrite
Browse files Browse the repository at this point in the history
  • Loading branch information
bmiddha committed May 13, 2021
1 parent 4f3e5c5 commit 828c34a
Show file tree
Hide file tree
Showing 60 changed files with 19,646 additions and 10,583 deletions.
10 changes: 0 additions & 10 deletions .eslintignore

This file was deleted.

25 changes: 0 additions & 25 deletions .eslintrc

This file was deleted.

1 change: 0 additions & 1 deletion .github/FUNDING.yml

This file was deleted.

82 changes: 82 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Docs

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
checks:
if: github.event_name != 'push'
runs-on: ubuntu-latest

steps:
- name: Checkout repo 🛎
uses: actions/checkout@v2

- name: Use Node 14.x 🔧
uses: actions/setup-node@v2
with:
node-version: "14.x"

- name: Install deps and build (with cache) 📦
uses: bahmutov/npm-install@v1

- name: Build Project 🚧
run: |
yarn build
- name: Install deps and build (with cache) 📦
uses: bahmutov/npm-install@v1
with:
working-directory: website

- name: Test Build 🚧
run: |
pushd website
yarn build
popd
gh-release:
if: github.event_name != 'pull_request'
runs-on: ubuntu-latest

steps:
- name: Checkout repo 🛎
uses: actions/checkout@v2

- name: Use Node 14.x 🔧
uses: actions/setup-node@v2
with:
node-version: "14.x"

- name: Setup SSH Keys 🔑
uses: webfactory/ssh-agent@v0.5.0
with:
ssh-private-key: ${{ secrets.GH_PAGES_DEPLOY }}

- name: Install deps and build (with cache) 📦
uses: bahmutov/npm-install@v1

- name: Build Project 🚧
run: |
yarn build
- name: Install deps and build (with cache) 📦
uses: bahmutov/npm-install@v1
with:
working-directory: website

- name: Release to GitHub Pages 🚀
env:
USE_SSH: true
GIT_USER: git
DEPLOYMENT_BRANCH: gh-pages

run: |
git config --global user.email "actions@github.com"
git config --global user.name "gh-actions"
pushd website
yarn deploy
popd
43 changes: 43 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: CI
on: [push]
jobs:
build:
name: Build, lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}

runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [12, 14, 16]
os: [ubuntu-latest, windows-latest, macOS-latest]
env:
OS: ${{ matrix.os }}
NODE_VERSION: ${{ matrix.node }}

steps:
- name: Checkout repo 🛎
uses: actions/checkout@v2

- name: Use Node ${{ matrix.node }} 🔧
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install deps and build (with cache) 📦
uses: bahmutov/npm-install@v1

- name: Lint 🔍
run: yarn lint

- name: Test ✅
run: yarn test:coverage --ci

- name: Build 🚧
run: yarn build

- name: Upload coverage to Codecov ☔
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
env_vars: OS, NODE
fail_ci_if_error: false
verbose: true
29 changes: 0 additions & 29 deletions .github/workflows/nodejs.yml

This file was deleted.

45 changes: 0 additions & 45 deletions .github/workflows/npm.yml

This file was deleted.

9 changes: 4 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
node_modules
dist/*
coverage
.nyc_output
*.log
.DS_Store
*.tgz
node_modules
dist
coverage
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

tsdx lint
7 changes: 0 additions & 7 deletions .npmignore

This file was deleted.

10 changes: 0 additions & 10 deletions .prettierrc

This file was deleted.

28 changes: 16 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach",
"port": 9229,
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
}
]
"configurations": [
{
"type": "node",
"name": "vscode-jest-tests",
"request": "launch",
"console": "integratedTerminal",
"internalConsoleOptions": "neverOpen",
"disableOptimisticBPs": true,
"cwd": "${workspaceFolder}",
"runtimeExecutable": "yarn",
"args": [
"test",
"--runInBand"
]
}
]
}
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"jest.jestCommandLine": "yarn test",
"cSpell.words": [
"mockingoose"
]
}
Loading

0 comments on commit 828c34a

Please sign in to comment.