Coder Social home page Coder Social logo

sugarti's Introduction

#####SugarTi adds some sugar to the Titanium CLI syntax.

I'm lazy and the Titanium CLI has too many options I have to type, besides that it doesn't install (yet) the app directly on the iOs device but uses iTunes. So I made this to save some typing and time :)

It's inspired by clti and uses a version of fruitstrap

#####Features

For now it only builds and runs in the iPhone simulator (no iPad or android) and deploys to an iOs device. See ToDo.

The script also tries to find the provisoning profile to use when deploying to device so there is no need to type it yourself.

#####Install

npm install -g sugarti

#####Usage

You will need to be in the root folder of your project, where tiapp.xml resides.

Dans-MacBook-Pro:app Dan$ sti

Available commands:

  i5             Run project in iPhone 5 simulator - iPhone (Retina 4-inch).
  i4             Run project in iPhone 4 simulator - iPhone (Retina 3.5-inch).
  i3             Run project in iPhone 3 simulator - iPhone.
  di             Deploy to device without using iTunes :)

  ri             Hot RELOAD the app in simulator - Only the changes in JS files will have effect!
  
  clean          Clean the iOs project and start fresh.

so

sti i5

should build and run the project in the iPhone5 simulator.

sti ri is a very handy command, as it will restart only the application without rebuilding or even restarting the simulator. However, only the changes in the javascript files will have effect. If you modify/add assets or settings in tiapp.xml you will have to make a new build (sti with i3,i4 or i5).

#####Troubleshooting Sometimes fruitstrap cannot install the app on the device.

[ !! ] Unable to install package. (e800002d)

Usually disconnecting the device and connecting it again, followed by a sti di does the trick.

If this doesn't work, clean the project and try again.

#####Even more troubleshooting SugarTi is tested with titanium CLI 3.1.0 only. So please check that you have this version installed.

Also, all the build commands are wrappers around titanium and if SugarTi fails please check that Titnaium CLI works wih direct commands first.

#####ToDo

  • Add more iOS options (iPad, iOS version )
  • Add Android
  • Add (maybe) SDK to use.

#####License MIT

#####Pull requests welcome ;)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.