newcandies 0.1.3 → 0.1.4
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/dist/index.js +12 -9
- package/package.json +16 -6
package/dist/index.js
CHANGED
|
@@ -221,7 +221,6 @@ async function writeBaseline({ dest, name, withQuery }) {
|
|
|
221
221
|
return {
|
|
222
222
|
presets: ['babel-preset-expo'],
|
|
223
223
|
plugins: [
|
|
224
|
-
'expo-router/babel',
|
|
225
224
|
'react-native-reanimated/plugin'
|
|
226
225
|
]
|
|
227
226
|
};
|
|
@@ -234,8 +233,8 @@ const { withUniwindConfig } = require('uniwind/metro');
|
|
|
234
233
|
const config = getDefaultConfig(__dirname);
|
|
235
234
|
|
|
236
235
|
module.exports = withUniwindConfig(config, {
|
|
237
|
-
cssEntryFile: './
|
|
238
|
-
dtsFile: './
|
|
236
|
+
cssEntryFile: './global.css',
|
|
237
|
+
dtsFile: './uniwind-types.d.ts',
|
|
239
238
|
});
|
|
240
239
|
`;
|
|
241
240
|
await fs.writeFile(path.join(dest, "metro.config.js"), metro);
|
|
@@ -245,17 +244,21 @@ module.exports = withUniwindConfig(config, {
|
|
|
245
244
|
jsx: "react-native",
|
|
246
245
|
target: "ES2020",
|
|
247
246
|
moduleResolution: "node",
|
|
248
|
-
types: ["react", "react-native"
|
|
247
|
+
types: ["react", "react-native"]
|
|
249
248
|
},
|
|
250
|
-
include: ["app", "./
|
|
249
|
+
include: ["app", "./uniwind-types.d.ts", "./expo-env.d.ts"]
|
|
251
250
|
};
|
|
252
251
|
await fs.writeJSON(path.join(dest, "tsconfig.json"), tsconfig, { spaces: 2 });
|
|
252
|
+
const expoEnv = `/// <reference types="expo" />
|
|
253
|
+
/// <reference types="expo-router" />
|
|
254
|
+
`;
|
|
255
|
+
await fs.writeFile(path.join(dest, "expo-env.d.ts"), expoEnv);
|
|
253
256
|
const appDir = path.join(dest, "app");
|
|
254
257
|
await fs.ensureDir(appDir);
|
|
255
258
|
const easJson = {
|
|
256
259
|
cli: { version: ">= 7.0.0" },
|
|
257
260
|
build: {
|
|
258
|
-
development: { developmentClient: true, distribution: "internal" },
|
|
261
|
+
development: { android: { buildType: "apk" }, developmentClient: true, distribution: "internal" },
|
|
259
262
|
preview: { distribution: "internal" },
|
|
260
263
|
production: {}
|
|
261
264
|
},
|
|
@@ -280,10 +283,10 @@ module.exports = withUniwindConfig(config, {
|
|
|
280
283
|
}
|
|
281
284
|
}
|
|
282
285
|
`;
|
|
283
|
-
await fs.writeFile(path.join(
|
|
286
|
+
await fs.writeFile(path.join(dest, "global.css"), globalCss);
|
|
284
287
|
{
|
|
285
288
|
const rootLayout = withQuery ? `import 'react-native-gesture-handler';
|
|
286
|
-
import '
|
|
289
|
+
import '../global.css';
|
|
287
290
|
import { Slot } from 'expo-router';
|
|
288
291
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
289
292
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
|
@@ -305,7 +308,7 @@ const RootLayout = () => {
|
|
|
305
308
|
|
|
306
309
|
export default RootLayout;
|
|
307
310
|
` : `import 'react-native-gesture-handler';
|
|
308
|
-
import '
|
|
311
|
+
import '../global.css';
|
|
309
312
|
import { Slot } from 'expo-router';
|
|
310
313
|
import { GestureHandlerRootView } from 'react-native-gesture-handler';
|
|
311
314
|
import { SafeAreaProvider } from 'react-native-safe-area-context';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "newcandies",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Scaffold Expo Router + Uniwind React Native apps with layered templates.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -12,16 +12,26 @@
|
|
|
12
12
|
"README.md",
|
|
13
13
|
"LICENSE"
|
|
14
14
|
],
|
|
15
|
-
"keywords": [
|
|
15
|
+
"keywords": [
|
|
16
|
+
"expo",
|
|
17
|
+
"react-native",
|
|
18
|
+
"expo-router",
|
|
19
|
+
"tailwind",
|
|
20
|
+
"uniwind",
|
|
21
|
+
"cli",
|
|
22
|
+
"scaffold"
|
|
23
|
+
],
|
|
16
24
|
"license": "MIT",
|
|
17
|
-
"engines": {
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=18"
|
|
27
|
+
},
|
|
18
28
|
"scripts": {
|
|
19
|
-
"build": "tsup src/index.ts --format esm --clean",
|
|
20
|
-
"dev": "tsup src/index.ts --format esm --watch --clean=false",
|
|
29
|
+
"build": "tsup src/index.ts --format esm --clean",
|
|
30
|
+
"dev": "tsup src/index.ts --format esm --watch --clean=false",
|
|
21
31
|
"start": "node dist/index.js",
|
|
22
32
|
"prepublishOnly": "npm run build"
|
|
23
33
|
},
|
|
24
|
-
"dependencies": {
|
|
34
|
+
"dependencies": {
|
|
25
35
|
"@clack/prompts": "1.0.0-alpha.6",
|
|
26
36
|
"commander": "14.0.2",
|
|
27
37
|
"execa": "9.6.0",
|