-
-
Save caridy/4279764 to your computer and use it in GitHub Desktop.
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
#!/bin/sh -ex | |
appname=${1:-hybrid} | |
bldname=$appname-bld | |
statdir=yahoo.application.$appname | |
mojitodir=/Users/caridy/repo/mojito | |
pwd | |
mojito create app hybrid $appname | |
( #build | |
cd $appname | |
pwd | |
mojito build hybridapp ../$bldname -r -n name -t tag -c build:debug | |
) | |
( #cp yui library similar to what crt/ide would do | |
cd $bldname | |
pwd | |
ln -s $mojitodir/node_modules/yui ./yahoo.libs.yui | |
) | |
( | |
#make a dummy cfg file | |
mkdir $bldname/yahoo.crt.lib | |
touch $bldname/yahoo.crt.lib/yui-cfg.js | |
tree $bldname/yahoo.crt.lib | |
) | |
open $bldname/$statdir/index.html |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment