Skip to content

Commit fab24d9

Browse files
author
JungleRaja Dev
committed
Initial version
1 parent ca9ffc9 commit fab24d9

12 files changed

+15789
-0
lines changed

.eslintrc.json

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
3+
"parser": "@typescript-eslint/parser",
4+
"plugins": ["@typescript-eslint"],
5+
"ignorePatterns": ["*.d.ts"],
6+
"rules": {
7+
"@typescript-eslint/ban-ts-comment": "warn",
8+
"@typescript-eslint/no-explicit-any": "warn",
9+
"@typescript-eslint/no-loss-of-precision": "warn",
10+
"@typescript-eslint/no-misused-new": "warn",
11+
"@typescript-eslint/no-namespace": "warn",
12+
"@typescript-eslint/no-this-alias": "warn",
13+
"@typescript-eslint/no-unnecessary-type-constraint": "warn",
14+
"@typescript-eslint/no-unsafe-declaration-merging": "warn",
15+
"@typescript-eslint/no-unused-vars": "warn",
16+
"@typescript-eslint/no-var-requires": "warn",
17+
"@typescript-eslint/triple-slash-reference": "warn",
18+
"@typescript-eslint/no-unsafe-function-type": "off",
19+
"no-async-promise-executor": "warn",
20+
"no-control-regex": "warn",
21+
"no-empty": "warn",
22+
"no-extra-semi": "warn",
23+
"no-prototype-builtins": "warn",
24+
"no-regex-spaces": "warn",
25+
"prefer-const": "warn",
26+
"prefer-rest-params": "warn",
27+
"prefer-spread": "warn"
28+
}
29+
}

.github/workflows/main.yaml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- "**"
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- name: Use node.js
13+
uses: actions/setup-node@v4
14+
with:
15+
node-version: '20.x'
16+
cache: "npm"
17+
18+
- name: Install dependencies and build
19+
run: npm ci

.github/workflows/publish.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Publish
2+
on:
3+
workflow_run:
4+
workflows: [CI]
5+
branches: [main]
6+
types: [completed]
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
14+
jobs:
15+
publish:
16+
if: ${{ github.event.workflow_run.conclusion == 'success' }}
17+
runs-on: ubuntu-latest
18+
steps:
19+
- uses: actions/checkout@v3
20+
- uses: pnpm/action-setup@v2
21+
with:
22+
version: 7
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: 20.x
26+
cache: "npm"
27+
28+
- run: npm install
29+
- name: Create Release Pull Request or Publish
30+
id: changesets
31+
uses: changesets/action@v1
32+
with:
33+
publish: npm run release
34+
env:
35+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
.nyc_output/
2+
.DS_Store
3+
.vscode/
4+
.idea/
5+
build/
6+
dist/
7+
coverage/
8+
node_modules/
9+
/ormconfig.json
10+
ormlogs.log
11+
npm-debug.log
12+
/test/github-issues/799/tmp/*
13+
# test projects generated by test/github-issues/issue-8975.ts
14+
/*TestProject
15+
# ignore yarn2 artifacts but allow yarn.lock (forces yarn1 compat which is node_modules)
16+
.yarn/
17+
.yarn*
18+
*.iml

.prettierrc.json

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": false,
3+
"singleQuote": true,
4+
"arrowParens": "avoid"
5+
}

0 commit comments

Comments
 (0)