Skip to content

Commit c078a53

Browse files
committed
feat: the pilot
0 parents  commit c078a53

21 files changed

+4873
-0
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/config@3.0.3/schema.json",
3+
"changelog": [
4+
"@changesets/changelog-github",
5+
{ "repo": "ITZSHOAIB/typescript-package-boilerplate" }
6+
],
7+
"commit": false,
8+
"fixed": [],
9+
"linked": [],
10+
"access": "public",
11+
"baseBranch": "main",
12+
"updateInternalDependencies": "patch",
13+
"ignore": []
14+
}

.github/dependabot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
- package-ecosystem: "npm"
8+
directory: "/"
9+
schedule:
10+
interval: "weekly"

.github/pull_request_template.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!--- Provide a general summary of your changes in the Title above -->
2+
3+
# Description
4+
<!-- Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change. -->
5+
6+
## Related Issues
7+
<!-- Link to any GitHub issues being addressed in this PR: -->
8+
9+
- Issue:
10+
11+
## Type of changes
12+
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
13+
14+
- [ ] Bug fix (non-breaking change which fixes an issue)
15+
- [ ] New feature (non-breaking change which adds functionality)
16+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
17+
- [ ] This change requires a documentation update
18+
19+
## Checklist:
20+
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
21+
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
22+
23+
- [ ] I have checked that there isn't already a PR that solves the problem the same way.
24+
- [ ] My code follows the code style of this project.
25+
- [ ] My change requires a change to the documentation.
26+
- [ ] I have updated the documentation accordingly.
27+
- [ ] I have read the [**CONTRIBUTING**](https://github.com/ITZSHOAIB/hashtegrity/blob/master/.github/CONTRIBUTING.md) document.
28+
- [ ] I have included a **changeset** according to the type of my changes
29+
- [ ] I have added tests to cover my changes.
30+
- [ ] All new and existing tests passed.
31+
32+
33+
## Additional Context or Notes
34+
<!-- Please add any additional information that would help a reviewer understand the PR. -->
35+
36+
- **Is there anything specific the reviewer should focus on?**

.github/workflows/pre-checks.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Checks
2+
on:
3+
workflow_call:
4+
workflow_dispatch:
5+
6+
jobs:
7+
lint:
8+
name: Lint
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v4
13+
14+
- name: Setup pnpm
15+
uses: pnpm/action-setup@v4
16+
17+
- name: Setup Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version: 22
21+
cache: "pnpm"
22+
23+
- name: Install dependencies
24+
run: pnpm install --frozen-lockfile
25+
26+
- name: Lint
27+
run: pnpm lint
28+
29+
- name: Auto Commit
30+
if: github.ref != 'refs/heads/main'
31+
uses: stefanzweifel/git-auto-commit-action@v5
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
with:
35+
commit_message: 'chore: format'
36+
commit_user_name: 'github-actions[bot]'
37+
commit_user_email: 'github-actions[bot]@users.noreply.github.com'
38+
39+
build:
40+
name: Build
41+
runs-on: ubuntu-latest
42+
steps:
43+
- name: Checkout
44+
uses: actions/checkout@v4
45+
46+
- name: Setup pnpm
47+
uses: pnpm/action-setup@v4
48+
49+
- name: Setup Node.js
50+
uses: actions/setup-node@v4
51+
with:
52+
node-version: 22
53+
cache: "pnpm"
54+
55+
- name: Install dependencies
56+
run: pnpm install --frozen-lockfile
57+
58+
- name: Build
59+
run: pnpm build
60+
61+
- name: Typecheck
62+
run: pnpm typecheck
63+
64+
test:
65+
name: Test
66+
runs-on: ubuntu-latest
67+
steps:
68+
- name: Checkout
69+
uses: actions/checkout@v4
70+
71+
- name: Setup pnpm
72+
uses: pnpm/action-setup@v4
73+
74+
- name: Setup Node.js
75+
uses: actions/setup-node@v4
76+
with:
77+
node-version: 22
78+
cache: "pnpm"
79+
80+
- name: Install dependencies
81+
run: pnpm install --frozen-lockfile
82+
83+
- name: Test
84+
run: pnpm test:ci

.github/workflows/publish-on-main.yml

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
name: Publish
2+
on:
3+
push:
4+
branches:
5+
- "main"
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
jobs:
12+
checks:
13+
# Remove this line to enable the job
14+
if: ${{ false }}
15+
name: Checks
16+
uses: ./.github/workflows/pre-checks.yml
17+
secrets: inherit
18+
19+
publish:
20+
# Remove this line to enable the job
21+
if: ${{ false }}
22+
name: Publish
23+
needs: checks
24+
runs-on: ubuntu-latest
25+
steps:
26+
- name: Checkout
27+
uses: actions/checkout@v4
28+
with:
29+
fetch-depth: 0
30+
31+
- name: Setup pnpm
32+
uses: pnpm/action-setup@v4
33+
34+
- name: Setup Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 22
38+
cache: "pnpm"
39+
40+
- name: Install dependencies
41+
run: pnpm install --frozen-lockfile
42+
43+
- name: Create Release Pull Request or Publish
44+
id: changesets
45+
uses: changesets/action@v1
46+
with:
47+
publish: pnpm changeset:publish
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/pull-request.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Pull Request
2+
on:
3+
pull_request:
4+
types: [opened, synchronize, reopened, ready_for_review]
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
checks:
12+
# Remove this line to enable the job
13+
if: ${{ false }}
14+
name: Checks
15+
uses: ./.github/workflows/pre-checks.yml
16+
secrets: inherit

.gitignore

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

.npmignore

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

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
auto-install-peers=false

0 commit comments

Comments
 (0)