tiny #tiappcamp

12
TiNy November 2nd 2013 github.com/fokkezb/tn

Upload: fokke-zandbergen

Post on 22-Jan-2018

234 views

Category:

Mobile


0 download

TRANSCRIPT

Page 1: TiNy #TiAppCamp

TiNy November 2nd 2013 github.com/fokkezb/tn

Page 2: TiNy #TiAppCamp
Page 3: TiNy #TiAppCamp
Page 4: TiNy #TiAppCamp

Recognize these?

$ titanium create —-id my.app —-name MyApp —-platform ios —-workspace-dir .

$ titanium build —-platform ios —-device-family iphone --target dist-appstore -—distribution-name "Fokke Zandbergen (WM8665AMW4)" —-pp-uuid "9D50EBFE-09E1-41DF-B292-A58183E83925"

$ alloy compile —-config platform=ios && tishadow run —-update

Page 5: TiNy #TiAppCamp

Imagine this!

$ tn create MyApp

$ tn update

$ tn "Fokke Zandbergen (WM8665AMW4)"9D50EBFE-09E1-41DF-B292-A58183E83925

Page 6: TiNy #TiAppCamp

Smarts

$ tn

$ tn update android ~/my.keystore

$ tn adhoc "Fokke Zandbergen (WM8665AMW4)" 9D50EBFE-09E1-41DF-B292-A58183E83925 3.1.2.GA

$ tn —retina -tall

$ tn R=Fokke$ tn R:Fokke$ tn -R Fokke

Page 7: TiNy #TiAppCamp

Recipes

$ tn my-key: ~/dev/.keystore$ tn my-alias: L=fokkezb$ tn my-pass: P-iloveti$ tn ship-it: play my-key my-alias my-pass

$ tn ah: adhoc

$ tn ship-it

Page 8: TiNy #TiAppCamp

Recipes

$ tn recipes TiNy 0.1.2 by Fokke Zandbergen <www.fokkezb.nl> The simple CLI for Titanium, Alloy and related tools. !Recipes defined by: system, user and user-override !adhoc: dist-adhoc appstore: dist-appstore crap: android device desktop: ~/Desktop ipad6: S=6.1 Y=ipad ipad7: S=7.0 Y=ipad iphone6: S=6.0 iphone7: S=7.0 mrmovie-appstore: appstore 38A0E98E-63C7-4E02-B1C8-E2C4AD65836E "Tera.nl bv (E8978765FC)”

Page 9: TiNy #TiAppCamp

Verbose

$ tn appstore 38A0E98E-63C7-4E02-B1C8-E2C4AD65836E "Tera.nl bv (E8978765FC)" verbose TiNy 0.1.2 by Fokke Zandbergen <www.fokkezb.nl> The simple CLI for Titanium, Alloy and related tools. ![TRACE] Expanded 'appstore' resulting in: dist-appstore 38A0E98E-63C7-4E02-B1C8-E2C4AD65836E Tera.nl bv (E8978765FC) !Command: ti build -T dist-appstore -P 38A0E98E-63C7-4E02-B1C8-E2C4AD65836E -R "Tera.nl bv (E8978765FC)" -p ios !What would you like me to do with this? 1) Execute it 2) Save the original as a recipe (non-verbose) 3) Exit : 2 !What do you want to name it? : mrmovie-appstore !Setting user recipe: mrmovie-appstore

Page 10: TiNy #TiAppCamp

$ sudo npm install -g tn

Get it!

Page 11: TiNy #TiAppCamp

Challenges

[X] implement "titanium create”

[X] support custom recipes

[ ] support chaining commands (alloy + tishadow)

[ ] add "alloy compile"

[ ] add "tishadow run”

[ ] add genymotion

[ ] rewrite for modular/pluggable architecture

Page 12: TiNy #TiAppCamp

Hack it!

# fork it on GitHub

$ git clone https://github.com/YOU/tn.git

$ cd tn

$ git remote add fokkezb https://github.com/fokkezb/tn.git

$ npm install$ sudo npm link