ITコンサルの日常

ITコンサル会社に勤務する普通のITエンジニアの日常です。

JSBuilder3を動かしてみる(sencha-touch.jsを作ってみよう編)

とりあえずREADMEとか読んでみる

sencha-touch-1.0/jsbuilder/README.md

とりあえずググってみる

(参考URL) http://dev.sencha.com/deploy/JSBuilder2/Readme.txt

とりあえず起動してみる

sencha-touch-1.0\jsbuilder>JSBuilder.bat
The --projectFile or -p argument is required

sencha-touch-1.0\jsbuilder>

-p指定すりゃいんだろ

sencha-touch-1.0\jsbuilder>JSBuilder.bat -p ..\sencha-touch.jsb3
The --deployDir or -d argument is required

sencha-touch-1.0\jsbuilder>

-dも指定すりゃいいんだろ

sencha-touch-1.0\jsbuilder>JSBuilder.bat -p ../sencha-touch.jsb3 -d hoge

Loading the Sencha Touch Project
Loaded 12 Packages
Loaded 1 Builds
* Parse sencha-touch-debug.js with options:
- minVersion: 0.99
- debug: true
* Compress and obfuscate sencha-touch-debug.js...
Copy resources...
Done building!


sencha-touch-1.0\jsbuilder>

うぉ、なんか動いた。

sencha-touch-debug.jsとsencha-touch.jsの両方+もろもろが出来てますね。

sencha-touch-1.0\jsbuilder\hoge>dir

sencha-touch-1.0\jsbuilder\hogeディレクト

2010/11/25 14:32

. 2010/11/25 14:32 .. 2010/11/25 14:32 examples 2010/11/25 14:32 pkgs 2010/11/25 14:32 resources 2010/11/25 14:32 1,456,112 sencha-touch-debug.js 2010/11/25 14:32 359,195 sencha-touch.js 2010/11/25 14:32 src 2010/11/25 14:32 test sencha-touch-1.0\jsbuilder\hoge>

Unix的に-hでヘルプが表示されるはず。

sencha-touch-1.0\jsbuilder>JSBuilder.bat -h

JSBuilder version 3.0.0
Powered by Sencha Inc

Available arguments:
    --help  -h
      (optional) Prints this help display

    --projectFile  -p
      (required) Location of a jsb2 project file

    --deployDir  -d
      (required) The directory to build the project to

    --verbose  -v
      (optional) Output detailed information about what is being built

    --debugSuffix  -s
      (optional) Suffix to append to JS debug targets, defaults to 'debug'

    --nocompress  -c
      (optional) Dont compress the targets


Example Usage:

Windows:
JSBuilder.bat -p C:\Apps\www\ext3svn\ext.jsb2 -d C:\Apps\www\deploy\

Linux and OS X:
JSBuilder.sh -p /home/tommy/www/trunk/ext.jsb2 -d /home/tommy/www/deploy/

JSBuilder3 is a Sencha Project build tool.
For additional information, see http://www.sencha.com/products/jsbuilder/


sencha-touch-1.0\jsbuilder>

できた。
これでSencha Touchのソースを修正できますね。