@highbeek/create-rnstarterkit 1.0.2-beta.12 → 1.0.2-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +141 -154
- package/dist/bin/create-rnstarterkit.js +185 -7
- package/dist/src/generators/appGenerator.js +228 -4
- package/dist/src/generators/codeGenerator.js +288 -0
- package/dist/templates/optional/i18n/src/i18n/hooks/useAppTranslation.ts +28 -0
- package/dist/templates/optional/i18n/src/i18n/i18n.ts +30 -0
- package/dist/templates/optional/i18n/src/i18n/locales/en.json +32 -0
- package/dist/templates/optional/i18n/src/i18n/locales/es.json +32 -0
- package/dist/templates/optional/maestro/.maestro/flows/01_welcome.yaml +5 -0
- package/dist/templates/optional/maestro-auth/.maestro/flows/01_welcome.yaml +5 -0
- package/dist/templates/optional/maestro-auth/.maestro/flows/02_login.yaml +13 -0
- package/dist/templates/optional/maestro-auth/.maestro/flows/03_logout.yaml +16 -0
- package/dist/templates/optional/sentry/src/utils/sentry.ts +24 -0
- package/package.json +4 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
appId: com.rnstarterkit.app
|
|
2
|
+
---
|
|
3
|
+
- launchApp
|
|
4
|
+
- tapOn: "Get Started"
|
|
5
|
+
- tapOn: "Sign In"
|
|
6
|
+
- tapOn:
|
|
7
|
+
id: "email-input"
|
|
8
|
+
- inputText: "test@example.com"
|
|
9
|
+
- tapOn:
|
|
10
|
+
id: "password-input"
|
|
11
|
+
- inputText: "password123"
|
|
12
|
+
- tapOn: "Sign In"
|
|
13
|
+
- assertVisible: "Home"
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
appId: com.rnstarterkit.app
|
|
2
|
+
---
|
|
3
|
+
- launchApp
|
|
4
|
+
- tapOn: "Get Started"
|
|
5
|
+
- tapOn: "Sign In"
|
|
6
|
+
- tapOn:
|
|
7
|
+
id: "email-input"
|
|
8
|
+
- inputText: "test@example.com"
|
|
9
|
+
- tapOn:
|
|
10
|
+
id: "password-input"
|
|
11
|
+
- inputText: "password123"
|
|
12
|
+
- tapOn: "Sign In"
|
|
13
|
+
- assertVisible: "Home"
|
|
14
|
+
- tapOn: "Profile"
|
|
15
|
+
- tapOn: "Sign Out"
|
|
16
|
+
- assertVisible: "Welcome"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as Sentry from '@sentry/react-native';
|
|
2
|
+
|
|
3
|
+
export function initSentry() {
|
|
4
|
+
Sentry.init({
|
|
5
|
+
// Replace with your Sentry DSN from https://sentry.io
|
|
6
|
+
dsn: '__YOUR_DSN__',
|
|
7
|
+
tracesSampleRate: 1.0,
|
|
8
|
+
// Disable verbose logging in production
|
|
9
|
+
debug: __DEV__,
|
|
10
|
+
// Attach JS/native stack traces to all events
|
|
11
|
+
attachStacktrace: true,
|
|
12
|
+
environment: __DEV__ ? 'development' : 'production',
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/** Manually capture an exception (e.g. in a catch block) */
|
|
17
|
+
export function captureException(error: unknown) {
|
|
18
|
+
Sentry.captureException(error);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/** Add a breadcrumb for tracing user flows */
|
|
22
|
+
export function addBreadcrumb(message: string, category = 'app') {
|
|
23
|
+
Sentry.addBreadcrumb({ message, category });
|
|
24
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@highbeek/create-rnstarterkit",
|
|
3
|
-
"version": "1.0.2-beta.
|
|
3
|
+
"version": "1.0.2-beta.14",
|
|
4
4
|
"description": "CLI to scaffold production-ready React Native app structures.",
|
|
5
5
|
"main": "dist/src/generators/appGenerator.js",
|
|
6
6
|
"bin": {
|
|
@@ -18,6 +18,9 @@
|
|
|
18
18
|
"keywords": [],
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "ISC",
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
21
24
|
"type": "commonjs",
|
|
22
25
|
"dependencies": {
|
|
23
26
|
"chalk": "^5.6.2",
|