Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added build and run tasks for iphone and android
- Loading branch information
Showing
8 changed files
with
110 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module.exports = (tintan)-> | ||
Tintan = tintan.constructor | ||
|
||
build_deps = [] | ||
|
||
namespace 'build', -> | ||
|
||
if Tintan.appXML().targets 'iphone' | ||
build_deps.push 'build:iphone' | ||
desc 'Build for iPhone' | ||
task 'iphone', -> | ||
Tintan.$.tipy ['iphone', 'builder.py'], 'build', | ||
Tintan.$.ios_version(), process.cwd(), Tintan.appXML().id(), Tintan.appXML().name() | ||
|
||
if Tintan.appXML().targets 'android' | ||
build_deps.push 'build:android' | ||
desc 'Build for Android' | ||
task 'android', -> | ||
Tintan.$.tipy ['android', 'builder.py'], 'build', | ||
Tintan.appXML().name(), Tintan.$.android_home(), process.cwd(), Tintan.appXML().id() | ||
|
||
desc 'Build sources' | ||
task 'build', build_deps |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,24 @@ | ||
module.exports = (tintan)-> | ||
|
||
fastdev = tintan.constructor.$.fastdev | ||
Tintan = tintan.constructor | ||
|
||
namespace 'fastdev', -> | ||
fastdev = Tintan.$.fastdev | ||
|
||
desc 'Start fastdev server' | ||
task 'start', -> fastdev 'start' | ||
if Tintan.appXML().targets 'android' | ||
|
||
desc 'Stop fastdev server' | ||
task 'stop', -> fastdev 'stop' | ||
namespace 'fastdev', -> | ||
|
||
desc 'Get the status of the fastdev server' | ||
task 'status', -> fastdev 'status' | ||
desc 'Start fastdev server' | ||
task 'start', -> fastdev 'start' | ||
|
||
desc 'Restart the app connected to this fastdev server' | ||
task 'restart', -> fastdev 'restart-app' | ||
desc 'Stop fastdev server' | ||
task 'stop', -> fastdev 'stop' | ||
|
||
desc 'Kill the app connected to this fastdev server' | ||
task 'kill', -> fastdev 'kill-app' | ||
desc 'Get the status of the fastdev server' | ||
task 'status', -> fastdev 'status' | ||
|
||
desc 'Restart the app connected to this fastdev server' | ||
task 'restart', -> fastdev 'restart-app' | ||
|
||
desc 'Kill the app connected to this fastdev server' | ||
task 'kill', -> fastdev 'kill-app' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
module.exports = (tintan)-> | ||
Tintan = tintan.constructor | ||
|
||
namespace 'run', -> | ||
|
||
if Tintan.appXML().targets 'ipad' | ||
desc 'Run the application on iPad emulator' | ||
task 'ipad', -> | ||
Tintan.$.tipy ['iphone', 'builder.py'], 'simulator', | ||
Tintan.$.ios_version(), process.cwd(), Tintan.appXML().id(), Tintan.appXML().name(), | ||
'ipad', 'retina' | ||
|
||
if Tintan.appXML().targets 'iphone' | ||
desc 'Run the application on iPhone emulator' | ||
task 'iphone', -> | ||
Tintan.$.tipy ['iphone', 'builder.py'], 'simulator', | ||
Tintan.$.ios_version(), process.cwd(), Tintan.appXML().id(), Tintan.appXML().name(), | ||
'iphone', 'retina' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters