@idealyst/cli 1.0.17 → 1.0.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@idealyst/cli",
3
- "version": "1.0.17",
3
+ "version": "1.0.18",
4
4
  "description": "CLI tool for generating Idealyst Framework projects",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -1,6 +1,6 @@
1
1
  import '@idealyst/theme/unistyles';
2
2
 
3
3
  import { AppRegistry } from 'react-native';
4
- import App from './src/App';
4
+ import App from './App';
5
5
 
6
6
  AppRegistry.registerComponent('{{projectName}}', () => App);
@@ -12,11 +12,6 @@ const config = {
12
12
  // Important for Idealyst to use .native extensions for React Native (eg: @idealyst/components/src/Button/Button.native.tsx)
13
13
  sourceExts: ['native.tsx', 'native.ts', 'tsx', 'ts', 'native.jsx', 'native.js', 'jsx', 'js', 'json'],
14
14
  },
15
- watchFolders: [
16
- path.resolve(__dirname, 'src'),
17
- // To support live updates when developing components in other workspaces, add the folders here. Make sure
18
- // path.resolve(__dirname, '../shared/'),
19
- ],
20
15
  watcher: {
21
16
  // When configuring custom components with .native extensions, make sure the watcher looks for them
22
17
  additionalExts: ['native.tsx', 'native.ts', 'native.jsx', 'native.js'],
@@ -1,19 +1,9 @@
1
- import React from 'react';
2
- import { View, Text, Button } from '@idealyst/components';
1
+ import { NavigatorProvider } from '@idealyst/navigation';
2
+ import { ExampleStackRouter } from '@idealyst/navigation/examples';
3
3
 
4
4
  const App = () => {
5
5
  return (
6
- <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center', minHeight: '100vh' }}>
7
- <Text variant="h1">Welcome to {{projectName}}</Text>
8
- <Text variant="body" style={{ marginTop: 20, textAlign: 'center' }}>
9
- This is a React web application built with the Idealyst Framework.
10
- </Text>
11
- <Button
12
- title="Get Started"
13
- onPress={() => console.log('Button pressed!')}
14
- style={{ marginTop: 20 }}
15
- />
16
- </View>
6
+ <NavigatorProvider route={ExampleStackRouter} />
17
7
  );
18
8
  };
19
9
 
@@ -20,7 +20,6 @@ export default defineConfig({
20
20
  plugins: [
21
21
  ['react-native-unistyles/plugin', {
22
22
  root: 'src',
23
- debug: true,
24
23
  autoProcessPaths: ['@idealyst/components', '@idealyst/navigation', '@idealyst/theme'],
25
24
  }],
26
25
  ['@idealyst/components/plugin/web', { root: 'src' }]