Skip to content

Commit

Permalink
chore: introducing app-tools
Browse files Browse the repository at this point in the history
  • Loading branch information
farfromrefug committed Oct 15, 2024
1 parent f0587c4 commit 1d96da6
Show file tree
Hide file tree
Showing 6 changed files with 46 additions and 105 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "zxingcpp"]
path = zxingcpp
url = https://github.com/Akylas/zxing-cpp.git
[submodule "tools"]
path = tools
url = https://github.com/Akylas/app-tools.git
108 changes: 37 additions & 71 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,22 +1,30 @@
{
"scripts": {
"postinstall": "patch-package",
"createBase64Key": "openssl base64 < $KEYSTORE_PATH | tr -d '\n' | tee base64.txt",
"postinstall": "npm run setup",
"prepare": "ts-patch install -s",
"prepare.ios.sentry": "NS_SENTRY=1 PLAY_STORE_BUILD=1 ns prepare ios --release --env.adhoc_sentry",
"run.ios.production": "PLAY_STORE_BUILD=1 ns run ios --release --env.production --env.adhoc",
"run.ios.production.sentry": "NS_SENTRY=1 PLAY_STORE_BUILD=1 ns run ios --release --env.production --env.adhoc_sentry",
"sentry-set-commits": "sentry-cli releases set-commits --auto --ignore-missing",
"run.android.production": "NS_LOGGING=1 cross-var ns run android --release --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASSWORD --key-store-alias $KEYSTORE_ALIAS --key-store-alias-password $KEYSTORE_ALIAS_PASSWORD --env.adhoc --env.sentry=0 --env.sourceMap=0 --env.noconsole=0",
"run.android.production": "NS_LOGGING=1 cross-var ns run android --release --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASSWORD --key-store-alias $KEYSTORE_ALIAS --key-store-alias-password $KEYSTORE_ALIAS_PASSWORD --env.adhoc --env.sentry=0 --env.sourceMap=0 --env.noconsole=0 --env.devlog",
"run.android.production.sentry": "NS_SENTRY=1 cross-var ns run android --release --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASSWORD --key-store-alias $KEYSTORE_ALIAS --key-store-alias-password $KEYSTORE_ALIAS_PASSWORD --env.adhoc_sentry --env.sentryUpload=0 --env.sourceMap=0 --env.devlog --gradleArgs=-PsentryEnabled",
"run.android.timeline": "NS_LOGGING=1 NS_TIMELINE=1 cross-var ns run android --release --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASSWORD --key-store-alias $KEYSTORE_ALIAS --key-store-alias-password $KEYSTORE_ALIAS_PASSWORD --env.timeline",
"build.android.production": "cross-var ns build android --release --clean --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASSWORD --key-store-alias $KEYSTORE_ALIAS --key-store-alias-password $KEYSTORE_ALIAS_PASSWORD --env.adhoc --env.sentry=0 --env.sourceMap=0 --env.report --aab",
"build.android.production.sentry": "NS_SENTRY=1 cross-var ns build android --release --clean --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASSWORD --key-store-alias $KEYSTORE_ALIAS --key-store-alias-password $KEYSTORE_ALIAS_PASSWORD --env.adhoc_sentry --env.report --aab --gradleArgs=-PsentryEnabled",
"build.android.production.fdroid": "cross-var ns build android --release --clean --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASSWORD --key-store-alias $KEYSTORE_ALIAS --key-store-alias-password $KEYSTORE_ALIAS_PASSWORD --env.adhoc --env.playStoreBuild=0 --env.report --gradleArgs=-PsplitEnabled --gradleArgs=-PabiFilters=arm64-v8a,armeabi-v7a,x86_64",
"build.android.production": "cross-var ns build android --release --clean --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASSWORD --key-store-alias $KEYSTORE_ALIAS --key-store-alias-password $KEYSTORE_ALIAS_PASSWORD --env.adhoc --env.sentry=0 --env.sourceMap=0 --env.report",
"build.android.production.playstore": "PLAY_STORE_BUILD=1 npm run build.android.production -- --aab",
"build.android.production.playstore.sentry": "NS_SENTRY=1 PLAY_STORE_BUILD=1 cross-var ns build android --release --clean --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASSWORD --key-store-alias $KEYSTORE_ALIAS --key-store-alias-password $KEYSTORE_ALIAS_PASSWORD --env.adhoc_sentry --env.report --aab --gradleArgs=-PsentryEnabled",
"build.android.production.fdroid": "cross-var ns build android --release --clean --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASSWORD --key-store-alias $KEYSTORE_ALIAS --key-store-alias-password $KEYSTORE_ALIAS_PASSWORD --env.adhoc --env.playStoreBuild=0 --env.report --gradleArgs=-PsplitEnabled --gradleArgs=-PabiFilters=arm64-v8a,armeabi-v7a",
"build.android.production.fdroid.sentry": "NS_SENTRY=1 npm run build.android.production.fdroid -- --env.adhoc_sentry --gradleArgs=-PsentryEnabled",
"build.android.debug.sentry": "NS_SENTRY=1 ns build android --env.adhoc_sentry --env.production=0 --gradleArgs=-PsplitEnabled --gradleArgs=-PabiFilters=arm64-v8a,armeabi-v7a,x86_64 --gradleArgs=-PsentryEnabled",
"build.android.debug.sentry": "NS_SENTRY=1 ns build android --env.adhoc_sentry --env.production=0 --gradleArgs=-PsplitEnabled --gradleArgs=-PabiFilters=arm64-v8a,armeabi-v7a --gradleArgs=-PsentryEnabled",
"prepare.android.benchmark": "cross-var ns prepare android --release --clean --key-store-path $KEYSTORE_PATH --key-store-password $KEYSTORE_PASSWORD --key-store-alias $KEYSTORE_ALIAS --key-store-alias-password $KEYSTORE_ALIAS_PASSWORD --env.adhoc",
"build.android.baselineprofile": "npm run prepare.android.benchmark ; ./$APP_BUILD_PATH/android/gradlew -p ./$APP_BUILD_PATH/android :benchmark:pixel2Api31BenchmarkAndroidTest -Pandroid.testoptions.manageddevices.emulator.gpu=\"swiftshader_indirect\" -Pandroid.testInstrumentationRunnerArguments.androidx.benchmark.enabledRules=BaselineProfile -Dorg.gradle.workers.max=4 --stacktrace; mv -f ./$APP_BUILD_PATH/android/benchmark/build/outputs/managed_device_android_test_additional_output/pixel2Api31/BaselineProfileGenerator_startup-baseline-prof.txt $APP_RESOURCES/Android/src/main/baseline-prof.txt",
"svelte-check": "svelte-check --compiler-warnings 'a11y-no-onchange:ignore,a11y-label-has-associated-control:ignore,a11y-autofocus:ignore,illegal-attribute-character:ignore'"
"svelte-check": "svelte-check --compiler-warnings 'a11y-no-onchange:ignore,a11y-label-has-associated-control:ignore,a11y-autofocus:ignore,illegal-attribute-character:ignore'",
"sync": "node ./tools/sync.mjs",
"update": "node ./tools/update.mjs",
"setup": "npm run submodules && npm run patchpackage",
"submodules": "git submodule update --init",
"patchpackage": "./node_modules/.bin/patch-package",
"set_version": "node tools/scripts/set-version.mjs set-version"
},
"main": "app/bootstrap",
"description": "NativeScript Application",
Expand All @@ -27,15 +35,16 @@
},
"dependencies": {
"@akylas/kiss-orm": "2.1.7",
"@akylas/nativescript": "8.8.3",
"@akylas/nativescript-app-utils": "1.0.0",
"@akylas/nativescript": "8.8.7",
"@akylas/nativescript-app-tools": "file:tools",
"@akylas/nativescript-app-utils": "2.1.2",
"@akylas/panzoom": "4.6.0",
"@mdi/font": "7.4.47",
"@nativescript-community/arraybuffers": "1.1.5",
"@nativescript-community/css-theme": "1.2.14",
"@nativescript-community/extendedinfo": "1.3.1",
"@nativescript-community/gesturehandler": "2.0.32",
"@nativescript-community/https": "4.1.18",
"@nativescript-community/https": "4.1.19",
"@nativescript-community/l": "4.3.10",
"@nativescript-community/licenses": "2.0.9",
"@nativescript-community/md5": "^1.0.4",
Expand All @@ -49,26 +58,26 @@
"@nativescript-community/ui-canvas": "4.6.34",
"@nativescript-community/ui-canvaslabel": "1.2.37",
"@nativescript-community/ui-checkbox": "^2.0.12",
"@nativescript-community/ui-collectionview": "5.3.41",
"@nativescript-community/ui-collectionview-swipemenu": "5.3.41",
"@nativescript-community/ui-document-picker": "1.1.25",
"@nativescript-community/ui-collectionview": "5.3.43",
"@nativescript-community/ui-collectionview-swipemenu": "5.3.43",
"@nativescript-community/ui-document-picker": "1.1.26",
"@nativescript-community/ui-image": "4.5.3",
"@nativescript-community/ui-image-colorfilter": "4.5.3",
"@nativescript-community/ui-label": "1.3.32",
"@nativescript-community/ui-lottie": "~5.0.11",
"@nativescript-community/ui-material-activityindicator": "7.2.65",
"@nativescript-community/ui-material-bottomsheet": "7.2.65",
"@nativescript-community/ui-material-button": "7.2.65",
"@nativescript-community/ui-material-dialogs": "7.2.65",
"@nativescript-community/ui-material-progress": "7.2.65",
"@nativescript-community/ui-material-slider": "7.2.65",
"@nativescript-community/ui-material-snackbar": "7.2.65",
"@nativescript-community/ui-material-switch": "7.2.65",
"@nativescript-community/ui-material-tabs": "7.2.65",
"@nativescript-community/ui-material-textfield": "7.2.65",
"@nativescript-community/ui-material-textview": "7.2.65",
"@nativescript-community/ui-pager": "14.1.25",
"@nativescript-community/ui-pager-indicator": "14.1.25",
"@nativescript-community/ui-material-activityindicator": "7.2.66",
"@nativescript-community/ui-material-bottomsheet": "7.2.66",
"@nativescript-community/ui-material-button": "7.2.66",
"@nativescript-community/ui-material-dialogs": "7.2.66",
"@nativescript-community/ui-material-progress": "7.2.66",
"@nativescript-community/ui-material-slider": "7.2.66",
"@nativescript-community/ui-material-snackbar": "7.2.66",
"@nativescript-community/ui-material-switch": "7.2.66",
"@nativescript-community/ui-material-tabs": "7.2.66",
"@nativescript-community/ui-material-textfield": "7.2.66",
"@nativescript-community/ui-material-textview": "7.2.66",
"@nativescript-community/ui-pager": "14.1.27",
"@nativescript-community/ui-pager-indicator": "14.1.27",
"@nativescript-community/ui-popover": "0.1.19",
"@nativescript-community/ui-svg": "0.2.6",
"@nativescript-community/ui-webview": "1.5.0",
Expand All @@ -92,53 +101,10 @@
"@akylas/nativescript-android-runtime": "8.8.5",
"@akylas/nativescript-ios-runtime": "8.8.2",
"@akylas/nativescript-webpack": "5.0.22",
"@babel/core": "^7.25.7",
"@babel/plugin-transform-runtime": "^7.25.7",
"@babel/preset-env": "^7.25.7",
"@eslint/js": "^9.11.1",
"@nativescript-community/fontmin": "^0.9.11",
"@nativescript-community/set-version": "1.0.4",
"@nativescript/core": "8.8.2",
"@nativescript/types-android": "8.8.0",
"@nativescript/types-ios": "8.8.0",
"@sentry/cli": "2.36.6",
"@sentry/webpack-plugin": "2.22.5",
"@tsconfig/svelte": "^5.0.4",
"@types/eslint": "^9.6.1",
"@types/node": "^22.7.4",
"@typescript-eslint/parser": "8.8.0",
"babel-loader": "^9.2.1",
"copy-webpack-plugin": "12.0.2",
"cross-var": "^1.1.0",
"css-loader": "^7.1.2",
"cssnano": "7.0.6",
"cssnano-preset-advanced": "7.0.6",
"eslint": "9.11.1",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-prettier": "^5.2.1",
"eslint-plugin-svelte": "2.44.1",
"fork-ts-checker-webpack-plugin": "^9.0.2",
"merge-options": "^3.0.4",
"merge-properties-files": "^1.1.6",
"patch-package": "^8.0.0",
"postcss": "^8.4.47",
"postcss-combine-duplicated-selectors": "^10.0.3",
"postcss-loader": "^8.1.1",
"prettier": "^3.3.3",
"prettier-plugin-svelte": "^3.2.7",
"sass": "^1.79.4",
"sass-loader": "16.0.2",
"scss-symbols-parser": "^2.0.1",
"speed-measure-webpack-plugin": "^1.5.0",
"string-replace-loader": "3.1.0",
"svelte": "~4.2.19",
"svelte-check": "^4.0.4",
"svelte-loader": "3.2.3",
"svelte-native-preprocessor": "~1.0.0",
"svelte-preprocess": "^5.1.4",
"terser-webpack-plugin": "^5.3.10",
"typescript": "5.6.2",
"typescript-eslint": "^8.8.0"
"mini-css-extract-plugin": "^2.9.1",
"svelte-loader": "3.2.4"
},
"commitlint": {
"extends": [
Expand Down
1 change: 1 addition & 0 deletions tools
Submodule tools added at 6f39f2
4 changes: 2 additions & 2 deletions tsconfig.eslint.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"extends": "./tsconfig.json",
"include": [".*.js", "*.js", "*.mjs", "app/**/*.ts", "app/**/*.svelte", "webpdfviewer/**/*.ts", "webpdfviewer/**/*.svelte", "typings/*.d.ts", "plugin-nativeprocessor/**/*.ts"]
"extends": "./tools/tsconfig.eslint.json",
"include": [".*.js", "*.js", "*.mjs", "tools/**/*.mjs", "app/**/*.ts", "app/**/*.svelte", "webpdfviewer/**/*.ts", "webpdfviewer/**/*.svelte", "typings/*.d.ts", "plugin-nativeprocessor/**/*.ts"]
}
28 changes: 3 additions & 25 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,10 @@
{
"extends":"./tools/tsconfig",
"compilerOptions": {
"target": "es2020",
"module": "esnext",
"moduleResolution": "node",
"declaration": false,
"removeComments": true,
"emitDecoratorMetadata": false,
"experimentalDecorators": true,
"sourceMap": true,
"skipLibCheck": true,
"preserveSymlinks": true,
"skipDefaultLibCheck": true,
"allowUnreachableCode": false,
"allowSyntheticDefaultImports": true,
"allowUnusedLabels": false,
"noEmitHelpers": true,
"noEmitOnError": false,
"noImplicitAny": false,
"noImplicitReturns": false,
"noImplicitUseStrict": false,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"lib": ["esnext", "es2017", "dom"],
"types": ["node", "svelte-native", "svelte"],
"baseUrl": ".",
"paths": {
"~/*": ["app/*"],
"@shared/*": ["tools/app/*"],
"kiss-orm": ["node_modules/@akylas/kiss-orm"],
"kiss-orm/*": ["node_modules/@akylas/kiss-orm/*"],
"@nativescript/core": ["node_modules/@akylas/nativescript"],
Expand All @@ -35,5 +14,4 @@
}
},
"include": ["app/**/*", "typings/*.d.ts", "plugin-nativeprocessor", "plugin-nativeprocessor/typings"],
"exclude": ["**/node_modules", "**/build", "platforms", "**/angular"]
}
}
7 changes: 0 additions & 7 deletions tsconfig.tns.json

This file was deleted.

0 comments on commit 1d96da6

Please sign in to comment.