Skip to content

Commit aaa37b6

Browse files
committed
Initial commit
0 parents  commit aaa37b6

Some content is hidden

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

60 files changed

+12591
-0
lines changed

.editorconfig

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
indent_style = space
6+
indent_size = 2
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true

.env.example

Whitespace-only changes.

.eslintrc

+123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"commonjs": true,
5+
"es6": true,
6+
"node": true,
7+
"jest": true
8+
},
9+
"parser": "@typescript-eslint/parser",
10+
"extends": [
11+
"eslint:recommended",
12+
"plugin:@typescript-eslint/recommended",
13+
"plugin:prettier/recommended",
14+
"prettier",
15+
"prettier/@typescript-eslint"
16+
],
17+
"plugins": [
18+
"import"
19+
],
20+
"parserOptions": {
21+
"sourceType": "module",
22+
"ecmaVersion": 2020
23+
},
24+
"rules": {
25+
"linebreak-style": ["error", "unix"],
26+
"no-empty": 1,
27+
"no-undef": 1,
28+
"no-useless-catch": 1,
29+
"no-prototype-builtins": 1,
30+
"no-constant-condition": 0,
31+
"no-useless-escape": 0,
32+
"no-console": "error",
33+
"eqeqeq": ["error", "smart"],
34+
"capitalized-comments": [
35+
"warn",
36+
"always",
37+
{
38+
"ignoreInlineComments": true,
39+
"ignoreConsecutiveComments": true
40+
}
41+
],
42+
"import/order": [
43+
"error",
44+
{
45+
"groups": [
46+
"type",
47+
"builtin",
48+
"external",
49+
"internal",
50+
"index",
51+
"sibling",
52+
"parent",
53+
"object"
54+
],
55+
"pathGroups": [
56+
{
57+
"pattern": "@",
58+
"group": "internal"
59+
},
60+
{
61+
"pattern": "@/**",
62+
"group": "internal"
63+
}
64+
],
65+
"pathGroupsExcludedImportTypes": [
66+
"type"
67+
]
68+
}
69+
],
70+
"@typescript-eslint/no-namespace": 0,
71+
"@typescript-eslint/no-explicit-any": 0,
72+
"@typescript-eslint/explicit-module-boundary-types": 0,
73+
"@typescript-eslint/no-unused-vars": [
74+
"warn",
75+
{
76+
"varsIgnorePattern": "^_",
77+
"argsIgnorePattern": "^_"
78+
}
79+
],
80+
"@typescript-eslint/no-inferrable-types": 0,
81+
"@typescript-eslint/no-non-null-assertion": 0,
82+
"@typescript-eslint/no-var-requires": 0,
83+
"@typescript-eslint/naming-convention": [
84+
"error",
85+
{
86+
"selector": "default",
87+
"format": ["camelCase"],
88+
"leadingUnderscore": "allow",
89+
"trailingUnderscore": "allowSingleOrDouble"
90+
},
91+
{
92+
"selector": "variable",
93+
"format": ["camelCase", "UPPER_CASE"],
94+
"leadingUnderscore": "allow",
95+
"trailingUnderscore": "allowSingleOrDouble"
96+
},
97+
{
98+
"selector": "parameter",
99+
"format": ["camelCase"],
100+
"trailingUnderscore": "allowSingleOrDouble"
101+
},
102+
{
103+
"selector": "typeLike",
104+
"format": ["PascalCase"],
105+
"trailingUnderscore": "allowSingleOrDouble"
106+
},
107+
{
108+
"selector": "objectLiteralProperty",
109+
"format": null
110+
},
111+
{
112+
"selector": "typeProperty",
113+
"format": null
114+
}
115+
],
116+
"@typescript-eslint/ban-ts-comment": [
117+
"error",
118+
{
119+
"ts-ignore": "allow-with-description"
120+
}
121+
]
122+
}
123+
}
+81
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request_target:
6+
types: [opened, synchronize, reopened]
7+
8+
name: CodeSee Map
9+
10+
jobs:
11+
test_map_action:
12+
runs-on: ubuntu-latest
13+
continue-on-error: true
14+
name: Run CodeSee Map Analysis
15+
steps:
16+
- name: checkout
17+
id: checkout
18+
uses: actions/checkout@v2
19+
with:
20+
repository: ${{ github.event.pull_request.head.repo.full_name }}
21+
ref: ${{ github.event.pull_request.head.ref }}
22+
fetch-depth: 0
23+
24+
# codesee-detect-languages has an output with id languages.
25+
- name: Detect Languages
26+
id: detect-languages
27+
uses: Codesee-io/codesee-detect-languages-action@latest
28+
29+
- name: Configure JDK 16
30+
uses: actions/setup-java@v2
31+
if: ${{ fromJSON(steps.detect-languages.outputs.languages).java }}
32+
with:
33+
java-version: '16'
34+
distribution: 'zulu'
35+
36+
# CodeSee Maps Go support uses a static binary so there's no setup step required.
37+
38+
- name: Configure Node.js 14
39+
uses: actions/setup-node@v2
40+
if: ${{ fromJSON(steps.detect-languages.outputs.languages).javascript }}
41+
with:
42+
node-version: '14'
43+
44+
- name: Configure Python 3.x
45+
uses: actions/setup-python@v2
46+
if: ${{ fromJSON(steps.detect-languages.outputs.languages).python }}
47+
with:
48+
python-version: '3.10'
49+
architecture: 'x64'
50+
51+
- name: Configure Ruby '3.x'
52+
uses: ruby/setup-ruby@v1
53+
if: ${{ fromJSON(steps.detect-languages.outputs.languages).ruby }}
54+
with:
55+
ruby-version: '3.0'
56+
57+
# CodeSee Maps Rust support uses a static binary so there's no setup step required.
58+
59+
- name: Generate Map
60+
id: generate-map
61+
uses: Codesee-io/codesee-map-action@latest
62+
with:
63+
step: map
64+
github_ref: ${{ github.ref }}
65+
languages: ${{ steps.detect-languages.outputs.languages }}
66+
67+
- name: Upload Map
68+
id: upload-map
69+
uses: Codesee-io/codesee-map-action@latest
70+
with:
71+
step: mapUpload
72+
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
73+
github_ref: ${{ github.ref }}
74+
75+
- name: Insights
76+
id: insights
77+
uses: Codesee-io/codesee-map-action@latest
78+
with:
79+
step: insights
80+
api_token: ${{ secrets.CODESEE_ARCH_DIAG_API_TOKEN }}
81+
github_ref: ${{ github.ref }}

.gitignore

+123
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,123 @@
1+
/tmp
2+
/dist
3+
.env*
4+
!.env.example
5+
/result*
6+
/builds
7+
8+
# Logs
9+
logs
10+
*.log
11+
npm-debug.log*
12+
yarn-debug.log*
13+
yarn-error.log*
14+
lerna-debug.log*
15+
16+
# Diagnostic reports (https://nodejs.org/api/report.html)
17+
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
18+
19+
# Runtime data
20+
pids
21+
*.pid
22+
*.seed
23+
*.pid.lock
24+
25+
# Directory for instrumented libs generated by jscoverage/JSCover
26+
lib-cov
27+
28+
# Coverage directory used by tools like istanbul
29+
coverage
30+
*.lcov
31+
32+
# nyc test coverage
33+
.nyc_output
34+
35+
# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
36+
.grunt
37+
38+
# Bower dependency directory (https://bower.io/)
39+
bower_components
40+
41+
# node-waf configuration
42+
.lock-wscript
43+
44+
# Compiled binary addons (https://nodejs.org/api/addons.html)
45+
build/Release
46+
47+
# Dependency directories
48+
node_modules/
49+
jspm_packages/
50+
51+
# Snowpack dependency directory (https://snowpack.dev/)
52+
web_modules/
53+
54+
# TypeScript cache
55+
*.tsbuildinfo
56+
57+
# Optional npm cache directory
58+
.npm
59+
60+
# Optional eslint cache
61+
.eslintcache
62+
63+
# Microbundle cache
64+
.rpt2_cache/
65+
.rts2_cache_cjs/
66+
.rts2_cache_es/
67+
.rts2_cache_umd/
68+
69+
# Optional REPL history
70+
.node_repl_history
71+
72+
# Output of 'npm pack'
73+
*.tgz
74+
75+
# Yarn Integrity file
76+
.yarn-integrity
77+
78+
# dotenv environment variables file
79+
.env
80+
.env.test
81+
82+
# parcel-bundler cache (https://parceljs.org/)
83+
.cache
84+
.parcel-cache
85+
86+
# Next.js build output
87+
.next
88+
out
89+
90+
# Nuxt.js build / generate output
91+
.nuxt
92+
dist
93+
94+
# Gatsby files
95+
.cache/
96+
# Comment in the public line in if your project uses Gatsby and not Next.js
97+
# https://nextjs.org/blog/next-9-1#public-directory-support
98+
# public
99+
100+
# vuepress build output
101+
.vuepress/dist
102+
103+
# Serverless directories
104+
.serverless/
105+
106+
# FuseBox cache
107+
.fusebox/
108+
109+
# DynamoDB Local files
110+
.dynamodb/
111+
112+
# TernJS port file
113+
.tern-port
114+
115+
# Stores VSCode versions used for testing VSCode extensions
116+
.vscode-test
117+
118+
# yarn v2
119+
.yarn/cache
120+
.yarn/unplugged
121+
.yarn/build-state.yml
122+
.yarn/install-state.gz
123+
.pnp.*

0 commit comments

Comments
 (0)