@thanhphi/create-360-miniapp 0.0.0-stage → 0.2.1
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/LICENSE +21 -0
- package/README.md +328 -2
- package/bin/create-360-miniapp.cjs +54 -0
- package/lib/create.cjs +56 -0
- package/package.json +24 -4
- package/template/.eslintrc.cjs +1 -0
- package/template/.prettierrc.cjs +1 -0
- package/template/.watchmanconfig +1 -0
- package/template/App.tsx +2 -0
- package/template/README.md +215 -0
- package/template/__tests__/auth.test.ts +287 -0
- package/template/aliases.cjs +16 -0
- package/template/app.config.js +23 -0
- package/template/app.json +17 -0
- package/template/assets/.gitkeep +0 -0
- package/template/babel.config.js +7 -0
- package/template/declare/.gitkeep +0 -0
- package/template/declare/assets.d.ts +11 -0
- package/template/env/beta.json +16 -0
- package/template/env/prod.json +16 -0
- package/template/env/staging.json +16 -0
- package/template/gitignore +19 -0
- package/template/index.js +2 -0
- package/template/index.repack.js +14 -0
- package/template/jest.config.cjs +29 -0
- package/template/metro.config.js +6 -0
- package/template/package.json +88 -0
- package/template/pipelines/beta.yml +91 -0
- package/template/pipelines/production.yml +91 -0
- package/template/pipelines/staging.yml +91 -0
- package/template/pipelines/templates/build-and-zip.yml +89 -0
- package/template/pipelines/templates/upload-and-register.yml +89 -0
- package/template/react-native.config.js +3 -0
- package/template/rspack.config.cjs +53 -0
- package/template/scripts/clean-mini-app-output.js +9 -0
- package/template/scripts/sync-env.js +29 -0
- package/template/src/App.tsx +50 -0
- package/template/src/StandaloneApp.tsx +43 -0
- package/template/src/assets/icons/.gitkeep +1 -0
- package/template/src/assets/images/.gitkeep +1 -0
- package/template/src/assets/svg/.gitkeep +1 -0
- package/template/src/bootstrap.tsx +7 -0
- package/template/src/common/mini-app/provider.tsx +45 -0
- package/template/src/common/mini-app/types.ts +13 -0
- package/template/src/config/.gitkeep +0 -0
- package/template/src/constants/.gitkeep +0 -0
- package/template/src/hooks/.gitkeep +0 -0
- package/template/src/library/components/.gitkeep +0 -0
- package/template/src/library/networking/client.ts +53 -0
- package/template/src/library/networking/errors.ts +25 -0
- package/template/src/library/utils/responsive.ts +7 -0
- package/template/src/library/utils/storage/.gitkeep +0 -0
- package/template/src/modules/__MODULE__/assets/.gitkeep +0 -0
- package/template/src/modules/__MODULE__/components/ProfileCard.tsx +38 -0
- package/template/src/modules/__MODULE__/constants/.gitkeep +0 -0
- package/template/src/modules/__MODULE__/navigation/ModuleNavigator.tsx +18 -0
- package/template/src/modules/__MODULE__/redux/home-slice.ts +13 -0
- package/template/src/modules/__MODULE__/screens/home/hooks/use-home.ts +30 -0
- package/template/src/modules/__MODULE__/screens/home/index.tsx +100 -0
- package/template/src/modules/__MODULE__/services/profile.service.ts +32 -0
- package/template/src/modules/__MODULE__/types/.gitkeep +0 -0
- package/template/src/modules/auth/components/.gitkeep +0 -0
- package/template/src/modules/auth/constants/.gitkeep +0 -0
- package/template/src/modules/auth/hooks/use-auth.ts +55 -0
- package/template/src/modules/auth/navigation/AuthenticationNavigator.tsx +16 -0
- package/template/src/modules/auth/redux/auth-slice.ts +36 -0
- package/template/src/modules/auth/redux/selectors.ts +6 -0
- package/template/src/modules/auth/screens/LoginScreen.tsx +78 -0
- package/template/src/modules/auth/services/oidc.ts +64 -0
- package/template/src/modules/auth/services/standalone-session.ts +121 -0
- package/template/src/navigation/MainStack.tsx +46 -0
- package/template/src/redux/RootReducers.ts +8 -0
- package/template/src/redux/hooks.ts +5 -0
- package/template/src/redux/store.ts +10 -0
- package/template/src/services/application.ts +87 -0
- package/template/src/themes/colors/dark.ts +90 -0
- package/template/src/themes/colors/light.ts +90 -0
- package/template/src/themes/index.ts +38 -0
- package/template/src/themes/standalone.ts +6 -0
- package/template/src/themes/ui-geometry.ts +12 -0
- package/template/src/types/.gitkeep +0 -0
- package/template/tsconfig.json +65 -0
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"extends": "@react-native/typescript-config",
|
|
3
|
+
"compilerOptions": {
|
|
4
|
+
"strict": true,
|
|
5
|
+
"paths": {
|
|
6
|
+
"@/*": [
|
|
7
|
+
"./src/*"
|
|
8
|
+
],
|
|
9
|
+
"@auth/*": [
|
|
10
|
+
"./src/modules/auth/*"
|
|
11
|
+
],
|
|
12
|
+
"@feature/*": [
|
|
13
|
+
"./src/modules/__MODULE__/*"
|
|
14
|
+
],
|
|
15
|
+
"@assets/*": [
|
|
16
|
+
"./src/assets/*"
|
|
17
|
+
],
|
|
18
|
+
"@common/*": [
|
|
19
|
+
"./src/common/*"
|
|
20
|
+
],
|
|
21
|
+
"@components/*": [
|
|
22
|
+
"./src/library/components/*"
|
|
23
|
+
],
|
|
24
|
+
"@env-config": [
|
|
25
|
+
"./env/env-config"
|
|
26
|
+
],
|
|
27
|
+
"@modules/*": [
|
|
28
|
+
"./src/modules/*"
|
|
29
|
+
],
|
|
30
|
+
"@navigation/*": [
|
|
31
|
+
"./src/navigation/*"
|
|
32
|
+
],
|
|
33
|
+
"@networking/*": [
|
|
34
|
+
"./src/library/networking/*"
|
|
35
|
+
],
|
|
36
|
+
"@redux/*": [
|
|
37
|
+
"./src/redux/*"
|
|
38
|
+
],
|
|
39
|
+
"@storage/*": [
|
|
40
|
+
"./src/library/utils/storage/*"
|
|
41
|
+
],
|
|
42
|
+
"@theme/*": [
|
|
43
|
+
"./src/themes/*"
|
|
44
|
+
],
|
|
45
|
+
"@utils/*": [
|
|
46
|
+
"./src/library/utils/*"
|
|
47
|
+
]
|
|
48
|
+
}
|
|
49
|
+
},
|
|
50
|
+
"include": [
|
|
51
|
+
"App.tsx",
|
|
52
|
+
"src/**/*.ts",
|
|
53
|
+
"src/**/*.tsx",
|
|
54
|
+
"env/env-config.ts",
|
|
55
|
+
"declare/**/*.d.ts",
|
|
56
|
+
"__tests__/**/*.ts",
|
|
57
|
+
"__tests__/**/*.tsx"
|
|
58
|
+
],
|
|
59
|
+
"exclude": [
|
|
60
|
+
"node_modules",
|
|
61
|
+
"ios",
|
|
62
|
+
"android",
|
|
63
|
+
"build"
|
|
64
|
+
]
|
|
65
|
+
}
|