Skip to content

Commit 10bde54

Browse files
committed
chore: project setup
1 parent 5999d58 commit 10bde54

15 files changed

+5513
-0
lines changed

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es2021: true
5+
},
6+
extends: ['standard'],
7+
parser: '@typescript-eslint/parser',
8+
parserOptions: {
9+
ecmaVersion: 12,
10+
sourceType: 'module'
11+
},
12+
plugins: ['@typescript-eslint'],
13+
rules: {
14+
semi: ['error', 'always']
15+
}
16+
};
File renamed without changes.
File renamed without changes.

.github/workflows/main.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- beta
7+
pull_request:
8+
paths-ignore:
9+
- '.gitignore'
10+
- '.npmignore'
11+
- '*.md'
12+
13+
jobs:
14+
build:
15+
name: Lint, and test on Node ${{ matrix.node }} and ${{ matrix.os }}
16+
runs-on: ubuntu-latest
17+
18+
steps:
19+
- name: Checkout repo
20+
uses: actions/checkout@v2
21+
22+
- name: Use Node ${{ matrix.node }}
23+
uses: actions/setup-node@v1
24+
with:
25+
node-version: ${{ matrix.node }}
26+
27+
- name: Install deps and build (with cache)
28+
uses: bahmutov/npm-install@v1
29+
30+
- name: Lint
31+
run: |
32+
yarn lint
33+
yarn lint:types
34+
- name: Test
35+
run: yarn test --ci

.gitignore

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
8+
# Coverage directory used by tools like istanbul
9+
coverage
10+
11+
# Dependency directories
12+
node_modules/
13+
14+
# Optional npm cache directory
15+
.npm
16+
17+
# Optional eslint cache
18+
.eslintcache
19+
20+
# Output of 'npm pack'
21+
*.tgz
22+
23+
# Yarn Integrity file
24+
.yarn-integrity
25+
26+
.DS_Store
27+
dist
28+
.idea/
29+
package-lock.json

.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+
yarn lint:types && yarn lint-staged

.prettierignore

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

0 commit comments

Comments
 (0)