Skip to content

Commit 87dee63

Browse files
committed
chore: update in setup
1 parent 2fee784 commit 87dee63

17 files changed

+8481
-31
lines changed

.codeclimate.json

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{
2+
"version": "2",
3+
"exclude_patterns": [
4+
"config/",
5+
"db/",
6+
"dist/",
7+
"features/",
8+
"**/node_modules/",
9+
"script/",
10+
"**/spec/",
11+
"**/test/",
12+
"**/tests/",
13+
"Tests/",
14+
"**/vendor/",
15+
"**/*_test.go",
16+
"**/*.d.ts",
17+
"**/*.spec.ts",
18+
".circleci/*",
19+
".editorconfig",
20+
".eslintrc",
21+
".github/*",
22+
".husky/*",
23+
".gitiginore",
24+
".npmignore",
25+
".prettierignore",
26+
".prettierrc.json",
27+
".travis.yml",
28+
".vscode/*",
29+
"CHANGELOG.md",
30+
"LICENSE",
31+
"README.md",
32+
"jest.config.js",
33+
"jest.html.config.js",
34+
"tsconfig.json",
35+
"tsconfig.module.json",
36+
"tslint.json",
37+
"yarn.lock",
38+
"package.json",
39+
".gitignore",
40+
".codeclimate.json"
41+
]
42+
}

.dependabot/config.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: 1
2+
update_configs:
3+
- package_manager: "javascript"
4+
directory: "/"
5+
update_schedule: "daily"
6+
commit_message:
7+
prefix: "fix"
8+
prefix_development: "chore"
9+
include_scope: true

.github/CONTRIBUTING.md

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Example Contributing Guidelines
2+
3+
This is an example of GitHub's contributing guidelines file. Check out GitHub's [CONTRIBUTING.md help center article](https://help.github.com/articles/setting-guidelines-for-repository-contributors/) for more information.

.github/ISSUE_TEMPLATE.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
* **I'm submitting a ...**
2+
[ ] bug report
3+
[ ] feature request
4+
[ ] question about the decisions made in the repository
5+
[ ] question about how to use this project
6+
7+
* **Summary**
8+
9+
10+
11+
* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. StackOverflow, personal fork, etc.)

.github/PULL_REQUEST_TEMPLATE.md

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
* **What kind of change does this PR introduce?** (Bug fix, feature, docs update, ...)
2+
3+
4+
5+
* **What is the current behavior?** (You can also link to an open issue here)
6+
7+
8+
9+
* **What is the new behavior (if this is a feature change)?**
10+
11+
12+
13+
* **Other information**:

.github/dependabot.yml

+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: "/"
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
ignore:
9+
- dependency-name: ts-loader
10+
versions:
11+
- 8.0.15
12+
- 8.0.16
13+
- 8.0.17
14+
- 8.0.18
15+
- 8.1.0
16+
- 9.0.0
17+
- 9.1.0
18+
- dependency-name: typedoc
19+
versions:
20+
- 0.20.20
21+
- 0.20.23
22+
- 0.20.24
23+
- 0.20.25
24+
- 0.20.27
25+
- 0.20.28
26+
- 0.20.29
27+
- 0.20.30
28+
- 0.20.32
29+
- 0.20.33
30+
- 0.20.34
31+
- 0.20.35
32+
- dependency-name: "@types/jest"
33+
versions:
34+
- 26.0.20
35+
- 26.0.21
36+
- 26.0.22
37+
- dependency-name: ts-jest
38+
versions:
39+
- 26.5.0
40+
- 26.5.1
41+
- 26.5.2
42+
- 26.5.3
43+
- 26.5.4
44+
- dependency-name: standard-version
45+
versions:
46+
- 9.1.1
47+
- dependency-name: typescript
48+
versions:
49+
- 4.1.4
50+
commit-message:
51+
prefix: fix
52+
prefix-development: chore
53+
include: scope

.github/workflows/ci-master.yml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI Master
2+
on:
3+
push:
4+
branches: [master, main]
5+
6+
jobs:
7+
test_and_publish:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
packages: write # allow GITHUB_TOKEN to publish packages
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v3
15+
with:
16+
node-version: 22
17+
- run: npm install
18+
- run: npm run check
19+
- run: npm run build
20+
- uses: paambaati/[email protected]
21+
env:
22+
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
23+
with:
24+
coverageCommand: npm run test
25+
coverageLocations: |
26+
${{github.workspace}}/coverage/lcov.info:lcov
27+
- uses: JS-DevTools/npm-publish@v3
28+
id: publish
29+
with:
30+
token: ${{ secrets.NPM_TOKEN }}
31+
- if: ${{ steps.publish.outputs.type }}
32+
run: echo "Version changed!"

.github/workflows/ci-pr.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: CI PR
2+
on: pull_request
3+
4+
jobs:
5+
test:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: actions/setup-node@v3
10+
with:
11+
node-version: 22
12+
- run: npm install
13+
- run: npm run check
14+
- run: npm run test
15+
- run: npm run build
16+
17+
automerge:
18+
needs: test
19+
runs-on: ubuntu-latest
20+
permissions:
21+
pull-requests: write
22+
contents: write
23+
steps:
24+
- uses: fastify/github-action-merge-dependabot@v3

.gitignore

+1-3
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,12 @@ dist
44
test
55
src/**.js
66
.idea/*
7-
.history
7+
.history/*
88
yarn-error.log
99

1010
coverage
1111
.nyc_output
1212
*.log
1313

14-
package-lock.json
15-
1614
.DS_Store
1715
README.pdf

.husky/pre-commit

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
npm run check
2+
npm run test
3+
git update-index --again

.npmignore

+25-17
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,30 @@
1-
src
2-
test
3-
**/__test__/
4-
**/__tests__/
5-
tsconfig.json
6-
tsconfig.module.json
7-
.eslint*
8-
.husky
9-
.travis.yml
1+
**/*.spec.*
2+
*.log
3+
.circleci
4+
.codeclimate.json
5+
.dependabot
6+
.editorconfig
7+
.git
8+
.gitignore
9+
.eslintrc
1010
.github
11+
.history
12+
.idea
13+
.nyc_output
1114
.prettierignore
15+
.prettierrc.json
16+
.travis.yml
17+
.yarnrc.yml
1218
.vscode
13-
.idea
19+
.yarn
20+
README.pdf
1421
build/docs
15-
**/*.spec.*
1622
coverage
17-
.nyc_output
18-
*.log
19-
README.pdf
20-
.DS_Store
21-
.circleci
22-
.dependabot
23+
jest.config.js
24+
jest.html.config.js
25+
src
26+
test
27+
tsconfig.json
28+
tsconfig.module.json
29+
tslint.json
30+
yarn.lock

.vscode/extensions.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"recommendations": ["editorconfig.editorconfig"]
3+
}

.vscode/settings.json

+17-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,23 @@
77
"editor.defaultFormatter": "biomejs.biome"
88
},
99
"cSpell.language": "en-GB",
10-
"cSpell.words": ["commitlint", "eturino", "tsup"]
10+
"cSpell.words": [
11+
"commitlint",
12+
"Downcoder",
13+
"falsey",
14+
"lcov",
15+
"parameterize",
16+
"parameterizes",
17+
"plandek",
18+
"tsup",
19+
"Turiño"
20+
],
21+
"[javascript]": {
22+
"editor.defaultFormatter": "biomejs.biome"
23+
},
24+
"[typescript]": {
25+
"editor.defaultFormatter": "biomejs.biome"
26+
}
1127
// "typescript.implementationsCodeLens.enabled": true
1228
// "typescript.referencesCodeLens.enabled": true
1329
}

0 commit comments

Comments
 (0)