Skip to content

Commit

Permalink
BZ-12558: feat: initialised base project for zephyr-sdk-react
Browse files Browse the repository at this point in the history
- initialized a basic typescript project with rollup for sdk
- added husky, prettier, eslint & other toolings for workflow
  • Loading branch information
sinha-sahil committed Jan 28, 2024
0 parents commit 55556bf
Show file tree
Hide file tree
Showing 19 changed files with 10,440 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
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
8 changes: 8 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
node_modules/
dist/
build/
examples/
coverage/
*.config.js
*.json
*.md
22 changes: 22 additions & 0 deletions .eslintrc.yml
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
9 changes: 9 additions & 0 deletions .gitignore
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/
3 changes: 3 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

./scripts/commit-msg.sh
3 changes: 3 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

./scripts/pre-commit.sh
3 changes: 3 additions & 0 deletions .husky/pre-push
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

./scripts/pre-push.sh
3 changes: 3 additions & 0 deletions .husky/prepare-commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

./scripts/prepare-commit-msg.sh
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"useTabs": false,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100
}
152 changes: 152 additions & 0 deletions package.json
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)"
}
}
}
Loading

0 comments on commit 55556bf

Please sign in to comment.