Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/per-starter-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# .github/workflows/release-template.yml

name: Release All Starters

on:
workflow_dispatch: # Allows manual trigger
push:
tags:
- 'v*.*.*' # Triggers on tags like v1.0.0

jobs:
build-and-release:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Get version from tag
id: get_version
run: |
TAG="${GITHUB_REF##*/}"
VERSION="${TAG#v}"
echo "version=$VERSION" >> $GITHUB_OUTPUT

- name: Zip all starter directories
run: |
mkdir -p dist
for dir in angular astro-shadcn bolt-expo bolt-qwik bolt-remotion bolt-vite-react-ts bootstrap-5 egg express-simple graphql gsap-next gsap-nuxt gsap-react gsap-svelte gsap-sveltekit gsap-vue hono-nodejs-starter js nextjs nextjs-shadcn node nodemon quasar react-ts react rxjs slidev static sveltekit tres tutorialkit typescript vite-shadcn vue web-platform; do
if [ -d "$dir" ]; then
zip -r "dist/$dir-${{ steps.get_version.outputs.version }}.zip" "$dir" -x "$dir/node_modules/*"
fi
done

- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
tag_name: ${{ github.ref_name }}
name: "Starters v${{ steps.get_version.outputs.version }}"
files: dist/*.zip
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16 changes: 16 additions & 0 deletions bolt-expo/app/(tabs)/_layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Tabs } from 'expo-router';
import { Home } from 'lucide-react-native';

export default function TabLayout() {
return (
<Tabs>
<Tabs.Screen
name="index"
options={{
title: 'Home',
tabBarIcon: ({ color, size }) => <Home color={color} size={size} />,
}}
/>
</Tabs>
);
}
23 changes: 23 additions & 0 deletions bolt-expo/app/(tabs)/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { View, Text, StyleSheet } from 'react-native';

export default function HomeScreen() {
return (
<View style={styles.container}>
<Text style={styles.message}>Start prompting now to make changes</Text>
</View>
);
}

const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
alignItems: 'center',
padding: 16,
},
message: {
fontSize: 20,
fontWeight: '600',
textAlign: 'center',
},
});
1 change: 1 addition & 0 deletions bolt-expo/app/_layout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export default function RootLayout() {
return (
<>
<Stack screenOptions={{ headerShown: false }}>
<Stack.Screen name="(tabs)" options={{ headerShown: false }} />
<Stack.Screen name="+not-found" />
</Stack>
<StatusBar style="auto" />
Expand Down
23 changes: 23 additions & 0 deletions bolt-expo/app/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { useEffect } from 'react';
import { View, StyleSheet } from 'react-native';
import { useRouter } from 'expo-router';

export default function Index() {
const router = useRouter();

useEffect(() => {
setTimeout(() => {
//@ts-ignore
router.replace('/(tabs)');
}, 0);
}, []);

// Return an empty view while we're redirecting
return <View style={styles.container} />;
}

const styles = StyleSheet.create({
container: {
flex: 1,
},
});