建立你的第一個應用

我們只是使用 CLI 和 Atom 建立一個空的 Alloy 應用程式。

開啟一個新終端並新增以下內容:

ti create --id com.test -d . -n APPNAME -p all -t app -u http://migaweb.de
cd APPNAME/
alloy new

這將建立一個基本應用程式(名稱:APPNAME,包識別符號:com.test,型別:app,platform:all),然後將其轉換為 Alloy 專案。

你還可以使用 Atom 包 ti-create

它將在樹檢視中開啟的資料夾中建立一個新專案。 “建立控制器/視窗小部件”僅適用於現有 Alloy 專案(開啟資料夾 - 選擇專案資料夾)。

來源: https//github.com/m1ga/titanium_with_atom#create-your-first-app