Skip to content

Commit 1b0cd6e

Browse files
committed
WIP Solid
1 parent ef238cd commit 1b0cd6e

22 files changed

+373
-150
lines changed

examples/solidJs/.gitignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
# environment variables
2+
**/.env
3+
**/.env.production
4+
5+
# build output
6+
**/dist/
7+
8+
# generated types
9+
**/.astro/
10+
11+
# dependencies
12+
node_modules/
13+
14+
# logs
15+
**/npm-debug.log*
16+
**/yarn-debug.log*
17+
**/yarn-error.log*
18+
**/pnpm-debug.log*
19+
20+
# macOS-specific files
21+
**/.DS_Store
22+
23+
124
# NativeScript
225
hooks/
326
node_modules/
@@ -26,3 +49,6 @@ typings/
2649
!.vscode/tasks.json
2750
!.vscode/launch.json
2851
!.vscode/extensions.json
52+
53+
node_modules
54+
node_modules

examples/solidJs/.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/solidJs/.stackblitzrc

Lines changed: 0 additions & 5 deletions
This file was deleted.

examples/solidJs/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# NativeScript Blank Template with Solid
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { NativeScriptConfig } from '@nativescript/core';
22

33
export default {
4-
id: 'org.nativescript.app',
4+
id: 'com.solidjs.example',
55
appPath: 'src',
66
appResourcesPath: '../App_Resources',
77
android: {
88
v8Flags: '--expose_gc',
9-
markingMode: 'none',
10-
},
11-
} as NativeScriptConfig;
9+
markingMode: 'none'
10+
}
11+
} as NativeScriptConfig;

examples/solidJs/package.json

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,31 @@
11
{
2-
"name": "stackblitz-nativescript-solid",
3-
"main": "src/app.js",
2+
"name": "example",
3+
"main": "src/index.js",
44
"version": "1.0.0",
55
"private": true,
6-
"scripts": {},
76
"dependencies": {
87
"@nativescript-community/solid-js": "^0.0.6",
9-
"@nativescript/core": "~8.8.0",
8+
"@nativescript-community/ui-collectionview": "^5.3.3",
9+
"@nativescript/core": "8.8.2",
1010
"dominative": "^0.1.3",
11-
"solid-js": "^1.8.16",
11+
"solid-js": "^1.8.21",
12+
"solid-navigation": "^1.0.0-alpha.16",
1213
"undom-ng": "^1.1.2"
1314
},
1415
"devDependencies": {
15-
"@babel/core": "^7.24.4",
16-
"@babel/preset-env": "^7.24.4",
17-
"@babel/preset-typescript": "^7.24.1",
16+
"@babel/core": "^7.22.10",
17+
"@babel/preset-env": "^7.20.2",
18+
"@babel/preset-typescript": "^7.22.5",
19+
"@nativescript-dom/core-types": "^1.0.29",
20+
"@nativescript-dom/solidjs-types": "^1.0.23",
1821
"@nativescript/android": "8.8.2",
19-
"@nativescript/preview-cli": "^1.0.13",
20-
"@nativescript/stackblitz": "0.0.8",
21-
"@nativescript/tailwind": "~2.1.0",
22-
"@nativescript/webpack": "~5.0.0",
22+
"@nativescript/ios": "8.8.1",
23+
"@nativescript/webpack": "5.0.22",
2324
"babel": "^6.23.0",
2425
"babel-loader": "^9.1.3",
25-
"babel-preset-solid": "^1.8.8",
26+
"babel-preset-solid": "^1.8.19",
27+
"patch-package": "^8.0.0",
2628
"solid-refresh": "^0.7.5",
27-
"tailwindcss": "~3.4.3"
29+
"typescript": "~5.1.6"
2830
}
2931
}

examples/solidJs/src/app.css

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/solidJs/src/app.js

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/solidJs/src/app.jsx

Lines changed: 0 additions & 67 deletions
This file was deleted.

examples/solidJs/src/app.tsx

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import "./globals";
2+
import { Route, StackRouter } from "./router";
3+
import { ScreenOne } from "./routes/screen-one";
4+
import { ScreenThree } from "./routes/screen-three";
5+
import { ScreenTwo } from "./routes/screen-two";
6+
import { Home } from '~/home'
7+
import { ActionBar } from '~/ui/actionbar'
8+
9+
const App = () => {
10+
11+
return (
12+
<StackRouter initialRouteName="Home">
13+
<Route name="Home" component={Home} />
14+
<Route name="ActionBar" component={ActionBar} />
15+
<Route name="ScreenThree" co mponent={ScreenThree} />
16+
</StackRouter>
17+
);
18+
};
19+
20+
export { App };

0 commit comments

Comments
 (0)