create-wizze-app 0.1.5 → 0.1.7

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 CHANGED
@@ -9,17 +9,16 @@ Gerador oficial de projetos do Wizze Framework.
9
9
 
10
10
  ## O que é gerado
11
11
 
12
- - Estrutura base interna equivalente ao template oficial do Expo (SDK 55).
12
+ - Estrutura base oficial do Wizze Go para apps Android, iOS e Web.
13
13
  - Suporte universal para Android, iOS e Web.
14
- - `src/app` com rotas por arquivo (Expo Router).
14
+ - `src/app` com rotas por arquivo.
15
15
  - `src/components`, `src/constants` e `src/hooks`.
16
- - `app.json` configurado para Expo.
16
+ - `app.json` configurado para runtime mobile/web.
17
17
  - `wizze.config.ts` com metadados do projeto Wizze Go.
18
18
 
19
19
  ## Scripts iniciais
20
20
 
21
- - `npm run start`
22
- - `npm run android`
23
- - `npm run ios`
24
- - `npm run web`
25
- - `npm run prebuild` (gera pastas nativas `android/` e `ios/`)
21
+ - `npm start` (usa `wizze start --dev-client`)
22
+ - `npm run android` (build cloud Android)
23
+ - `npm run ios` (build cloud iOS)
24
+ - `npm run web` (inicia sessão de desenvolvimento)
package/dist/index.js CHANGED
@@ -17,7 +17,7 @@ const SUPPORTED_TEMPLATES = new Set([
17
17
  const TEMPLATE_META = {
18
18
  blank: {
19
19
  title: 'Wizze Go Base',
20
- subtitle: 'Estrutura universal com base oficial Expo para Android, iOS e Web.',
20
+ subtitle: 'Estrutura universal oficial do Wizze Go para Android, iOS e Web.',
21
21
  accentColor: '#208AEF',
22
22
  },
23
23
  'dashboard-mobile': {
@@ -115,7 +115,7 @@ async function resolveBaseTemplateDir() {
115
115
  return candidate;
116
116
  }
117
117
  }
118
- throw new Error('Template base do Expo não encontrado no pacote create-wizze-app.');
118
+ throw new Error('Template base do Wizze Go não encontrado no pacote create-wizze-app.');
119
119
  }
120
120
  async function patchProjectMetadata(input) {
121
121
  const { appDir, slug, displayName, template, templateMeta } = input;
@@ -126,6 +126,25 @@ async function patchProjectMetadata(input) {
126
126
  const templateInfoPath = join(appDir, 'src', 'constants', 'wizze-template.ts');
127
127
  const packageJson = JSON.parse(await readFile(packageJsonPath, 'utf8'));
128
128
  packageJson.name = slug;
129
+ const scripts = packageJson.scripts && typeof packageJson.scripts === 'object'
130
+ ? { ...packageJson.scripts }
131
+ : {};
132
+ scripts.start = 'wizze start --dev-client';
133
+ scripts.android = 'wizze build android --cloud';
134
+ scripts.ios = 'wizze build ios --cloud';
135
+ scripts.web = 'wizze start';
136
+ scripts.lint = 'wizze doctor';
137
+ packageJson.scripts = scripts;
138
+ const dependencies = packageJson.dependencies && typeof packageJson.dependencies === 'object'
139
+ ? { ...packageJson.dependencies }
140
+ : {};
141
+ dependencies['expo-dev-client'] = dependencies['expo-dev-client'] || '^5.2.4';
142
+ packageJson.dependencies = dependencies;
143
+ const devDependencies = packageJson.devDependencies && typeof packageJson.devDependencies === 'object'
144
+ ? { ...packageJson.devDependencies }
145
+ : {};
146
+ devDependencies.wizze = '^0.1.7';
147
+ packageJson.devDependencies = devDependencies;
129
148
  await writeFile(packageJsonPath, `${JSON.stringify(packageJson, null, 2)}\n`, 'utf8');
130
149
  const appJson = JSON.parse(await readFile(appJsonPath, 'utf8'));
131
150
  if (!appJson.expo || typeof appJson.expo !== 'object') {
@@ -159,7 +178,7 @@ async function patchProjectMetadata(input) {
159
178
  '',
160
179
  `Este projeto foi inicializado com o template \`${template}\` do Wizze Go.`,
161
180
  '',
162
- '- Estrutura base: padrão oficial do Expo (SDK 55).',
181
+ '- Estrutura base: padrão oficial do Wizze Go.',
163
182
  '- Plataformas: Android, iOS e Web.',
164
183
  '- Configuração Wizze: `wizze.config.ts`.',
165
184
  '',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-wizze-app",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Gerador oficial de projetos do Wizze Framework.",
5
5
  "author": "Master Dev (Taliton Silva)",
6
6
  "license": "MIT",
@@ -1,3 +1,4 @@
1
- # Expo HAS CHANGED
1
+ # Wizze Go Template
2
2
 
3
- Read the exact versioned docs at https://docs.expo.dev/versions/v55.0.0/ before writing any code.
3
+ Use este template como base oficial do Wizze Go.
4
+ Mantenha foco em experiência de cliente, sem expor dados internos, segredos ou caminhos privados.
@@ -1,56 +1,41 @@
1
- # Welcome to your Expo app 👋
1
+ # Wizze Go App
2
2
 
3
- This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).
3
+ Projeto base oficial para aplicativos Wizze Go com suporte a Android, iOS e Web.
4
4
 
5
- ## Get started
5
+ ## Início rápido
6
6
 
7
- 1. Install dependencies
8
-
9
- ```bash
10
- npm install
11
- ```
12
-
13
- 2. Start the app
14
-
15
- ```bash
16
- npx expo start
17
- ```
18
-
19
- In the output, you'll find options to open the app in a
20
-
21
- - [development build](https://docs.expo.dev/develop/development-builds/introduction/)
22
- - [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/)
23
- - [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/)
24
- - [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo
25
-
26
- You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).
27
-
28
- ## Get a fresh project
29
-
30
- When you're ready, run:
7
+ 1. Instale as dependências
31
8
 
32
9
  ```bash
33
- npm run reset-project
10
+ npm install
34
11
  ```
35
12
 
36
- This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing.
13
+ 2. Inicie o desenvolvimento
37
14
 
38
- ### Other setup steps
15
+ ```bash
16
+ npm start
17
+ ```
39
18
 
40
- - To set up ESLint for linting, run `npx expo lint`, or follow our guide on ["Using ESLint and Prettier"](https://docs.expo.dev/guides/using-eslint/)
41
- - If you'd like to set up unit testing, follow our guide on ["Unit Testing with Jest"](https://docs.expo.dev/develop/unit-testing/)
42
- - Learn more about the TypeScript setup in this template in our guide on ["Using TypeScript"](https://docs.expo.dev/guides/typescript/)
19
+ ## Fluxo recomendado
43
20
 
44
- ## Learn more
21
+ - `npm start`: inicia o modo desenvolvimento.
22
+ - `npm run android`: envia build Android para a fila cloud.
23
+ - `npm run ios`: envia build iOS para a fila cloud.
24
+ - `npm run web`: inicia a sessão de desenvolvimento.
25
+ - `npm run lint`: executa diagnóstico rápido do ambiente.
45
26
 
46
- To learn more about developing your project with Expo, look at the following resources:
27
+ ## Estrutura principal
47
28
 
48
- - [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides).
49
- - [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.
29
+ - `src/app`: telas e layout por rotas.
30
+ - `src/components`: componentes reutilizáveis.
31
+ - `src/constants`: tema e constantes de UI.
32
+ - `src/hooks`: hooks utilitários.
33
+ - `wizze.config.ts`: configuração do projeto Wizze Go.
50
34
 
51
- ## Join the community
35
+ ## Reset de base
52
36
 
53
- Join our community of developers creating universal apps.
37
+ Quando quiser limpar o starter e começar do zero:
54
38
 
55
- - [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute.
56
- - [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions.
39
+ ```bash
40
+ npm run reset-project
41
+ ```
@@ -3,12 +3,12 @@
3
3
  "main": "expo-router/entry",
4
4
  "version": "1.0.0",
5
5
  "scripts": {
6
- "start": "expo start",
6
+ "start": "wizze start --dev-client",
7
7
  "reset-project": "node ./scripts/reset-project.js",
8
- "android": "expo start --android",
9
- "ios": "expo start --ios",
10
- "web": "expo start --web",
11
- "lint": "expo lint"
8
+ "android": "wizze build android --cloud",
9
+ "ios": "wizze build ios --cloud",
10
+ "web": "wizze start",
11
+ "lint": "wizze doctor"
12
12
  },
13
13
  "dependencies": {
14
14
  "@react-navigation/bottom-tabs": "^7.15.5",
@@ -16,6 +16,7 @@
16
16
  "@react-navigation/native": "^7.1.33",
17
17
  "expo": "~55.0.24",
18
18
  "expo-constants": "~55.0.16",
19
+ "expo-dev-client": "^5.2.4",
19
20
  "expo-device": "~55.0.17",
20
21
  "expo-font": "~55.0.7",
21
22
  "expo-glass-effect": "~55.0.11",
@@ -39,7 +40,8 @@
39
40
  },
40
41
  "devDependencies": {
41
42
  "@types/react": "~19.2.2",
42
- "typescript": "~5.9.2"
43
+ "typescript": "~5.9.2",
44
+ "wizze": "^0.1.7"
43
45
  },
44
46
  "private": true
45
47
  }
@@ -89,7 +89,7 @@ const moveDirectories = async (userInput) => {
89
89
 
90
90
  console.log("\n✅ Project reset complete. Next steps:");
91
91
  console.log(
92
- `1. Run \`npx expo start\` to start a development server.\n2. Edit src/app/index.tsx to edit the main screen.\n3. Put all your application code in /src, only screens and layout files should be in /src/app.${
92
+ `1. Run \`npm start\` to start a development server.\n2. Edit src/app/index.tsx to edit the main screen.\n3. Put all your application code in /src, only screens and layout files should be in /src/app.${
93
93
  userInput === "y"
94
94
  ? `\n4. Delete the /${exampleDir} directory when you're done referencing it.`
95
95
  : ""
@@ -45,10 +45,10 @@ export default function TabTwoScreen() {
45
45
  This starter app includes example{'\n'}code to help you get started.
46
46
  </ThemedText>
47
47
 
48
- <ExternalLink href="https://docs.expo.dev" asChild>
48
+ <ExternalLink href="https://dev.wizzepro.com/docs" asChild>
49
49
  <Pressable style={({ pressed }) => pressed && styles.pressed}>
50
50
  <ThemedView type="backgroundElement" style={styles.linkButton}>
51
- <ThemedText type="link">Expo documentation</ThemedText>
51
+ <ThemedText type="link">Wizze documentation</ThemedText>
52
52
  <SymbolView
53
53
  tintColor={theme.text}
54
54
  name={{ ios: 'arrow.up.right.square', android: 'link', web: 'link' }}
@@ -69,7 +69,7 @@ export default function TabTwoScreen() {
69
69
  The layout file in <ThemedText type="code">src/app/_layout.tsx</ThemedText> sets up
70
70
  the tab navigator.
71
71
  </ThemedText>
72
- <ExternalLink href="https://docs.expo.dev/router/introduction">
72
+ <ExternalLink href="https://dev.wizzepro.com/docs">
73
73
  <ThemedText type="linkPrimary">Learn more</ThemedText>
74
74
  </ExternalLink>
75
75
  </Collapsible>
@@ -106,7 +106,7 @@ export default function TabTwoScreen() {
106
106
  <ThemedText type="code">useColorScheme()</ThemedText> hook lets you inspect what the
107
107
  user&apos;s current color scheme is, and so you can adjust UI colors accordingly.
108
108
  </ThemedText>
109
- <ExternalLink href="https://docs.expo.dev/develop/user-interface/color-themes/">
109
+ <ExternalLink href="https://dev.wizzepro.com/docs">
110
110
  <ThemedText type="linkPrimary">Learn more</ThemedText>
111
111
  </ExternalLink>
112
112
  </Collapsible>
@@ -35,7 +35,7 @@ export default function HomeScreen() {
35
35
  <ThemedView style={styles.heroSection}>
36
36
  <AnimatedIcon />
37
37
  <ThemedText type="title" style={styles.title}>
38
- Welcome to&nbsp;Expo
38
+ Welcome to&nbsp;Wizze
39
39
  </ThemedText>
40
40
  </ThemedView>
41
41
 
@@ -1,4 +1,4 @@
1
- .expoLogoBackground {
1
+ .brandLogoBackground {
2
2
  background-image: linear-gradient(180deg, #3c9ffe, #0274df);
3
3
  border-radius: 40px;
4
4
  width: 128px;
@@ -89,7 +89,7 @@ export function AnimatedIcon() {
89
89
 
90
90
  <Animated.View entering={keyframe.duration(DURATION)} style={styles.background} />
91
91
  <Animated.View style={styles.imageContainer} entering={logoKeyframe.duration(DURATION)}>
92
- <Image style={styles.image} source={require('@/assets/images/expo-logo.png')} />
92
+ <Image style={styles.image} source={require('@/assets/images/wizze-logo.png')} />
93
93
  </Animated.View>
94
94
  </View>
95
95
  );
@@ -62,11 +62,11 @@ export function AnimatedIcon() {
62
62
  </Animated.View>
63
63
 
64
64
  <Animated.View style={styles.background} entering={keyframe.duration(DURATION)}>
65
- <div className={classes.expoLogoBackground} />
65
+ <div className={classes.brandLogoBackground} />
66
66
  </Animated.View>
67
67
 
68
68
  <Animated.View style={styles.imageContainer} entering={logoKeyframe.duration(DURATION)}>
69
- <Image style={styles.image} source={require('@/assets/images/expo-logo.png')} />
69
+ <Image style={styles.image} source={require('@/assets/images/wizze-logo.png')} />
70
70
  </Animated.View>
71
71
  </View>
72
72
  );
@@ -56,12 +56,12 @@ export function CustomTabList(props: TabListProps) {
56
56
  <View {...props} style={styles.tabListContainer}>
57
57
  <ThemedView type="backgroundElement" style={styles.innerContainer}>
58
58
  <ThemedText type="smallBold" style={styles.brandText}>
59
- Expo Starter
59
+ Wizze Starter
60
60
  </ThemedText>
61
61
 
62
62
  {props.children}
63
63
 
64
- <ExternalLink href="https://docs.expo.dev" asChild>
64
+ <ExternalLink href="https://dev.wizzepro.com/docs" asChild>
65
65
  <Pressable style={styles.externalPressable}>
66
66
  <ThemedText type="link">Docs</ThemedText>
67
67
  <SymbolView
@@ -1,4 +1,3 @@
1
- import { version } from 'expo/package.json';
2
1
  import { Image } from 'expo-image';
3
2
  import React from 'react';
4
3
  import { useColorScheme, StyleSheet } from 'react-native';
@@ -14,13 +13,13 @@ export function WebBadge() {
14
13
  return (
15
14
  <ThemedView style={styles.container}>
16
15
  <ThemedText type="code" themeColor="textSecondary" style={styles.versionText}>
17
- v{version}
16
+ Wizze Go
18
17
  </ThemedText>
19
18
  <Image
20
19
  source={
21
20
  scheme === 'dark'
22
- ? require('@/assets/images/expo-badge-white.png')
23
- : require('@/assets/images/expo-badge.png')
21
+ ? require('@/assets/images/wizze-badge-white.png')
22
+ : require('@/assets/images/wizze-badge.png')
24
23
  }
25
24
  style={styles.badgeImage}
26
25
  />
@@ -1,6 +1,5 @@
1
1
  /**
2
- * Learn more about light and dark modes:
3
- * https://docs.expo.dev/guides/color-schemes/
2
+ * Theme helper for light/dark scheme handling in Wizze Go templates.
4
3
  */
5
4
 
6
5
  import { Colors } from '@/constants/theme';