项目作者: markknol

项目描述 :
Create new Haxe projects in a blast
高级语言: Haxe
项目地址: git://github.com/markknol/hxnew.git
创建时间: 2016-10-23T19:59:37Z
项目社区:https://github.com/markknol/hxnew

开源协议:

下载


hxnew

Build Status
Haxelib Version

Create new Haxe projects in a blast!
This tool is meant to create a plain Haxe project. Run it once.

Installation

Install using haxelib:

  1. haxelib install hxnew

How to use

haxelib run hxnew -name MyProject

This will create a js project with this directory structure:

  1. MyProject/bin/index.html
  2. MyProject/src/Main.hx
  3. MyProject/.gitignore
  4. MyProject/.travis.yml
  5. MyProject/build.hxml
  6. MyProject/haxelib.json
  7. MyProject/makefile
  8. MyProject/README.md
  9. MyProject/release_haxelib.sh
  10. MyProject/MyProject.hxproj

haxelib run hxnew -name MyProject -pack com.company.tool

This will create a js project with same directory structure as above but the Main class located in the com.company.tool package.

  1. MyProject/src/com/company/tool/Main.hx

haxelib run hxnew -name MyProject -target neko,nodejs -lib hxargs,format

This will create a neko + nodejs project with this directory structure:

  1. MyProject/bin/
  2. MyProject/src/Main.hx
  3. MyProject/.gitignore
  4. MyProject/.travis.yml
  5. MyProject/build-neko.hxml
  6. MyProject/build-nodejs.hxml
  7. MyProject/haxelib.json
  8. MyProject/install.hxml
  9. MyProject/makefile
  10. MyProject/README.md
  11. MyProject/run-neko.hxml
  12. MyProject/run-nodejs.hxml
  13. MyProject/release_haxelib.sh
  14. MyProject/MyProject.hxproj

haxelib run hxnew -name MyProject --lix

This will create a lix.pm project. It creates a package.json and requires all libraries using lix!

Notes:

  • When providing a lib, an install.hxml is created. Run this to install the project dependencies.
  • The run files start the process to run the code

Command line help

  1. [-name | -n] <name> : Name of the project. required
  2. [-include | -i] <path> : Folder to include in project
  3. [-out] <path> : Project out folder. default: same as name
  4. [-src] <path> : Class path source folder. default: 'src'
  5. [-cp] <path> : Additional class path
  6. [-bin] <path> : Output folder. default: 'bin'
  7. [-lib | -libs] <libs> : Libs used in the project, comma separate
  8. [-target | -t] <targets> : Target languages, comma separate. Or "all" for all targets. Default: 'js'
  9. [-pack] <classPath> : Package of the entry point
  10. [--lix] : Use Lix.pm. Assumes global available `npm` command
  11. [--makefile] : Generate a makefile
  12. [--no-haxedevelop] : Don't generate HaxeDevelop project files
  13. [--no-main] : Don't generate a Main.hx file
  14. [--no-readme] : Don't generate README.md
  15. [--no-gitignore] : Don't generate .gitignore
  16. [--no-haxelib-json] : Don't generate a haxelib.json
  17. [--no-travis] : Don't generate Travis files
  18. [--version | -v] : Log version