Skip to content

Commit 15a7fdb

Browse files
feat: first commit
0 parents  commit 15a7fdb

52 files changed

Lines changed: 5229 additions & 0 deletions

Some content is hidden

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

.commitlintrc.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": ["@commitlint/config-angular"],
3+
"rules": {
4+
"body-max-line-length": [1, "always", 120],
5+
"subject-case": [2, "always", ["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case"]],
6+
"type-enum": [
7+
2,
8+
"always",
9+
["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test", "sample"]
10+
]
11+
}
12+
}

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 4
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = false
12+
insert_final_newline = false

.gitattributes

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# JS and TS files must always use LF for tools to work
5+
*.js eol=lf
6+
*.ts eol=lf

.github/dependabot.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
rebase-strategy: "auto"
5+
directory: "/"
6+
schedule:
7+
interval: daily
8+
time: '09:00'
9+
timezone: 'Africa/Nairobi'
10+
assignees:
11+
- 'josephgodwinkimani'
12+
- package-ecosystem: npm
13+
rebase-strategy: "auto"
14+
directory: "/"
15+
schedule:
16+
interval: daily
17+
time: '09:00'
18+
timezone: 'Africa/Nairobi'
19+
assignees:
20+
- 'josephgodwinkimani'
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3+
4+
name: Continuous Integration
5+
6+
on:
7+
push:
8+
branches: [main]
9+
pull_request:
10+
branches: [main]
11+
12+
jobs:
13+
build:
14+
runs-on: ubuntu-latest
15+
16+
strategy:
17+
matrix:
18+
node-version: [20.15.0]
19+
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v4
25+
- name: Setup Node.js and pnpm
26+
uses: pnpm/action-setup@v2
27+
with:
28+
version: 9
29+
- run: pnpm install --no-frozen-lockfile
30+
- run: pnpm run format
31+
- run: pnpm run build

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# OS
2+
.DS_Store
3+
.idea
4+
.env
5+
6+
# IDEs and editors
7+
/.idea
8+
.project
9+
.classpath
10+
.c9/
11+
*.launch
12+
.settings/
13+
*.sublime-workspace
14+
15+
# IDE - VSCode
16+
.vscode/*
17+
!.vscode/settings.json
18+
!.vscode/tasks.json
19+
!.vscode/launch.json
20+
!.vscode/extensions.json
21+
22+
# compiled output
23+
/dist
24+
/node_modules
25+
/lib
26+
27+
# Logs
28+
logs
29+
*.log
30+
npm-debug.log*
31+
yarn-debug.log*
32+
yarn-error.log*
33+
34+
# Tests
35+
/coverage
36+
/.nyc_output
37+
38+
# Examples
39+
!examples/simple/

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
pnpm dlx commitlint --edit $1

.husky/install.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Skip Husky install in production and CI
2+
if (process.env.NODE_ENV === 'production' || process.env.CI === 'true') {
3+
process.exit(0)
4+
}
5+
const husky = (await import('husky')).default
6+
console.log(husky())

.husky/pre-commit

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+
./node_modules/.bin/lint-staged

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
node_modules/**
2+
lib/**

0 commit comments

Comments
 (0)