Skip to content

Commit 3328bda

Browse files
authored
feat(workspace): add all initial source code (#1)
1 parent 7b8fea6 commit 3328bda

Some content is hidden

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

47 files changed

+31394
-1
lines changed

.commitlintrc.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"extends": ["@commitlint/config-angular"],
3+
"rules": {}
4+
}

.editorconfig

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see https://editorconfig.org/
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false

.eslintignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
7+
# Dependencies
8+
/node_modules
9+
node_modules

.eslintrc.json

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"root": true,
3+
"ignorePatterns": ["**/*"],
4+
"plugins": ["@nx"],
5+
"overrides": [
6+
{
7+
"files": ["*.ts", "*.js"],
8+
"rules": {
9+
"@nx/enforce-module-boundaries": [
10+
"error",
11+
{
12+
"enforceBuildableLibDependency": true,
13+
"allow": [],
14+
"depConstraints": [
15+
{
16+
"sourceTag": "*",
17+
"onlyDependOnLibsWithTags": ["*"]
18+
}
19+
]
20+
}
21+
],
22+
"@typescript-eslint/no-shadow": ["error", { "allow": ["_"] }],
23+
"no-console": ["warn", { "allow": ["error"] }],
24+
"no-unused-expressions": "warn"
25+
}
26+
},
27+
{
28+
"files": ["*.ts"],
29+
"extends": ["plugin:@nx/typescript"],
30+
"rules": {}
31+
},
32+
{
33+
"files": ["*.js"],
34+
"extends": ["plugin:@nx/javascript"],
35+
"rules": {}
36+
},
37+
{
38+
"files": ["*.spec.ts", "*.spec.js"],
39+
"env": {
40+
"jest": true
41+
},
42+
"rules": {}
43+
}
44+
]
45+
}

.github/workflows/pull-request.yml

Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
name: Pull Request
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
types: [opened, reopened, synchronize]
8+
9+
jobs:
10+
build:
11+
name: Build
12+
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Fetch Git entire history for all branches and tags
17+
uses: actions/checkout@v3
18+
with:
19+
fetch-depth: 0
20+
ref: ${{ github.event.pull_request.head.ref }}
21+
22+
- name: Derive appropriate SHAs for base and head for `nx affected` commands
23+
uses: nrwl/nx-set-shas@v2
24+
25+
- name: Setup Node.js
26+
uses: actions/setup-node@v3
27+
with:
28+
cache: 'npm'
29+
node-version-file: '.nvmrc'
30+
31+
- name: Install Dependencies
32+
run: npm ci
33+
34+
- name: Run build
35+
run: npm run build presto-client
36+
37+
check-format:
38+
name: Check Format
39+
40+
runs-on: ubuntu-latest
41+
42+
steps:
43+
- name: Fetch Git entire history for all branches and tags
44+
uses: actions/checkout@v3
45+
with:
46+
fetch-depth: 0
47+
ref: ${{ github.event.pull_request.head.ref }}
48+
49+
- name: Derive appropriate SHAs for base and head for `nx affected` commands
50+
uses: nrwl/nx-set-shas@v2
51+
52+
- name: Setup Node.js
53+
uses: actions/setup-node@v3
54+
with:
55+
cache: 'npm'
56+
node-version-file: '.nvmrc'
57+
58+
- name: Install Dependencies
59+
run: npm ci
60+
61+
- name: Check format
62+
run: npm run format:check
63+
64+
lint:
65+
name: Lint
66+
67+
runs-on: ubuntu-latest
68+
69+
steps:
70+
- name: Fetch Git entire history for all branches and tags
71+
uses: actions/checkout@v3
72+
with:
73+
fetch-depth: 0
74+
ref: ${{ github.event.pull_request.head.ref }}
75+
76+
- name: Derive appropriate SHAs for base and head for `nx affected` commands
77+
uses: nrwl/nx-set-shas@v2
78+
79+
- name: Setup Node.js
80+
uses: actions/setup-node@v3
81+
with:
82+
cache: 'npm'
83+
node-version-file: '.nvmrc'
84+
85+
- name: Install Dependencies
86+
run: npm ci
87+
88+
- name: Run lint
89+
run: npm run lint presto-client
90+
91+
test:
92+
name: Test
93+
94+
runs-on: ubuntu-latest
95+
96+
steps:
97+
- name: Fetch Git entire history for all branches and tags
98+
uses: actions/checkout@v3
99+
with:
100+
fetch-depth: 0
101+
ref: ${{ github.event.pull_request.head.ref }}
102+
103+
- name: Derive appropriate SHAs for base and head for `nx affected` commands
104+
uses: nrwl/nx-set-shas@v2
105+
106+
- name: Setup Node.js
107+
uses: actions/setup-node@v3
108+
with:
109+
cache: 'npm'
110+
node-version-file: '.nvmrc'
111+
112+
- name: Install Dependencies
113+
run: npm ci
114+
115+
- name: Run tests
116+
run: npm run test presto-client

.gitignore

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# Compiled output
4+
/dist
5+
/tmp
6+
7+
# Dependencies
8+
/node_modules
9+
node_modules
10+
11+
# Env Files
12+
*.env*
13+
14+
# Misc
15+
npm-debug.log
16+
17+
# System Files
18+
.DS_Store
19+
Thumbs.db

.husky/commit-msg

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+
npx --no-install commitlint --edit $1

.nvmrc

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

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Add files here to ignore them from prettier formatting
2+
3+
# Compiled output
4+
/coverage
5+
/dist
6+
7+
# Semantic Release
8+
CHANGELOG.md

.prettierrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"arrowParens": "avoid",
3+
"endOfLine": "lf",
4+
"jsxSingleQuote": true,
5+
"printWidth": 110,
6+
"proseWrap": "preserve",
7+
"quoteProps": "as-needed",
8+
"semi": false,
9+
"singleQuote": true,
10+
"tabWidth": 2,
11+
"trailingComma": "all",
12+
"useTabs": false
13+
}

0 commit comments

Comments
 (0)