-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from SimformSolutionsPvtLtd/develop
Release v1.0.0
- Loading branch information
Showing
19 changed files
with
639 additions
and
1 deletion.
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,3 @@ | ||
**/node_modules | ||
example/ | ||
lib/ |
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,130 @@ | ||
const OFF = 0; | ||
const WARN = 1; | ||
const ERROR = 2; | ||
|
||
module.exports = { | ||
extends: ['@react-native-community', 'prettier'], | ||
plugins: ['prettier'], | ||
root: true, | ||
ignorePatterns: ['.eslintrc.js'], | ||
rules: { | ||
'prettier/prettier': [ | ||
'error', | ||
{}, | ||
{ | ||
usePrettierrc: true, | ||
}, | ||
], | ||
'prefer-const': 'warn', | ||
'no-console': ['error', { allow: ['warn', 'error'] }], | ||
// General | ||
indent: [ | ||
OFF, | ||
2, | ||
{ | ||
SwitchCase: 1, | ||
VariableDeclarator: 1, | ||
outerIIFEBody: 1, | ||
FunctionDeclaration: { | ||
parameters: 1, | ||
body: 1, | ||
}, | ||
FunctionExpression: { | ||
parameters: 1, | ||
body: 1, | ||
}, | ||
flatTernaryExpressions: true, | ||
offsetTernaryExpressions: true, | ||
}, | ||
], | ||
'global-require': OFF, | ||
'no-plusplus': OFF, | ||
'no-cond-assign': OFF, | ||
'max-classes-per-file': [ERROR, 10], | ||
'no-shadow': OFF, | ||
'no-undef': OFF, | ||
'no-bitwise': OFF, | ||
'no-param-reassign': OFF, | ||
'no-use-before-define': OFF, | ||
'linebreak-style': [ERROR, 'unix'], | ||
semi: [ERROR, 'always'], | ||
'object-curly-spacing': [ERROR, 'always'], | ||
'eol-last': [ERROR, 'always'], | ||
'no-console': OFF, | ||
'no-restricted-syntax': [ | ||
WARN, | ||
{ | ||
selector: | ||
"CallExpression[callee.object.name='console'][callee.property.name!=/^(warn|error|info|trace|disableYellowBox|tron)$/]", | ||
message: 'Unexpected property on console object was called', | ||
}, | ||
], | ||
eqeqeq: [WARN, 'always'], | ||
quotes: [ | ||
ERROR, | ||
'single', | ||
{ avoidEscape: true, allowTemplateLiterals: false }, | ||
], | ||
// typescript | ||
'@typescript-eslint/no-shadow': [ERROR], | ||
'@typescript-eslint/no-use-before-define': [ERROR], | ||
'@typescript-eslint/no-unused-vars': ERROR, | ||
'@typescript-eslint/consistent-type-definitions': [ERROR, 'interface'], | ||
'@typescript-eslint/indent': [ | ||
OFF, | ||
2, | ||
{ | ||
SwitchCase: 1, | ||
VariableDeclarator: 1, | ||
outerIIFEBody: 1, | ||
FunctionDeclaration: { | ||
parameters: 1, | ||
body: 1, | ||
}, | ||
FunctionExpression: { | ||
parameters: 1, | ||
body: 1, | ||
}, | ||
flatTernaryExpressions: true, | ||
offsetTernaryExpressions: true, | ||
}, | ||
], | ||
// react | ||
'react/jsx-props-no-spreading': OFF, | ||
'react/jsx-filename-extension': [ | ||
ERROR, | ||
{ extensions: ['.js', '.jsx', '.ts', '.tsx'] }, | ||
], | ||
'react/no-unescaped-entities': [ERROR, { forbid: ['>', '"', '}'] }], | ||
'react/prop-types': [ | ||
ERROR, | ||
{ ignore: ['action', 'dispatch', 'nav', 'navigation'] }, | ||
], | ||
'react/display-name': OFF, | ||
'react/jsx-boolean-value': ERROR, | ||
'react/jsx-no-undef': ERROR, | ||
'react/jsx-uses-react': ERROR, | ||
'react/jsx-sort-props': [ | ||
ERROR, | ||
{ | ||
callbacksLast: true, | ||
shorthandFirst: true, | ||
ignoreCase: true, | ||
noSortAlphabetically: true, | ||
}, | ||
], | ||
'react/jsx-pascal-case': ERROR, | ||
'react/no-children-prop': OFF, | ||
// react-native specific rules | ||
'react-native/no-unused-styles': ERROR, | ||
'react-native/no-inline-styles': ERROR, | ||
'react-native/no-color-literals': ERROR, | ||
'react-native/no-raw-text': ERROR, | ||
}, | ||
globals: { | ||
JSX: 'readonly', | ||
}, | ||
env: { | ||
jest: true, | ||
}, | ||
}; |
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,23 @@ | ||
name: "🚀 Publish" | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
release: | ||
name: 🚀 Publish | ||
runs-on: macos-13 | ||
steps: | ||
- name: 📚 checkout | ||
uses: actions/[email protected] | ||
- name: 🟢 node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org | ||
- name: 🚀 Build & Publish | ||
run: yarn install && yarn build && yarn publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}} |
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,64 @@ | ||
# OSX | ||
# | ||
.DS_Store | ||
|
||
# Xcode | ||
# | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
*.xccheckout | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
*.xcuserstate | ||
|
||
# Android/IntelliJ | ||
# | ||
build/ | ||
.idea | ||
.gradle | ||
local.properties | ||
*.iml | ||
|
||
# node.js | ||
# | ||
node_modules/ | ||
npm-debug.log | ||
yarn-error.log* | ||
yarn.lock | ||
|
||
# BUCK | ||
buck-out/ | ||
\.buckd/ | ||
*.keystore | ||
!debug.keystore | ||
|
||
# fastlane | ||
# | ||
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the | ||
# screenshots whenever they are needed. | ||
# For more information about the recommended setup visit: | ||
# https://docs.fastlane.tools/best-practices/source-control/ | ||
|
||
*/fastlane/report.xml | ||
*/fastlane/Preview.html | ||
*/fastlane/screenshots | ||
|
||
# Bundle artifact | ||
*.jsbundle | ||
|
||
# Ruby / CocoaPods | ||
/ios/Pods/ | ||
/vendor/bundle/ | ||
|
||
# generated | ||
dist/* |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx commitlint --edit $1 |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx lint-staged |
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,5 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
# npx build | ||
# npx test |
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,4 @@ | ||
.github/ | ||
.eslintignore | ||
.eslintrc | ||
.buckconfig |
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,7 @@ | ||
module.exports = { | ||
arrowParens: 'avoid', | ||
bracketSameLine: true, | ||
bracketSpacing: true, | ||
singleQuote: true, | ||
trailingComma: 'none', | ||
}; |
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,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2025 Simform Solutions | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
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 |
---|---|---|
@@ -1 +1,23 @@ | ||
# pocket-cli | ||
# pocket-cli | ||
|
||
Pocket CLI is a command-line tool designed to streamline the deployment process for mobile applications to "Pocket Deploy". | ||
|
||
## Installation | ||
|
||
```bash | ||
npm install -g pocket-cli | ||
``` | ||
|
||
## Distribution | ||
|
||
```bash | ||
pocket distribute --applicationId "yourApplicationID" --buildPath "yourBuildPath" --appToken "YourAppToken" --baseUrl "base url of the server" --releaseNotes "formatted release notes" | ||
``` | ||
|
||
## Awesome Mobile Libraries | ||
|
||
- Check out our other [available awesome mobile libraries](https://github.com/SimformSolutionsPvtLtd/Awesome-Mobile-Libraries) | ||
|
||
## License | ||
|
||
- [MIT License](./LICENSE) |
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,72 @@ | ||
{ | ||
"name": "pocket-cli", | ||
"version": "1.0.0", | ||
"description": "Pocket Deploy command-line utility", | ||
"homepage": "https://github.com/SimformSolutionsPvtLtd/pocket-cli/#readme", | ||
"author": "Simform Solutions", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/SimformSolutionsPvtLtd/pocket-cli/" | ||
}, | ||
"bin": { | ||
"pocket": "./dist/distribute.js" | ||
}, | ||
"keywords": [ | ||
"distribute", | ||
"CLI" | ||
], | ||
"license": "MIT", | ||
"files": [ | ||
"/dist" | ||
], | ||
"dependencies": { | ||
"@plist/parse": "1.1.0", | ||
"axios": "^1.7.9", | ||
"bplist-parser": "0.3.2", | ||
"build-info-parser": "1.0.0", | ||
"bytebuffer": "5.0.1", | ||
"cgbi-to-png": "1.0.7", | ||
"form-data": "^4.0.1", | ||
"isomorphic-unzip": "1.1.5", | ||
"jsonwebtoken": "9.0.2", | ||
"save": "^2.4.0", | ||
"yargs": "^17.7.2" | ||
}, | ||
"devDependencies": { | ||
"@commitlint/cli": "^16.1.0", | ||
"@commitlint/config-conventional": "^16.0.0", | ||
"@types/jsonwebtoken": "^9.0.7", | ||
"@types/mocha": "^9.0.0", | ||
"@types/node": "^15.6.1", | ||
"@types/q": "^1.5.4", | ||
"@typescript-eslint/eslint-plugin": "^5.29.0", | ||
"@typescript-eslint/parser": "^5.29.0", | ||
"eslint": "^7.32.0", | ||
"eslint-plugin-simple-import-sort": "^7.0.0", | ||
"husky": "^8.0.1", | ||
"lint-staged": "^11.1.2", | ||
"prettier": "^2.7.1", | ||
"sync-request": "^6.1.0", | ||
"typescript": "^5.7.2" | ||
}, | ||
"husky": { | ||
"hooks": { | ||
"pre-commit": "lint-staged", | ||
"pre-push": "yarn build && yarn test" | ||
} | ||
}, | ||
"lint-staged": { | ||
"src/**/*.{js,ts}": [ | ||
"eslint" | ||
] | ||
}, | ||
"eslintIgnore": [ | ||
"node_modules/", | ||
"lib/" | ||
], | ||
"commitlint": { | ||
"extends": [ | ||
"@commitlint/config-conventional" | ||
] | ||
} | ||
} |
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 @@ | ||
export default { | ||
deployAppToPocketDeploy: 'deployAppToPocketDeploy' | ||
}; |
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,7 @@ | ||
export default { | ||
appDefaultName: 'app-release', | ||
appDefaultPackage: 'com.default', | ||
appDefaultVersion: '1.0', | ||
appDefaultVersionCode: 1, | ||
maximumFileSize: 100 // 100MB | ||
}; |
Oops, something went wrong.