JSBuilder3を動かしてみる(自分で書いたtest.jsを作ってみよう編)
用意したファイル(注:jsファイル名にアンダースコア(_)が入るとうまく動きません)
sencha-touch-1.0\jsbuilder\test>tree /f C:. │ test.jsb3 │ └─src test-a.js test-b.js sencha-touch-1.0\jsbuilder\test>
test.jsb3 (JSBuilder3のプロジェクトファイル)
{ "projectName": "Test", "packages": [ { "name" : "Test Package", "target": "pkgs/test/test.js", "id" : "test", "files" : [ {"path": "src/", "name": "test-a.js"}, {"path": "src/", "name": "test-b.js"}, ] } ], "builds": [ { "name": "Test Builds", "target": "test.js", "debug": true, "packages": [ "test" ] } ] }
test-a.js
var ax = 10,
ay = 20,
az = 30;
test-b.js
var ax = 10; var ay = 20; var az = 30;
JSBuilderの実行
sencha-touch-1.0\jsbuilder\test>..\JSBuilder.bat -p test.jsb3 -d hoge
JSBuilderの実行結果
sencha-touch-1.0\jsbuilder\test>tree /f hoge フォルダ パスの一覧 SENCHA-TOUCH-1.0\JSBUILDER\TEST\HOGE │ test-debug.js │ test.js │ └─pkgs └─test test.js sencha-touch-1.0\jsbuilder\test>