-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (44 loc) · 1.88 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
dev.setup:
go install github.com/bokwoon95/wgo@latest
go install github.com/a-h/templ/cmd/templ@latest
dev.setup.mobile:
git clone https://github.com/Instawork/hyperview.git
sed -i'' -e "s|export const ENTRY_POINT_URL = 'http://0.0.0.0:8085/index.xml';|export const ENTRY_POINT_URL = 'http://0.0.0.0:42069/';|" hyperview/demo/src/constants.ts
cd hyperview && yarn
cd hyperview/demo && yarn && \
yarn add react-native-communications && \
yarn add react-native-root-toast && \
yarn add react-native-swipeable\
cp app/hypermedia/mobile/static/js/{email.js,phone.js,toast.js,swipeable.js,HyperviewScreen.tsx} hyperview/demo/src
xcodebuild -runFirstLaunch
xcodebuild -downloadPlatform iOS
up:
go run app/main.go
templ:
templ generate
dev:
./run.sh
@#wgo -file=.go -file=.templ -file=.js -file=.css -xfile=_templ.go templ generate :: go run app/contact/main.go
mobile:
cd hyperview/demo && yarn ios
run: templ
@trap 'osascript -e "tell application \"Google Chrome\" to close (tabs of window 1 whose URL contains \"http://localhost:42069/\")"' INT TERM EXIT && \
open -a "Google Chrome" http://localhost:42069/ && \
wgo run -xdir=hyperview -xdir=vendor -file=.go -file=.templ -file=.css -file=.js -xfile=_templ.go -verbose app/main.go | go run app/tooling/main.go
tidy:
go mod tidy
go mod vendor
# curl -i -X POST http://localhost:42069/api/v1/contacts
android:
/Users/adam/Library/Android/sdk/emulator/emulator -avd Pixel_8_Pro_API_UpsideDownCakePrivacySandbox -dns-server 8.8.8.8
#import OpenPhone from './phone';
#import OpenEmail from './email';
#import ShowToast from './toast';
#import SwipeableRow from "./swipeable";
#console.log(HyperviewScreen.Behaviors);
#HyperviewScreen.Behaviors = [OpenPhone, OpenEmail, ShowToast];
#let components = [SwipeableRow];
#components={components}
# to move warnings from react-native:
#import { LogBox } from 'react-native';
#LogBox.ignoreAllLogs();