Skip to content

Commit 66921c5

Browse files
authored
Merge pull request #2 from Eppo-exp/setup-without-code
Initial Repo Setup
2 parents d73f085 + dd980d1 commit 66921c5

24 files changed

+4528
-0
lines changed

.eslintignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
6+
# Dependency directories
7+
node_modules/
8+
**/node_modules/**
9+
10+
# dotenv environment variables file
11+
.env
12+
13+
dist

.eslintrc.js

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
es6: true,
5+
jest: true,
6+
},
7+
extends: [
8+
'eslint:recommended',
9+
'plugin:@typescript-eslint/eslint-recommended',
10+
'plugin:@typescript-eslint/recommended',
11+
'plugin:prettier/recommended',
12+
'plugin:promise/recommended',
13+
'plugin:import/recommended',
14+
],
15+
plugins: ['@typescript-eslint', 'prettier', 'import', 'promise'],
16+
rules: {
17+
'prettier/prettier': [
18+
'warn',
19+
{
20+
singleQuote: true,
21+
trailingComma: 'all',
22+
printWidth: 100,
23+
},
24+
],
25+
'import/named': 'off',
26+
'import/no-unresolved': 'off',
27+
'import/order': [
28+
'warn',
29+
{
30+
pathGroups: [
31+
{
32+
pattern: 'src/**',
33+
group: 'parent',
34+
position: 'before',
35+
},
36+
],
37+
groups: ['builtin', 'external', 'parent', 'sibling', 'index'],
38+
'newlines-between': 'always',
39+
alphabetize: {
40+
order: 'asc' /* sort in ascending order. Options: ['ignore', 'asc', 'desc'] */,
41+
caseInsensitive: true /* ignore case. Options: [true, false] */,
42+
},
43+
},
44+
],
45+
},
46+
};

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.json linguist-language=JSON-with-Comments
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
---
2+
name: 'Bug report'
3+
title: '[Bug]: '
4+
labels: bug
5+
---
6+
7+
## Description
8+
[//]: # (Briefly describe the bug)
9+
10+
## Impact
11+
[//]: # (Add detail on the impact of this issue, both the who and the how)
12+
13+
## Artifacts
14+
[//]: # (Add screenshots / loom video, etc)

.github/ISSUE_TEMPLATE/config.yml

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

.github/pull_request_template.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
labels: mergeable
3+
---
4+
[//]: # (Link to the issue corresponding to this chunk of work)
5+
Fixes: #__issue__
6+
7+
## Motivation and Context
8+
[//]: # (Why is this change required? What problem does it solve?)
9+
10+
## Description
11+
[//]: # (Describe your changes in detail)
12+
13+
## How has this been tested?
14+
[//]: # (Please describe in detail how you tested your changes)
15+
16+
17+
[//]: # (OPTIONAL)
18+
[//]: # (Add one or multiple labels: enhancement, refactoring, bugfix)
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Test and lint SDK
2+
on:
3+
pull_request:
4+
paths:
5+
- '**/*'
6+
7+
jobs:
8+
lint-test-sdk:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Use Node.js
13+
uses: actions/setup-node@v1
14+
with:
15+
node-version: '14.x'
16+
- uses: actions/cache@v2
17+
with:
18+
path: './node_modules'
19+
key: ${{ runner.os }}-root-node-modules-${{ hashFiles('./yarn.lock') }}
20+
- name: Install SDK dependencies
21+
run: yarn --frozen-lockfile
22+
working-directory: ./
23+
- name: Check code with eslint
24+
run: npx eslint '**/*.{ts,tsx}'
25+
working-directory: ./
26+
- name: Run tests
27+
run: yarn test
28+
working-directory: ./
29+
typecheck:
30+
runs-on: ubuntu-latest
31+
steps:
32+
- uses: actions/checkout@v2
33+
- name: Use Node.js
34+
uses: actions/setup-node@v1
35+
with:
36+
node-version: '14.x'
37+
- uses: actions/cache@v2
38+
with:
39+
path: './node_modules'
40+
key: ${{ runner.os }}-root-node-modules-${{ hashFiles('./yarn.lock') }}
41+
- name: Install SDK dependencies
42+
run: yarn --frozen-lockfile
43+
working-directory: ./
44+
- name: Run typecheck
45+
run: yarn typecheck
46+
working-directory: ./

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Node artifact files
2+
node_modules/
3+
dist/
4+
logs/
5+
6+
temp
7+
.env
8+
yarn-error.log

.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 pre-commit

0 commit comments

Comments
 (0)