Help us understand the problem. What is going on with this article?

Sublime Text 2 の Haxe 用プロジェクトファイルのテンプレ

More than 5 years have passed since last update.

Sublime Text のメニュー → Project → Save Project As… というのがあって、xxx.sublime-project と xxx.sublime-workspace というファイルが作られるのだけど、イミフだったのでちょっと調べてテンプレ作ってみた。

これで使いまわせるかな。

前提

テンプレ

hoge.sublime-project
    {
        "folders":
        [
            {
                "path":".",
                "folder_exclude_patterns": ["bin"]
            }
        ],
        "build_systems":
        [
            {
                "name":"haxe",
                "working_dir":"${project_path:Default}",
                "cmd":["haxe", "build.hxml"]
            }
        ]
    }

これを build.hxml と同じフォルダに置いて、メニュー → Project → Open Project… で開くと、そのフォルダ配下のソースファイルが全部読み込まれる。
次に、メニュー → Tool → Build System で haxe(上のファイルに書いたやつ)を選択して、Ctrl+B でビルドできる。

メモ

  • アウトプット先の bin/ フォルダを自動で削除してからビルドしたいんだけど、スクリプト組むの面倒だなあ(組んでるけど)。build_systemcmd に rm → mkdir とか複数指定できたら嬉しいのに。

参考

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away