-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BZ-12558: feat: initialised base project for zephyr-sdk-react
- initialized a basic typescript project with rollup for sdk - added husky, prettier, eslint & other toolings for workflow
- Loading branch information
0 parents
commit 55556bf
Showing
19 changed files
with
10,440 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# Editor configuration, see https://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
node_modules/ | ||
dist/ | ||
build/ | ||
examples/ | ||
coverage/ | ||
*.config.js | ||
*.json | ||
*.md |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
env: | ||
browser: true | ||
es2021: true | ||
extends: standard-with-typescript | ||
parserOptions: | ||
ecmaVersion: latest | ||
sourceType: module | ||
|
||
rules: | ||
'@typescript-eslint/semi': 'off' | ||
'@typescript-eslint/space-before-function-paren': 'off' | ||
'@typescript-eslint/member-delimiter-style': | ||
- error | ||
- multiline: | ||
delimiter: 'semi' | ||
requireLast: true | ||
singleline: | ||
delimiter: 'semi' | ||
requireLast: false | ||
'@typescript-eslint/consistent-type-definitions': | ||
- error | ||
- type |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.DS_Store | ||
/**/node_modules/ | ||
/**/.idea/ | ||
/**/.vscode/ | ||
/**/package-lock.json | ||
/**/dist/ | ||
/package/ | ||
/examples/output | ||
/**/.pnpm-store/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
./scripts/commit-msg.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
./scripts/pre-commit.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
./scripts/pre-push.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
|
||
./scripts/prepare-commit-msg.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"useTabs": false, | ||
"singleQuote": true, | ||
"trailingComma": "none", | ||
"printWidth": 100 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
{ | ||
"name": "@juspay/zephyr-sdk-react", | ||
"version": "0.0.1", | ||
"type": "module", | ||
"description": "SDK for integrating Breeze 1CCO into your React Native Application", | ||
"keywords": [ | ||
"react", | ||
"react-native", | ||
"sdk", | ||
"breeze", | ||
"1cco", | ||
"1CCO", | ||
"one click checkout", | ||
"one click", | ||
"juspay" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/juspay/zephyr-sdk-react.git" | ||
}, | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"dev": "npx tsc --watch", | ||
"build": "rollup --config rollup.config.js", | ||
"format:all": "npx prettier --write .", | ||
"lint:all": "eslint . --ext .ts" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^18.4.2", | ||
"@commitlint/config-conventional": "^18.4.2", | ||
"@digitalroute/cz-conventional-changelog-for-jira": "^8.0.1", | ||
"@rollup/plugin-typescript": "^11.1.6", | ||
"@types/react": "^18.2.48", | ||
"@typescript-eslint/eslint-plugin": "^6.11.0", | ||
"@typescript-eslint/parser": "^6.11.0", | ||
"commitizen": "^4.3.0", | ||
"commitlint-config-jira": "^1.6.4", | ||
"commitlint-plugin-jira-rules": "^1.6.4", | ||
"eslint": "^8.53.0", | ||
"eslint-config-prettier": "^9.0.0", | ||
"eslint-config-standard-with-typescript": "^43.0.1", | ||
"husky": "^8.0.3", | ||
"prettier": "^3.1.0", | ||
"publint": "^0.2.5", | ||
"react": "^18.2.0", | ||
"react-native": "^0.73.2", | ||
"react-native-webview": "^13.6.4", | ||
"rollup": "^4.9.6", | ||
"tslib": "^2.6.2", | ||
"type-decoder": "^1.2.0", | ||
"typescript": "^5.2.2" | ||
}, | ||
"peerDependencies": { | ||
"react": "^18.2.0", | ||
"react-native": "^0.73.2", | ||
"react-native-webview": "^13.6.4" | ||
}, | ||
"config": { | ||
"commitizen": { | ||
"path": "./node_modules/@digitalroute/cz-conventional-changelog-for-jira", | ||
"jiraPrefix": "BZ", | ||
"jiraLocation": "pre-type", | ||
"jiraAppend": ":" | ||
} | ||
}, | ||
"standard-version": { | ||
"skip": { | ||
"commit": true, | ||
"changelog": true | ||
}, | ||
"types": [ | ||
{ | ||
"type": "feat", | ||
"section": "Features", | ||
"release": "minor" | ||
}, | ||
{ | ||
"type": "fix", | ||
"section": "Bug Fixes", | ||
"release": "minor" | ||
}, | ||
{ | ||
"type": "test", | ||
"section": "Tests" | ||
}, | ||
{ | ||
"type": "build", | ||
"section": "Build System" | ||
}, | ||
{ | ||
"type": "docs", | ||
"section": "Documentation" | ||
}, | ||
{ | ||
"type": "style", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "refactor", | ||
"section": "Improvements" | ||
}, | ||
{ | ||
"type": "perf", | ||
"section": "Improvements" | ||
}, | ||
{ | ||
"type": "ci", | ||
"hidden": true | ||
}, | ||
{ | ||
"type": "chore", | ||
"hidden": true | ||
} | ||
], | ||
"issuePrefixes": [ | ||
"BZ-" | ||
], | ||
"issueUrlFormat": "https://juspay.atlassian.net/browse/{{prefix}}{{id}}", | ||
"commitUrlFormat": "https://github.com/juspay/zephyr-sdk-react/commits/{{hash}}", | ||
"compareUrlFormat": "https://github.com/juspay/zephyr-sdk-react/branches/compare/{{currentTag}}%0D{{previousTag}}", | ||
"releaseCommitMessageFormat": "chore(release): {{currentTag}} {{prefix}}{{id}}" | ||
}, | ||
"commitlint": { | ||
"plugins": [ | ||
"commitlint-plugin-jira-rules" | ||
], | ||
"extends": [ | ||
"jira" | ||
], | ||
"rules": { | ||
"jira-task-id-max-length": [ | ||
0 | ||
] | ||
} | ||
}, | ||
"auto-changelog": { | ||
"output": "docs/CHANGELOG.md", | ||
"template": "./docs/templates/changelog.hbs", | ||
"commitLimit": false, | ||
"breakingPattern": "(!:)", | ||
"issueUrl": "https://juspay.atlassian.net/browse/{id}", | ||
"issuePattern": "[A-Z]{2,}-\\d+", | ||
"compareUrl": "https://github.com/juspay/zephyr-sdk/compare/{to}..{from}", | ||
"unreleased": true, | ||
"releaseSummary": true, | ||
"hideCredit": false, | ||
"ignoreCommitPattern": "(\\[skip ci\\])", | ||
"replaceText": { | ||
"(ABC-\\d+)": "[`$1`](https://juspay.atlassian.net/browse/$1)" | ||
} | ||
} | ||
} |
Oops, something went wrong.