8000 v3 by morten-olsen · Pull Request #1 · morten-olsen/bob-the-algorithm · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

v3 #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

v3 #1

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
70 changes: 70 additions & 0 deletions .github/workflows/expo-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
name: Expo Publish
on:
workflow_dispatch:
push:
branches:
- main
- v3
jobs:
publish-web:
name: Publish web version
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v2.3.1 # If you're using actions/checkout@v2 you must set persist-credentials to false in most cases for the deployment to work correctly.
with:
persist-credentials: false

- name: Install and Build 🔧
run: |
corepack enable
yarn install
yarn build:web
yarn build:storybook
cp -r packages/ui/public packages/app/web-build/design-system
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@4.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: packages/app/web-build
publish-native:
name: Publish native versions
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v2
with:
node-version: 14.x

- uses: expo/expo-github-action@v6
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}

- run: |
git config --global user.email "github-action@example.com"
git config --global user.name "Github Bot"
yarn version --new-version=$BUILD_VERSION
working-directory: packages/app
env:
BUILD_VERSION: 1.${{ github.run_id }}.${{ github.run_number }}

- run: |
corepack enable
yarn install

- run: echo $BUILD_VERSION

# - run: eas build -p android --non-interactive

- run: eas build -p ios --non-interactive
working-directory: packages/app
env:
EXPO_APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.EXPO_APPLE_APP_SPECIFIC_PASSWORD }}

- run: eas submit --platform ios --non-interactive --latest
working-directory: packages/app
env:
EXPO_APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.EXPO_APPLE_APP_SPECIFIC_PASSWORD }}
53 changes: 53 additions & 0 deletions .github/workflows/expo-pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Deploy Expo Preview

on:
pull_request:

jobs:
deploy_branch_preview:
name: Deploy Branch Preview
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- uses: actions/setup-node@v1
with:
node-version: 12.x

- uses: expo/expo-github-action@v5
with:
expo-packager: yarn
expo-username: ${{ secrets.EXPO_CLI_USERNAME }}
expo-password: ${{ secrets.EXPO_CLI_PASSWORD }}
expo-cache: true

- name: Cache Node Modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.cache/yarn
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Install Packages
run: |
corepack enable
yarn install

- name: Expo Publish Channel
run: expo publish --non-interactive --release-channel pr${{ github.event.number }}
working-directory: packages/app

- name: Add Comment To PR
uses: mshick/add-pr-comment@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
EXPO_PROJECT: "@${{ secrets.EXPO_CLI_USERNAME }}/bob"
with:
message: |
## Application
![Expo QR](https://api.qrserver.com/v1/create-qr-code/?size=250x250&data=exp://exp.host/${{ env.EXPO_PROJECT }}?release-channel=pr${{ github.event.number }})
Published to https://exp.host/${{ env.EXPO_PROJECT }}?release-channel=pr${{ github.event.number }}
25 changes: 0 additions & 25 deletions .github/workflows/publish-web.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/*.log
/.yarn
node_modules/
.expo/
dist/
Expand Down
4 changes: 0 additions & 4 deletions App.tsx

This file was deleted.

34 changes: 0 additions & 34 deletions app.json

This file was deleted.

5 changes: 5 additions & 0 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"useWorkspaces": true,
"npmClient": "yarn",
"version": "independent"
}
68 changes: 11 additions & 57 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,65 +1,19 @@
{
"name": "bob",
"version": "1.0.0",
"main": "node_modules/expo/AppEntry.js",
"homepage": "/bob-the-algorithm",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject",
"test": "jest --watchAll"
},
"jest": {
"preset": "jest-expo"
},
"dependencies": {
"@expo/vector-icons": "^12.0.0",
"@react-native-async-storage/async-storage": "~1.15.0",
"@react-navigation/bottom-tabs": "^6.0.5",
"@react-navigation/native": "^6.0.2",
"@react-navigation/native-stack": "^6.1.0",
"chroma-js": "^2.4.2",
"date-fns": "^2.28.0",
"expo": "~44.0.0",
"expo-asset": "~8.4.4",
"expo-calendar": "~10.1.0",
"expo-constants": "~13.0.0",
"expo-font": "~10.0.4",
"expo-linking": "~3.0.0",
"expo-location": "~14.0.1",
"expo-random": "^12.1.2",
"expo-splash-screen": "~0.14.0",
"expo-status-bar": "~1.2.0",
"expo-task-manager": "~10.1.0",
"expo-updates": "~0.11.7",
"expo-web-browser": "~10.1.0",
"parse-css-color": "^0.2.1",
"react": "17.0.1",
"react-dom": "17.0.1",
"react-native": "0.64.3",
"react-native-calendar-strip": "^2.2.5",
"react-native-get-random-values": "^1.8.0",
"react-native-safe-area-context": "3.3.2",
"react-native-screens": "~3.10.1",
"react-native-web": "0.17.1",
"string-to-color": "^2.2.2",
"styled-components": "^5.3.5"
"postinstall": "lerna bootstrap",
"dev": "yarn workspace @morten-olsen/bob start",
"build:web": "yarn workspace @morten-olsen/bob build:web",
"build:storybook": "yarn workspace @morten-olsen/ui build:storybook",
"dev:storybook": "yarn workspace @morten-olsen/ui dev"
},
"workspaces": [
"packages/*"
],
"private": true,
"devDependencies": {
"@babel/core": "^7.12.9",
"@types/chroma-js": "^2.1.3",
"@types/react": "~17.0.21",
"@types/react-dom": "^18.0.3",
"@types/react-native": "~0.64.12",
"@types/styled-components-react-native": "^5.1.3",
"babel-plugin-module-resolver": "^4.1.0",
"expo-cli": "^5.4.3",
"jest": "^26.6.3",
"jest-expo": "~44.0.1",
"react-test-renderer": "17.0.1",
"typescript": "~4.3.5"
},
"private": true
"lerna": "^4.0.0"
}
}
File renamed without changes.
15 changes: 15 additions & 0 deletions packages/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
/*.log
node_modules/
.expo/
dist/
npm-debug.*
*.jks
*.p8
*.p12
*.key
*.mobileprovision
*.orig.*
web-build/

# macOS
.DS_Store
51 changes: 51 additions & 0 deletions packages/app/app.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
const pkg = require('./package.json');
const config = {
expo: {
name: 'Bob',
slug: 'bob',
version: pkg.version,
orientation: 'portrait',
icon: './assets/images/icon.png',
scheme: 'bobthealgorithm',
userInterfaceStyle: 'automatic',
splash: {
image: './assets/images/splash.png',
resizeMode: 'contain',
backgroundColor: '#ffffff',
},
updates: {
fallbackToCacheTimeout: 0,
},
assetBundlePatterns: ['**/*'],
ios: {
supportsTablet: true,
bundleIdentifier: 'pro.mortenolsen.bob',
buildNumber: pkg.version,
config: {
usesNonExemptEncryption: false,
},
},
android: {
adaptiveIcon: {
foregroundImage: './assets/images/adaptive-icon.png',
backgroundColor: '#ffffff',
},
package: 'pro.mortenolsen.bob',
},
web: {
favicon: './assets/images/favicon.png',
},
// hooks: {
// postPublish: [
// {
// file: 'sentry-expo/upload-sourcemaps',
// config: {
// setCommits: true,
// },
// },
// ],
// },
},
};

module.exports = config;
File renamed without changes
File renamed without changes
File renamed without changes
3 changes: 2 additions & 1 deletion babel.config.js → packages/app/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
module.exports = function(api) {
api.cache(true);
api.cache.using(() => process.env.NODE_ENV);
return {
presets: ['babel-preset-expo'],
plugins: [
[require.resolve('babel-plugin-module-resolver'), {
alias: {
'#': './src',
'@morten-olsen/ui': '@morten-olsen/ui/src',
},
}],
],
Expand Down
25 changes: 25 additions & 0 deletions packages/app/eas.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"cli": {
"version": ">= 0.42.4"
},
"build": {
"development": {
"developmentClient": true,
"distribution": "internal"
},
"preview": {
"distribution": "internal"
},
"production": {
}
},
"submit": {
"production": {
"ios": {
"appleId": "morten@olsen.pro",
"appleTeamId": "D2944KU2BE",
"ascAppId": "1623552387"
}
}
}
}
1 change: 1 addition & 0 deletions packages/app/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
import './src/index';
Loading
0