Skip to content

Commit

Permalink
feat: add build with code obfuscation
Browse files Browse the repository at this point in the history
  • Loading branch information
rams23 committed Aug 21, 2023
1 parent 1036235 commit f44b70d
Show file tree
Hide file tree
Showing 6 changed files with 551 additions and 59 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ node_modules
oclif.manifest.json
.idea
.eslintcache
/build
16 changes: 13 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,16 +29,22 @@
"@react-native-community/cli-platform-android": "10.2.0",
"@react-native-community/cli-platform-ios": "10.2.0",
"@react-native-community/cli-tools": "10.1.1",
"@rollup/plugin-commonjs": "^25.0.4",
"@rollup/plugin-json": "^6.0.0",
"@rollup/plugin-node-resolve": "^15.2.0",
"@rollup/plugin-replace": "^5.0.2",
"@types/adm-zip": "^0.5.0",
"adm-zip": "^0.5.10",
"axios": "^1.3.4",
"chalk": "^4.1.2",
"dotenv": "^16.3.1",
"firebase": "^10.1.0",
"ios-deploy": "^1.12.1",
"javascript-obfuscator": "^4.0.2",
"lint-staged": "^13.1.2",
"open": "^8.4.2",
"prompts": "^2.4.2"
"prompts": "^2.4.2",
"rollup": "^3.28.0"
},
"devDependencies": {
"@oclif/test": "^2.3.7",
Expand All @@ -55,7 +61,9 @@
"eslint-config-prettier": "^8.6.0",
"eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.0",
"install": "^0.13.0",
"mocha": "^10.2.0",
"npm": "^9.8.1",
"oclif": "^3",
"prettier": "^2.8.4",
"shx": "^0.3.3",
Expand All @@ -74,7 +82,7 @@
"topicSeparator": " "
},
"scripts": {
"build": "shx rm -rf dist && tsc -b",
"build": "shx rm -rf dist && shx rm -rf build && tsc -b",
"autoformat": "prettier --write \"src/**/*.ts\" && eslint --no-error-on-unmatched-pattern --fix --cache \"./src/**/*.{ts}\"",
"lint": "eslint . --ext .ts --config .eslintrc",
"postpack": "shx rm -f oclif.manifest.json",
Expand All @@ -85,7 +93,9 @@
"version": "oclif readme && git add README.md",
"run": "./bin/dev run -a",
"prepare": "husky install",
"autoformat:staged": "pnpm dlx lint-staged"
"autoformat:staged": "pnpm dlx lint-staged",
"rollup": "shx rm -rf dist && rollup -c rollup.config.mjs",
"a": "DEBUG=* ./bin/run help"
},
"engines": {
"node": ">=12.0.0"
Expand Down
Loading

0 comments on commit f44b70d

Please sign in to comment.