Reputation: 13713
I recently wrote a small hack to enable writing Titanium apps with TypeScript (https://github.com/developer82/Ti.TypeScript). This involves editing the SDK alloy compiler script.
As you can tell from what I've written the script is located at /Users/YOUR_USERNAME/.appcelerator/install/SDK_VERSION/package/node_modules/alloy/Alloy/commands/compile/index.js
When I run my project from Titanium Studio it works great. However when I try to run from command line using ti build -p ios
I'm getting an error This project requires the TypeScript hack in Titnaium SDK
- which is a validation I wrote that the hack was applied to the compiler.
The reason for this is that running from command line, the CLI is looking for alloy in /usr/local/bin/alloy
- I learned that from the following output:
[INFO] Executing Alloy compile: /usr/local/bin/node /usr/local/bin/alloy compile /Users/ophir/Documents/Appcelerator_Studio_Workspace/MY_PROJECT/app --config platform=ios,version=0,simtype=none,devicefamily=universal,deploytype=development,target=simulator
Why the different location? Why the CLI doesn't work like Appcelerator Studio? how can I make it work like Appc Studio?
Upvotes: 0
Views: 272
Reputation: 13713
Solution turned up to simpler than I thought... instead of using ti
command I started using appc
command:
appc run --platform iphone --liveview
I think ti
is the open source version (which uses the alloy installed from node) and appc
is the Appcelerator platform (that's what Appcelerator Studio runs).
Upvotes: 1