Giter VIP home page Giter VIP logo

faster-titanium's Introduction

FasterTitanium: Accelerate Titanium development

Circle CI npm version

ti build -p ios --faster

Live a happier Titanium life!

demo

Feature

  • immediate reload on file changed
  • both Alloy|non-Alloy support
  • stable, robust connection
  • no trouble with require
  • native module support
  • web UI support
  • readable, well-documented code written in ES6+ JavaScript

Installation

$ npm install -g faster-titanium

If you install with sudo and get the error Unable to write config file... use the following command:

$ npm install -g faster-titanium --unsafe-perm

That's all.

Note that your Node.js has to be greater than v0.12.

Usage

Run ti build with --faster option.

ti build -p ios --faster

That's all.

debug mode

ti build -p ios --faster --ft-debug

Debug mode shows more logs in Titanium. You can switch this option later via web UI.

If you want to show server debug log, try

DEBUG=faster-titanium:* ti build -p ios --faster

Change port number of the web server

ti build -p ios --faster --ft-port 3000

Web UI

web-ui

Access to the URL: http://localhost:4157

Connection state

It shows the state of current connection with Titanium app.

Reload button

Reload App button can reload Titanium app

Change loading style

Clicking Value column of loading style enable you to select loading style.

  • auto-reload: App will reload everytime a file changes.
  • auto-reflect: Everytime a file changes, app clear the module cache and try to fetch new js file in require().
  • manual: Do nothing.

Default value is auto-reload.

logging options

  • debug log: show/hide FasterTitanium debug log
  • server log: show/hide Titanium log to server console
  • titanium log: show/hide Titanium log to Titanium console

CLI

faster-ti command is available.

Check --faster flag is installed correctly

faster-ti installed

(Re-)install --faster flag

faster-ti install

Restart the server

If ti process is killed, FasterTitanium server is also killed. You can restart FasterTitanium server by the following command.

faster-ti restart -f <port number1> -n <port number2> -p <platform name> -t <acceess token> [project dir]

Too many options? No problem.

When you terminate the ti process, the exact restart command will be shown in stdout at the end of process. restart-cli

Just copy and paste the line and you can restart the server!

restart-cli-result

Uninstall --faster flag

faster-ti uninstall

Uninstalling FasterTitanium itself is

npm uninstall -g faster-titanium

LICENSE

MIT

faster-titanium's People

Contributors

isseium avatar rkueny avatar shinout avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

faster-titanium's Issues

loading style row disappears from table

When I clicked change button without choosing styles,
image

loading style row disappears from the table.
I reloaded this page and loading style row didn't appear.
image

Error 'Unable to write to socket' running on Android device

Running faster-titanium on an android device with

titanium build -p android -T device --skip-js-minify --faster

shows this error when trying to update the app:

[WARN]  W/System.err: java.io.IOException: Unable to write to socket, not connected
[WARN]  W/System.err:   at ti.modules.titanium.network.socket.TCPProxy.write(TCPProxy.java:423)
[WARN]  W/System.err:   at org.appcelerator.kroll.runtime.v8.V8Function.nativeInvoke(Native Method)
[WARN]  W/System.err:   at org.appcelerator.kroll.runtime.v8.V8Function.callSync(V8Function.java:57)
[WARN]  W/System.err:   at org.appcelerator.kroll.runtime.v8.V8Function.handleMessage(V8Function.java:82)
[WARN]  W/System.err:   at android.os.Handler.dispatchMessage(Handler.java:98)
[WARN]  W/System.err:   at android.os.Looper.loop(Looper.java:168)
[WARN]  W/System.err:   at org.appcelerator.kroll.KrollRuntime$KrollRuntimeThread.run(KrollRuntime.java:118)

Ti 5.2.0.GA
faster-ti 1.7.5
Android 6.0.1

Faster does not work when use multibyte character literal in alloy.js

Hi, @shinout.

Please try to compile following code in alloy.js.

var hoge = "あいうえお";

A simulator shows me "Unexpected EOF";

I think same reason as Unexpected token ';' bug (I reported @shinout a few days ago.)

FYI:

In my project, we use multibyte literal.
I tried to compile after following process in my project.

$ LC_ALL=C grep -v '[^ -~]' alloy.js > hoge.js                    # remove multibyte lines
$ mv hoge.js alloy.js

And then Faster does works!

avoid multiple execution

two different faster-titanium modules both run with --faster.
Avoid execution (or registration to hooks)

App Shows Black Screen

So, 4 different OSX systems, faster-titanium works great on 3 of them.
4rth system, faster-ti server starts, can hit the web interface. On the simulator, the splash screen appears, then the app just sits black.

Web interface shows no connection from the sim to the min-server.
Checked little snitch, turned little snitch off.
Changed ports, web interface always works, just never pulls the app files from the min-server.

Thoughts?

Error when installing on Windows 7

Hi,
I tried to install this package and it gave error, can you help me?. The log is below:

[email protected] postinstall C:\Users\pedro.nascimento\node_modules\faste
r-titanium
dist/bin/faster-ti install

'dist' is not recognized as an internal or external command, operable program or batch file
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "c:\Program Files (x86)\nodejs\node.exe" "c:\Program Files (x8
6)\nodejs\node_modules\npm\bin\npm-cli.js" "install" "C:/Users/pedro.nascim
ento/Downloads/faster-titanium-master/faster-titanium-master"
npm ERR! node v0.12.10
npm ERR! npm v2.14.9
npm ERR! code ELIFECYCLE

npm ERR! [email protected] postinstall: dist/bin/faster-ti install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] postinstall script 'dist/bin/faster
-ti install'.
npm ERR! This is most likely a problem with the faster-titanium package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! dist/bin/faster-ti install
npm ERR! You can get their info via:
npm ERR! npm owner ls faster-titanium
npm ERR! There is likely additional logging output above.

[email protected] preuninstall C:\Users\pedro.nascimento\AppData\Roaming\n
pm\node_modules\faster-titanium
dist/bin/faster-ti uninstall

'dist' is not recognized as an internal or external command, operable program or batch file
npm WARN continuing anyway [email protected] preuninstall: dist/bin/faster- ti uninstall
npm WARN continuing anyway Exit status 1

npm ERR! Please include the following file with any support request:

npm ERR! C:\Users\pedro.nascimento\npm-debug.log

I tried installing using git adress to the bucket, the package downloaded, npm install -g faster-titanium,

My node and npm version is on the log.

Thanks

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.