https://github.com/nativescript/stackblitz-examples
https://github.com/nativescript/stackblitz-examples
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/nativescript/stackblitz-examples
- Owner: NativeScript
- Created: 2022-08-14T19:38:15.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-12-08T11:34:31.000Z (over 3 years ago)
- Last Synced: 2025-03-24T20:27:35.372Z (about 1 year ago)
- Language: TypeScript
- Size: 648 KB
- Stars: 1
- Watchers: 4
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# StackBlitz Examples
The examples are managed on the `main` branch only - the individual flavor branches are automatically updated when pushing to `main`
Each example is split into it's own folder within apps, for example:
```
apps/{example}/{flavor}
```
Each example can utilize shared `libs` for their examples to reuse across flavors, for example:
```
libs/nativescript-battery
```
^ is used across all `apps/battery` examples.
## Test them out locally
Since each flavor utilizes it's own node_modules dependencies you want to clean each example before running it, for example:
```
npx nx run battery-angular:clean
```
You can now try out the example:
```
npx nx run battery-angular:ios
```
> **Warning:** Do not edit the individual flavor branches manually!.
# Templates
- TypeScript: https://new.nativescript.org
- Angular: https://new.nativescript.org/angular
- JavaScript: https://new.nativescript.org/javascript
- React: https://new.nativescript.org/react
- Svelte: https://new.nativescript.org/svelte
- TypeScript: https://new.nativescript.org/typescript
- Vue: https://new.nativescript.org/vue
- https://nativescript.new
- https://nativescript.new/angular
- https://nativescript.new/javascript
- https://nativescript.new/react
- https://nativescript.new/svelte
- https://nativescript.new/typescript
- https://nativescript.new/vue
Full URLS (used in redirects)
```
/ /typescript
/angular https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/angular?file=src%2Fapp%2Fitem%2Fitems.component.html&title=NativeScript%20Starter%20Angular
/javascript https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/javascript?file=app%2Fmain-page.xml&title=NativeScript%20Starter%20JavaScript
/react https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/react?file=src%2Fcomponents%2FHomeScreen.tsx&title=NativeScript%20Starter%20React
/svelte https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/svelte?file=app%2Fcomponents%2FHome.svelte&title=NativeScript%20Starter%20Svelte
/typescript https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/typescript?file=app%2Fmain-page.xml&title=NativeScript%20Starter%20TypeScript
/vue https://stackblitz.com/fork/github/NativeScript/stackblitz-templates/tree/vue?file=app%2Fcomponents%2FHome.vue&title=NativeScript%20Starter%20Vue
```