facebook / hhvm

A virtual machine for executing programs written in Hack.
https://hhvm.com
Other
18.18k stars 2.99k forks source link

[RFC] CLI For Starting New Projects #8605

Open ecreeth opened 4 years ago

ecreeth commented 4 years ago

Getting Started

Hello everyone. My proposal to improve the developer experience is to create a simpler way to start Hack projects. This is very useful for people who are starting with hack and do not have much knowledge working with Docker, travis, etc ... Thanks!

$ hhvm new my_app
------- OR ------
$ hack new my_app

This command create a new basic Hack project

$ hhvm test

This command run the tests

$ hhvm check

This command run hh_client

$ hhvm serve

This command run hhvm -m server -p 8080

future?
$ hhvm fmt

This command run hackfmt

Options

--xhp add support for xhp --lint add support for hhast-lint

Basic Project Structure

fredemmott commented 4 years ago

I think this would be awesome in the future - though I think it's too early to implement something like this:

I'm pretty sure we're going to want something like this when adoption is a goal, but right now it's not a good use of time, either to create or maintain.

ecreeth commented 4 years ago

Thanks for your feedback! I will try to get more involved in this project.