-
-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ff2b4ae
commit 03f7a78
Showing
89 changed files
with
502 additions
and
455 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
legacy-peer-deps=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# NativeScript | ||
hooks/ | ||
node_modules/ | ||
platforms/ | ||
|
||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# General | ||
.DS_Store | ||
.AppleDouble | ||
.LSOverride | ||
.idea | ||
.cloud | ||
.project | ||
tmp/ | ||
typings/ | ||
|
||
# Visual Studio Code | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
legacy-peer-deps=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# NativeScript with Solid Blank Template | ||
App templates help you jump start your native cross-platform apps with built-in UI elements and best practices. Save time writing boilerplate code over and over again when you create new apps. | ||
|
||
## Quick Start | ||
Execute the following command to create an app from this template: | ||
|
||
``` | ||
ns create my-blank-solid --template @nativescript/template-blank-solid | ||
``` | ||
|
||
> Note: This command will create a new NativeScript app that uses the latest version of this template published to [npm](https://www.npmjs.com/package/@nativescript/template-blank-solid). | ||
If you want to create a new app that uses the source of the template from the `main` branch, you can execute the following: | ||
|
||
``` | ||
# clone nativescript-app-templates monorepo locally | ||
git clone git@github.com:NativeScript/nativescript-app-templates.git | ||
# create app template from local source (all templates are in the 'packages' subfolder of the monorepo) | ||
ns create my-blank-solid --template nativescript-app-templates/packages/template-blank-solid | ||
``` | ||
|
||
**NB:** Please, have in mind that the main branch may refer to dependencies that are not on NPM yet! | ||
|
||
## Get Help | ||
The NativeScript framework has a vibrant community that can help when you run into problems. | ||
|
||
Try [joining the NativeScript community Discord](https://nativescript.org/discord). The Discord channel is a great place to get help troubleshooting problems, as well as connect with other NativeScript developers. | ||
|
||
If you have found an issue with this template, please report the problem in the [NativeScript repository](https://github.com/NativeScript/NativeScript/issues). | ||
|
||
## Contributing | ||
|
||
We love PRs, and accept them gladly. Feel free to propose changes and new ideas. We will review and discuss, so that they can be accepted and better integrated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { NativeScriptConfig } from '@nativescript/core'; | ||
|
||
export default { | ||
id: 'org.nativescript.app', | ||
appPath: 'src', | ||
appResourcesPath: 'App_Resources', | ||
android: { | ||
v8Flags: '--expose_gc', | ||
markingMode: 'none', | ||
}, | ||
} as NativeScriptConfig; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"name": "@nativescript/template-blank-solid", | ||
"main": "src/app.js", | ||
"version": "8.7.0", | ||
"description": "Nativescript Starter with Solid", | ||
"author": "NativeScript Team <oss@nativescript.org>", | ||
"license": "Apache-2.0", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/NativeScript/nativescript-app-templates" | ||
}, | ||
"homepage": "https://github.com/NativeScript/nativescript-app-templates", | ||
"bugs": { | ||
"url": "https://github.com/NativeScript/NativeScript/issues" | ||
}, | ||
"publishConfig": { | ||
"access": "public" | ||
}, | ||
"files": [ | ||
"src", | ||
"App_Resources", | ||
"hooks", | ||
"tools", | ||
"!tools/assets", | ||
"patches", | ||
"types", | ||
".editorconfig", | ||
".npmrc", | ||
"tailwind.config.js", | ||
"tsconfig.json", | ||
"webpack.config.js" | ||
], | ||
"keywords": [ | ||
"nativescript", | ||
"mobile", | ||
"{N}", | ||
"solid", | ||
"solidjs" | ||
], | ||
"scripts": {}, | ||
"dependencies": { | ||
"@nativescript-community/solid-js": "^0.0.6", | ||
"@nativescript/core": "~8.7.0", | ||
"dominative": "^0.1.3", | ||
"solid-js": "^1.8.16", | ||
"undom-ng": "^1.1.2" | ||
}, | ||
"devDependencies": { | ||
"@babel/core": "^7.24.4", | ||
"@babel/preset-env": "^7.24.4", | ||
"@babel/preset-typescript": "^7.24.1", | ||
"@nativescript/tailwind": "~2.1.0", | ||
"@nativescript/webpack": "~5.0.0", | ||
"babel": "^6.23.0", | ||
"babel-loader": "^9.1.3", | ||
"babel-preset-solid": "^1.8.8", | ||
"solid-refresh": "^0.7.5", | ||
"tailwindcss": "~3.4.3" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
@tailwind base; | ||
@tailwind components; | ||
@tailwind utilities; | ||
|
||
.h-center { | ||
/* {N} specific css */ | ||
horizontal-align: center; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
import { Application } from '@nativescript/core'; | ||
import { render } from '@nativescript-community/solid-js'; | ||
|
||
import { App } from './app.jsx'; | ||
|
||
document.body.actionBarHidden = false; | ||
render(App, document.body); | ||
|
||
const create = () => document; | ||
|
||
Application.run({ create }); |
Oops, something went wrong.