Skip to content

Commit 5e4c678

Browse files
Merge pull request #38 from KeyValueSoftwareSystems/develop
Release v1.0.0 - Initial release
2 parents 6c2565b + 98457e7 commit 5e4c678

File tree

129 files changed

+24776
-37071
lines changed

Some content is hidden

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

129 files changed

+24776
-37071
lines changed

.eslintrc

Lines changed: 0 additions & 24 deletions
This file was deleted.

.eslintrc.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"browser": true,
5+
"es2020": true
6+
},
7+
"extends": [
8+
"eslint:recommended",
9+
"plugin:@typescript-eslint/recommended",
10+
"plugin:react-hooks/recommended",
11+
"plugin:react/recommended",
12+
"plugin:react/jsx-runtime",
13+
"prettier"
14+
],
15+
"ignorePatterns": ["dist", ".eslintrc.json"],
16+
"parser": "@typescript-eslint/parser",
17+
"parserOptions": {
18+
"project": ["./tsconfig.json", "./tsconfig.test.json"],
19+
"ecmaVersion": "latest",
20+
"sourceType": "module"
21+
},
22+
"plugins": ["react-refresh", "react", "@typescript-eslint"],
23+
"rules": {
24+
"react-refresh/only-export-components": [
25+
"warn",
26+
{ "allowConstantExport": true }
27+
],
28+
"react/react-in-jsx-scope": "off"
29+
},
30+
"settings": {
31+
"react": {
32+
"version": "detect"
33+
}
34+
}
35+
}

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
This template outlines the recommended format for creating pull requests within this project. Please fill out all sections before submitting your PR
2+
3+
## Branch Naming:
4+
5+
- Use a descriptive branch name that reflects the change and follows the format: [type]/[brief-description]
6+
- Replace [type] with feature, fix, refactor, hotfix, or other relevant categories
7+
- Keep the description concise and clear
8+
9+
## Commit Guidelines:
10+
11+
- Adhere to the "scope:subject" commit message structure
12+
- Scope can be feat, fix, docs, test, refactor, build, format, etc.
13+
- Use imperative tense (e.g., "fix: User unable to login")
14+
## Pull Request Checklist:
15+
16+
[ ] **Read the contributing guidelines** <br />
17+
[ ] **Branch is up-to-date with the base branch: main (or other designated branch)**<br />
18+
[ ] **Changes pass all tests: npm test or yarn test (or equivalent command)**<br />
19+
[ ] **Documentation has been updated (if applicable)**<br />
20+
## Description:
21+
- Start your pull request summary with a clear and informative heading. Use the Markdown syntax `##` for the heading, like `## Your Heading Here`.
22+
- For the section detailing the changes introduced by this pull request, use the Markdown heading `## Changes`.
23+
- Briefly describe the changes introduced in this pull request.Ensure that the changelog has been updated accordingly
24+
- Explain the motivation and the problem it solves
25+
- Mention any breaking changes
26+
- Link to related issues or internal tickets
27+
## Additional Notes:
28+
29+
- Include any other relevant information, such as limitations, known issues, or future improvements.
30+
## Screenshots (if applicable):
31+
32+
- Add screenshots or GIFs to help visualize your changes.
33+
## Testing Instructions:
34+
35+
- Provide step-by-step instructions on how to test your changes
36+
## Checklist for Reviewers:
37+
38+
[ ] **Code follows project conventions and style guidelines**<br />
39+
[ ] **Changes do not introduce new warnings or errors**<br />
40+
[ ] **Unit tests cover the changes adequately**<br />
41+
[ ] **Documentation is updated correctly and reflects the changes**<br />
42+
Additional Information:
43+
44+
By submitting this pull request, I confirm that my contribution is made under the terms of the MIT License.

.github/workflows/test-and-build.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ name: Test Suite
22

33
on:
44
pull_request:
5-
branches: [master]
5+
branches: [main, develop]
66

77
jobs:
88
test-and-build:
99
runs-on: ubuntu-latest
1010
strategy:
1111
matrix:
12-
node-version: [16.x]
12+
node-version: [18.x]
1313
steps:
1414
- name: Checkout code
1515
uses: actions/checkout@v2
@@ -26,10 +26,10 @@ jobs:
2626
run: npm install
2727

2828
- name: Linting
29-
run: npm run eslint
30-
31-
- name: Run tests
29+
run: npm run lint
30+
31+
- name: Test cases
3232
run: npm run test
3333

3434
- name: Build
35-
run: npm run build
35+
run: npm run build

.github/workflows/update-and-publish.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node.js
2424
uses: actions/setup-node@v2
2525
with:
26-
node-version: 16.x
26+
node-version: 18.x
2727
scope: '@keyvaluesystems'
2828

2929
- name: Install dependencies
@@ -43,22 +43,19 @@ jobs:
4343
shell: bash
4444
run: |
4545
BRANCH="${GITHUB_REF#refs/heads/}"
46-
if [ "$BRANCH" == 'master' ]
46+
if [ "$BRANCH" == 'main' ]
4747
then
4848
echo "Branch validation Successful"
4949
else
50-
echo "Releases only taken from master branch"
50+
echo "Releases only taken from main branch"
5151
exit 1
5252
fi
53-
5453
- name: Get Latest version from package.json
5554
run: |
5655
# Get the latest version from package.json
5756
LATEST_VERSION=$(node -p "require('./package.json').version")
58-
5957
# Output the latest version as a workflow env
6058
echo "latest_version=$LATEST_VERSION" >> $GITHUB_ENV
61-
6259
- name: Get new version
6360
id: get_next_version
6461
uses: christian-draeger/[email protected]
@@ -70,14 +67,12 @@ jobs:
7067
run: |
7168
OLD_VERSION=${{ env.latest_version }}
7269
NEW_VERSION=${{ steps.get_next_version.outputs.next-version }}
73-
7470
npm version $NEW_VERSION --no-git-tag-version
7571
git config user.name github-actions
7672
git config user.email [email protected]
7773
git add package.json package-lock.json
7874
git commit -m "Bump version from $OLD_VERSION to $NEW_VERSION"
79-
git push origin HEAD:master
80-
75+
git push origin HEAD:main
8176
- name: Build Package
8277
run: npm run build
8378

@@ -90,7 +85,7 @@ jobs:
9085
# Revert package.json and package-lock.json to the previous version
9186
npm version ${{ env.latest_version }} --no-git-tag-version
9287
git commit -am "Revert to version ${{ env.latest_version }}"
93-
git push origin HEAD:master
88+
git push origin HEAD:main
9489
if: failure()
9590

9691
- name: Create GitHub release

.gitignore

Lines changed: 23 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,26 @@
1-
# These are some examples of commonly ignored file patterns.
2-
# You should customize this list as applicable to your project.
3-
# Learn more about .gitignore:
4-
# https://www.atlassian.com/git/tutorials/saving-changes/gitignore
5-
6-
# Node artifact files
7-
node_modules/
8-
dist/
9-
10-
# Compiled Java class files
11-
*.class
12-
13-
# Compiled Python bytecode
14-
*.py[cod]
15-
16-
# Log files
1+
# Logs
2+
logs
173
*.log
18-
19-
# Package files
20-
*.jar
21-
22-
# Maven
23-
target/
24-
dist/
25-
26-
# JetBrains IDE
27-
.idea/
28-
29-
# Unit test reports
30-
TEST*.xml
31-
32-
# Generated by MacOS
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
.idea
3319
.DS_Store
20+
*.suo
21+
*.ntvs*
22+
*.njsproj
23+
*.sln
24+
*.sw?
3425

35-
# Generated by Windows
36-
Thumbs.db
37-
38-
# Applications
39-
*.app
40-
*.exe
41-
*.war
42-
43-
# Large media files
44-
*.mp4
45-
*.tiff
46-
*.avi
47-
*.flv
48-
*.mov
49-
*.wmv
50-
51-
/node_modules
52-
/build
26+
coverage

.husky/pre-commit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
npm run lint

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.storybook/main.js

Lines changed: 0 additions & 15 deletions
This file was deleted.

.storybook/preview.js

Lines changed: 0 additions & 9 deletions
This file was deleted.

0 commit comments

Comments
 (0)