HaxeFoundation / haxe-evolution

Repository for maintaining proposal for changes to the Haxe programming language
111 stars 58 forks source link

Command to init empty Haxe project. #55

Closed posxposy closed 5 years ago

posxposy commented 5 years ago

Providinga a Haxe compiler command to create an empty project in the selected folder. haxe --init cpp js hl

Which will generate something like this:

├───.vscode
│   ├── settings.json
│   └── tasks.json
│
├── out
│   ├── cpp
│   ├── hl
│   └── js
│
├── src
│   └── Main.hx
│
├── build.cpp.hxml
├── build.hl.hxml
├── build.js.hxml
├── common.hxml

Rendered version

ncannasse commented 5 years ago

This should definitely not be part of the compiler, could be added to vshaxe commands instead.

Le lun. 21 janv. 2019 19:12, Dmitry Hryppa notifications@github.com a écrit :

Providinga a Haxe compiler command to create an empty project in the selected folder. haxe --init cpp js hl

Which will generate something like this:

├───.vscode

│ ├── settings.json

│ └── tasks.json

├── out

│ ├── cpp

│ ├── hl

│ └── js

├── src

│ └── Main.hx

├── build.cpp.hxml

├── build.hl.hxml

├── build.js.hxml

├── common.hxml

Rendered version https://github.com/dmitryhryppa/haxe-evolution/blob/init-command/proposals/0000-init-command.md

You can view, comment on, or merge this pull request online at:

https://github.com/HaxeFoundation/haxe-evolution/pull/55 Commit Summary

  • Add new proposal. Init commad.
  • fix text, add author
  • add alternatives

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/HaxeFoundation/haxe-evolution/pull/55, or mute the thread https://github.com/notifications/unsubscribe-auth/AA-bwOz_Iyt_OpFZc9LeUyoYg4oDP2fAks5vFgMHgaJpZM4aLUCo .

markknol commented 5 years ago

I once created a haxelib called hxnew which does something like that, maybe I should add vscode support for it. Or indeed, could be added to vshaxe commands.

Simn commented 5 years ago

This is outside the scope of a compiler.

posxposy commented 5 years ago

This should definitely not be part of the compiler This is outside the scope of a compiler.

I thought about TypeScript compiler which has that option, that's why I did this proposal here :)

@markknol I once created a haxelib called hxnew which does something like that, maybe I should add vscode support for it. Or indeed, could be added to vshaxe commands.

Oh, this is a very cool thing. Would be awesome if this can be a part of at least VSHaxe.

fullofcaffeine commented 5 years ago

Oh, this is a very cool thing. Would be awesome if this can be a part of at least VSHaxe.

Or at least mentioned in the haxe.org website. This can help reduce some friction when first trying Haxe.