Skip to content

Commit

Permalink
init project
Browse files Browse the repository at this point in the history
  • Loading branch information
jellydn committed Dec 31, 2023
0 parents commit 7222aa1
Show file tree
Hide file tree
Showing 37 changed files with 885 additions and 0 deletions.
42 changes: 42 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: CI

on:
push:
pull_request:

jobs:
quality:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install bun
run: npm install --global bun
- name: Install dependencies
run: bun install
- name: Run Biome
run: bun run biome ci .

type-check:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install bun
run: npm install --global bun
- name: Install dependencies
run: bun install
- name: Typecheck
run: bun run typecheck
39 changes: 39 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: preview
on: pull_request

jobs:
preview:
name: EAS Update
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: Check for EXPO_TOKEN
run: |
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions"
exit 1
fi
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: Install dependencies
run: bun install

- name: Create preview
uses: expo/expo-github-action/preview@v8
with:
command: eas update --auto
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release
on: push

jobs:
release:
name: EAS Update
runs-on: ubuntu-latest
steps:
- name: Check for EXPO_TOKEN
run: |
if [ -z "${{ secrets.EXPO_TOKEN }}" ]; then
echo "You must provide an EXPO_TOKEN secret linked to this project's Expo account in this repo's secrets. Learn more: https://docs.expo.dev/eas-update/github-actions"
exit 1
fi
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: latest

- name: Setup EAS
uses: expo/expo-github-action@v8
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- name: Install dependencies
run: bun install

- name: Publish update
run: eas update --auto
35 changes: 35 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Learn more https://docs.github.com/en/get-started/getting-started-with-git/ignoring-files

# dependencies
node_modules/

# Expo
.expo/
dist/
web-build/

# Native
*.orig.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision

# Metro
.metro-health-check*

# debug
npm-debug.*
yarn-debug.*
yarn-error.*

# macOS
.DS_Store
*.pem

# local env files
.env*.local

# typescript
*.tsbuildinfo
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

./node_modules/.bin/nano-staged
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2023 Huynh Duc Dung

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
66 changes: 66 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<h1 align="center">StickerSmash</h1>

<p align="center">A hands-on demo project utilizing Expo for app development.</p>

<p align="center">
<a href="https://www.npmjs.com/package/stickersmash" target="_blank">
<img alt="Version" src="https://img.shields.io/npm/v/stickersmash.svg">
</a>
</p>

## 🚀 Installation

Get started with StickerSmash in a few easy steps:

1. **Clone the Repository**
```bash
git clone https://github.com/jellydn/StickerSmash.git
```
2. **Navigate to the Directory**
```bash
cd StickerSmash
```
3. **Install Dependencies**
```bash
bun install
```

## 🖥 Usage

Launch the app with:

```bash
bun run start
```

## 📚 References

Enhance your understanding of Expo with these resources:

- [Expo Tutorial: Introduction](https://docs.expo.dev/tutorial/introduction/)
- [Introduction to Expo Router](https://docs.expo.dev/router/introduction/)
- [Using TypeScript with Expo](https://docs.expo.dev/guides/typescript/)
- [User Interface component libraries](https://docs.expo.dev/ui-programming/user-interface-libraries/)
- [Getting Started with Expo Go](https://docs.expo.dev/get-started/expo-go/)
- [Designing App Icons](https://docs.expo.dev/develop/user-interface/app-icons/)
- [Creating a Splash Screen](https://docs.expo.dev/develop/user-interface/splash-screen/)

## 💡 Contributing

Your contributions make our project grow! If you have suggestions or spot an issue, feel free to open an issue or submit a pull request.

## Author

👤 **Huynh Duc Dung**

- Website: https://productsway.com/
- Twitter: [@jellydn](https://twitter.com/jellydn)
- Github: [@jellydn](https://github.com/jellydn)

## ❤ Show Your Support

Enjoy using StickerSmash? Star it on GitHub and spread the word!

## 📄 License

StickerSmash is available under the [MIT License](LICENSE).
40 changes: 40 additions & 0 deletions app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"expo": {
"name": "StickerSmash",
"scheme": "stickersmash",
"slug": "StickerSmash",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./assets/icon.png",
"userInterfaceStyle": "light",
"splash": {
"image": "./assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#FDF6EA"
},
"assetBundlePatterns": ["**/*"],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./assets/adaptive-icon.png",
"backgroundColor": "#FDF6EA"
}
},
"web": {
"bundler": "metro",
"favicon": "./assets/favicon.png"
},
"plugins": ["expo-router"],
"extra": {
"router": {
"origin": false
},
"eas": {
"projectId": "bf36a687-1bf4-4b1c-89de-271591d8a152"
}
},
"owner": "dunghd"
}
}
5 changes: 5 additions & 0 deletions app/_layout.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { Slot } from "expo-router";

export default function HomeLayout() {
return <Slot />;
}
Loading

0 comments on commit 7222aa1

Please sign in to comment.