Skip to content

Commit 22ba62b

Browse files
committed
chore(): initial commit
1 parent 559ad8c commit 22ba62b

Some content is hidden

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

50 files changed

+11276
-0
lines changed

.commitlintrc.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"extends": ["@commitlint/config-angular"],
3+
"rules": {
4+
"subject-case": [
5+
2,
6+
"always",
7+
["sentence-case", "start-case", "pascal-case", "upper-case", "lower-case"]
8+
],
9+
"type-enum": [
10+
2,
11+
"always",
12+
[
13+
"build",
14+
"chore",
15+
"ci",
16+
"docs",
17+
"feat",
18+
"fix",
19+
"perf",
20+
"refactor",
21+
"revert",
22+
"style",
23+
"test",
24+
"sample"
25+
]
26+
]
27+
}
28+
}

.eslintignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
src/**/*.test.ts
2+
src/**/files/**
3+
test/**
4+
*.spec.ts

.eslintrc.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: 'tsconfig.json',
5+
sourceType: 'module',
6+
},
7+
plugins: ['@typescript-eslint/eslint-plugin'],
8+
extends: [
9+
'plugin:@typescript-eslint/recommended',
10+
'plugin:prettier/recommended',
11+
],
12+
root: true,
13+
env: {
14+
node: true,
15+
jest: true,
16+
},
17+
ignorePatterns: ['.eslintrc.js'],
18+
rules: {
19+
'@typescript-eslint/interface-name-prefix': 'off',
20+
'@typescript-eslint/explicit-function-return-type': 'off',
21+
'@typescript-eslint/explicit-module-boundary-types': 'off',
22+
'@typescript-eslint/no-explicit-any': 'off',
23+
},
24+
};

.github/ISSUE_TEMPLATE/.gitkeep

Whitespace-only changes.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
## PR Checklist
2+
Please check if your PR fulfills the following requirements:
3+
4+
- [ ] The commit message follows our guidelines: https://github.com/themartiangeeks/nest-hasher/blob/main/CONTRIBUTING.md
5+
- [ ] Tests for the changes have been added (for bug fixes / features)
6+
- [ ] Docs have been added / updated (for bug fixes / features)
7+
8+
9+
## PR Type
10+
What kind of change does this PR introduce?
11+
12+
<!-- Please check the one that applies to this PR using "x". -->
13+
```
14+
[ ] Bugfix
15+
[ ] Feature
16+
[ ] Code style update (formatting, local variables)
17+
[ ] Refactoring (no functional changes, no api changes)
18+
[ ] Build related changes
19+
[ ] CI related changes
20+
[ ] Other... Please describe:
21+
```
22+
23+
## What is the current behavior?
24+
<!-- Please describe the current behavior that you are modifying, or link to a relevant issue. -->
25+
26+
Issue Number: N/A
27+
28+
29+
## What is the new behavior?
30+
31+
32+
## Does this PR introduce a breaking change?
33+
```
34+
[ ] Yes
35+
[ ] No
36+
```
37+
38+
<!-- If this PR contains a breaking change, please describe the impact and migration path for existing applications below. -->
39+
40+
41+
## Other information

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: RELEASER
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
jobs:
8+
Realeaser:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout source code
12+
uses: actions/checkout@v2
13+
14+
- name: Use NodeJS v16
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: 16
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Create new release
23+
env:
24+
GH_TOKEN: ${{secrets.GH_TOKEN}}
25+
run: npx semantic-release

.gitignore

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

.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 ""

.husky/pre-commit

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged
5+
npm run lint

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"trailingComma": "all"
4+
}

.releaserc.js

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
module.exports = {
2+
plugins: [
3+
'@semantic-release/commit-analyzer',
4+
'@semantic-release/github',
5+
[
6+
'@semantic-release/npm',
7+
{
8+
npmPublish: false,
9+
},
10+
],
11+
['@semantic-release/release-notes-generator'],
12+
[
13+
'@semantic-release/git',
14+
{
15+
assets: ['package.json'],
16+
message: 'chore(release): release ${nextRelease.version}',
17+
},
18+
],
19+
],
20+
branches: ['main'],
21+
preset: 'angular',
22+
};

0 commit comments

Comments
 (0)