Skip to content

Commit 149b3c7

Browse files
committed
Setup infrastructure for Github action
1 parent e97697b commit 149b3c7

20 files changed

+7272
-0
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
lib/
3+
node_modules/

.eslintrc.json

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
{
2+
"plugins": [
3+
"@typescript-eslint"
4+
],
5+
"extends": [
6+
"plugin:github/recommended"
7+
],
8+
"parser": "@typescript-eslint/parser",
9+
"parserOptions": {
10+
"ecmaVersion": 9,
11+
"sourceType": "module",
12+
"project": "./tsconfig.json"
13+
},
14+
"rules": {
15+
"eslint-comments/no-use": "off",
16+
"import/no-namespace": "off",
17+
"no-unused-vars": "off",
18+
"@typescript-eslint/no-unused-vars": "error",
19+
"@typescript-eslint/explicit-member-accessibility": [
20+
"error",
21+
{
22+
"accessibility": "no-public"
23+
}
24+
],
25+
"@typescript-eslint/no-require-imports": "error",
26+
"@typescript-eslint/array-type": "error",
27+
"@typescript-eslint/await-thenable": "error",
28+
"@typescript-eslint/ban-ts-comment": "error",
29+
"camelcase": "off",
30+
"@typescript-eslint/consistent-type-assertions": "error",
31+
"@typescript-eslint/explicit-function-return-type": [
32+
"error",
33+
{
34+
"allowExpressions": true
35+
}
36+
],
37+
"@typescript-eslint/func-call-spacing": [
38+
"error",
39+
"never"
40+
],
41+
"@typescript-eslint/no-array-constructor": "error",
42+
"@typescript-eslint/no-empty-interface": "error",
43+
"@typescript-eslint/no-explicit-any": "warn",
44+
"@typescript-eslint/no-extraneous-class": "error",
45+
"@typescript-eslint/no-for-in-array": "error",
46+
"@typescript-eslint/no-inferrable-types": "error",
47+
"@typescript-eslint/no-misused-new": "error",
48+
"@typescript-eslint/no-namespace": "error",
49+
"@typescript-eslint/no-non-null-assertion": "warn",
50+
"@typescript-eslint/no-unnecessary-qualifier": "error",
51+
"@typescript-eslint/no-unnecessary-type-assertion": "error",
52+
"@typescript-eslint/no-useless-constructor": "error",
53+
"@typescript-eslint/no-var-requires": "error",
54+
"@typescript-eslint/prefer-for-of": "warn",
55+
"@typescript-eslint/prefer-function-type": "warn",
56+
"@typescript-eslint/prefer-includes": "error",
57+
"@typescript-eslint/prefer-string-starts-ends-with": "error",
58+
"@typescript-eslint/promise-function-async": "error",
59+
"@typescript-eslint/require-array-sort-compare": "error",
60+
"@typescript-eslint/restrict-plus-operands": "error",
61+
"semi": "off",
62+
"@typescript-eslint/semi": [
63+
"error",
64+
"never"
65+
],
66+
"@typescript-eslint/type-annotation-spacing": "error",
67+
"@typescript-eslint/unbound-method": "error",
68+
"i18n-text/no-en": "off"
69+
},
70+
"env": {
71+
"node": true,
72+
"es6": true
73+
}
74+
}

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
dist/** -diff linguist-generated=true

.github/dependabot.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 2
2+
updates:
3+
# Enable version updates for npm
4+
- package-ecosystem: 'npm'
5+
# Look for `package.json` and `lock` files in the `root` directory
6+
directory: '/'
7+
# Check the npm registry for updates every day (weekdays)
8+
schedule:
9+
interval: 'daily'

.github/workflows/test.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
tags:
6+
- "v*"
7+
pull_request:
8+
9+
jobs:
10+
test:
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu-latest, macOS-latest, windows-latest]
16+
steps:
17+
- uses: actions/checkout@v2
18+
- run: npm install
19+
- run: npm run all
20+
- name: Run sbt-dependency-graph-action
21+
uses: ./

.github/workflows/update-dist.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Update dist
2+
on:
3+
push:
4+
branches:
5+
- main
6+
7+
jobs:
8+
update-dist:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- run: npm install
13+
- run: npm run all
14+
- name: Create Pull Request
15+
id: cpr
16+
uses: peter-evans/create-pull-request@v3
17+
with:
18+
commit-message: Update dist
19+
author: GitHub <[email protected]>
20+
delete-branch: true
21+
title: Update dist
22+
- name: Check Pull Request
23+
run: |
24+
echo "Pull Request Number - ${{ steps.cpr.outputs.pull-request-number }}"
25+
echo "Pull Request URL - ${{ steps.cpr.outputs.pull-request-url }}"

.gitignore

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
# Dependency directory
2+
node_modules
3+
4+
# Rest pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
5+
# Logs
6+
logs
7+
*.log
8+
npm-debug.log*
9+
yarn-debug.log*
10+
yarn-error.log*
11+
lerna-debug.log*
12+
13+
# Diagnostic reports (https://nodejs.org/api/report.html)
14+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
15+
16+
# Runtime data
17+
pids
18+
*.pid
19+
*.seed
20+
*.pid.lock
21+
22+
# Directory for instrumented libs generated by jscoverage/JSCover
23+
lib-cov
24+
25+
# Coverage directory used by tools like istanbul
26+
coverage
27+
*.lcov
28+
29+
# nyc test coverage
30+
.nyc_output
31+
32+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
33+
.grunt
34+
35+
# Bower dependency directory (https://bower.io/)
36+
bower_components
37+
38+
# node-waf configuration
39+
.lock-wscript
40+
41+
# Compiled binary addons (https://nodejs.org/api/addons.html)
42+
build/Release
43+
44+
# Dependency directories
45+
jspm_packages/
46+
47+
# TypeScript v1 declaration files
48+
typings/
49+
50+
# TypeScript cache
51+
*.tsbuildinfo
52+
53+
# Optional npm cache directory
54+
.npm
55+
56+
# Optional eslint cache
57+
.eslintcache
58+
59+
# Optional REPL history
60+
.node_repl_history
61+
62+
# Output of 'npm pack'
63+
*.tgz
64+
65+
# Yarn Integrity file
66+
.yarn-integrity
67+
68+
# dotenv environment variables file
69+
.env
70+
.env.test
71+
72+
# parcel-bundler cache (https://parceljs.org/)
73+
.cache
74+
75+
# next.js build output
76+
.next
77+
78+
# nuxt.js build output
79+
.nuxt
80+
81+
# vuepress build output
82+
.vuepress/dist
83+
84+
# Serverless directories
85+
.serverless/
86+
87+
# FuseBox cache
88+
.fusebox/
89+
90+
# DynamoDB Local files
91+
.dynamodb/
92+
93+
# OS metadata
94+
.DS_Store
95+
Thumbs.db
96+
97+
# Ignore built ts files
98+
__tests__/runner/*
99+
lib/**/*

.prettierignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
lib/
3+
node_modules/

.prettierrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 100,
3+
"semi": false,
4+
"singleQuote": true,
5+
"trailingComma": "all",
6+
"arrowParens": "avoid"
7+
}

0 commit comments

Comments
 (0)