www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Quick Start for Hunt Framework!

reply zoujiaqing <zoujiaqing gmail.com> writes:
Look this:
https://github.com/huntlabs/hunt-framework/wiki/Quick-Start
Jun 02 2020
next sibling parent reply Greatsam4sure <greatsam4sure yahoo.com> writes:
On Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote:
 Look this:
 https://github.com/huntlabs/hunt-framework/wiki/Quick-Start
Thanks for this. We still need a more detail documentation and better tutorial. For example how do I build my desire ui? Can you guys not discuss with webfreak to add hunt project to code-d, so that anyone can just create a hunt project by a single click?
Jun 03 2020
parent reply WebFreak001 <d.forum webfreak.org> writes:
On Wednesday, 3 June 2020 at 07:44:24 UTC, Greatsam4sure wrote:
 On Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote:
 Look this:
 https://github.com/huntlabs/hunt-framework/wiki/Quick-Start
Thanks for this. We still need a more detail documentation and better tutorial. For example how do I build my desire ui? Can you guys not discuss with webfreak to add hunt project to code-d, so that anyone can just create a hunt project by a single click?
hi, I wanted to add hunt for a while but the project creator is pretty dated code. I would much rather like to remove it from code-d and make a separate more flexible extension for auto generating projects (and update and provide all the templates using an API)
Jun 03 2020
next sibling parent reply Andre Pany <andre s-e-a-p.de> writes:
On Wednesday, 3 June 2020 at 11:05:24 UTC, WebFreak001 wrote:
 On Wednesday, 3 June 2020 at 07:44:24 UTC, Greatsam4sure wrote:
 On Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote:
 Look this:
 https://github.com/huntlabs/hunt-framework/wiki/Quick-Start
Thanks for this. We still need a more detail documentation and better tutorial. For example how do I build my desire ui? Can you guys not discuss with webfreak to add hunt project to code-d, so that anyone can just create a hunt project by a single click?
hi, I wanted to add hunt for a while but the project creator is pretty dated code. I would much rather like to remove it from code-d and make a separate more flexible extension for auto generating projects (and update and provide all the templates using an API)
For this scenario the dub skeleton functionality (sub package init/init-exec) perfectly fits. Just run the dub init command with -t MAIN_PACKAGE automatically from code-d. PS. Unfortunately `init` sub package is not implemented yet, but there more sophisticated `init-exec`. Kind regards Andre
Jun 03 2020
parent WebFreak001 <d.forum webfreak.org> writes:
On Wednesday, 3 June 2020 at 11:50:01 UTC, Andre Pany wrote:
 On Wednesday, 3 June 2020 at 11:05:24 UTC, WebFreak001 wrote:
 On Wednesday, 3 June 2020 at 07:44:24 UTC, Greatsam4sure wrote:
 On Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote:
 Look this:
 https://github.com/huntlabs/hunt-framework/wiki/Quick-Start
Thanks for this. We still need a more detail documentation and better tutorial. For example how do I build my desire ui? Can you guys not discuss with webfreak to add hunt project to code-d, so that anyone can just create a hunt project by a single click?
hi, I wanted to add hunt for a while but the project creator is pretty dated code. I would much rather like to remove it from code-d and make a separate more flexible extension for auto generating projects (and update and provide all the templates using an API)
For this scenario the dub skeleton functionality (sub package init/init-exec) perfectly fits. Just run the dub init command with -t MAIN_PACKAGE automatically from code-d. PS. Unfortunately `init` sub package is not implemented yet, but there more sophisticated `init-exec`. Kind regards Andre
Yeah I was thinking of supporting that with the new version, but because it requires network access to obtain these templates I would only offer those for library packages and still keep all the basic templates machine local, bundled with code-d. I have looked at existing extensions for this. Some didn't want to provide an API (keep it simple to user folders only) or some would have required a bigger rewrite to support a useful API. So I'm just considering to make my own extension for this and ship it as dependency of code-d so it's auto-installed.
Jun 03 2020
prev sibling parent Greatsam4sure <greatsam4sure yahoo.com> writes:
On Wednesday, 3 June 2020 at 11:05:24 UTC, WebFreak001 wrote:
 On Wednesday, 3 June 2020 at 07:44:24 UTC, Greatsam4sure wrote:
 On Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote:
 Look this:
 https://github.com/huntlabs/hunt-framework/wiki/Quick-Start
Thanks for this. We still need a more detail documentation and better tutorial. For example how do I build my desire ui? Can you guys not discuss with webfreak to add hunt project to code-d, so that anyone can just create a hunt project by a single click?
hi, I wanted to add hunt for a while but the project creator is pretty dated code. I would much rather like to remove it from code-d and make a separate more flexible extension for auto generating projects (and update and provide all the templates using an API)
Thanks in advance
Jun 03 2020
prev sibling parent reply Andre Pany <andre s-e-a-p.de> writes:
On Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote:
 Look this:
 https://github.com/huntlabs/hunt-framework/wiki/Quick-Start
By having a dub sub package `init-exec` in huntlabs dub package, a dub user can just execute `dub init -n mypackage -t hunt-framework` to create a skeleton, with source code provided by you. See example here: https://github.com/dlang/dub/blob/master/test/issue1651-custom-dub-init-type/custom-dub-init-dubpackage-1.0.1.zip?raw=true Kind regards André
Jun 03 2020
parent reply Heromyth <bitworld qq.com> writes:
On Wednesday, 3 June 2020 at 08:11:55 UTC, Andre Pany wrote:
 On Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote:
 Look this:
 https://github.com/huntlabs/hunt-framework/wiki/Quick-Start
By having a dub sub package `init-exec` in huntlabs dub package, a dub user can just execute `dub init -n mypackage -t hunt-framework` to create a skeleton, with source code provided by you. See example here: https://github.com/dlang/dub/blob/master/test/issue1651-custom-dub-init-type/custom-dub-init-dubpackage-1.0.1.zip?raw=true Kind regards André
I got a failed test. Here is the log, and I'm not sure what's wrong with this: ➜ ~ cd dlang/dub-demo ➜ dub-demo pwd /Users/putao/dlang/dub-demo ➜ dub-demo ll custom-dub-init total 8 -rw-rw-r-- 1 putao staff 123B 3 9 2019 dub.json drwxrwxr-x 4 putao staff 128B 3 10 2019 init-exec drwxrwxr-x 3 putao staff 96B 3 10 2019 source ➜ dub-demo dub init -n SimpleDemo -t custom-dub-init-dubpackage --skip-registry=all --registry=file:///Users/putao/dlang/dub-demo/custom-dub-init -- --foo=bar Couldn't find package: custom-dub-init-dubpackage.
Jun 08 2020
next sibling parent Andre Pany <andre s-e-a-p.de> writes:
On Monday, 8 June 2020 at 11:09:01 UTC, Heromyth wrote:
 On Wednesday, 3 June 2020 at 08:11:55 UTC, Andre Pany wrote:
 On Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote:
 Look this:
 https://github.com/huntlabs/hunt-framework/wiki/Quick-Start
By having a dub sub package `init-exec` in huntlabs dub package, a dub user can just execute `dub init -n mypackage -t hunt-framework` to create a skeleton, with source code provided by you. See example here: https://github.com/dlang/dub/blob/master/test/issue1651-custom-dub-init-type/custom-dub-init-dubpackage-1.0.1.zip?raw=true Kind regards André
I got a failed test. Here is the log, and I'm not sure what's wrong with this: ➜ ~ cd dlang/dub-demo ➜ dub-demo pwd /Users/putao/dlang/dub-demo ➜ dub-demo ll custom-dub-init total 8 -rw-rw-r-- 1 putao staff 123B 3 9 2019 dub.json drwxrwxr-x 4 putao staff 128B 3 10 2019 init-exec drwxrwxr-x 3 putao staff 96B 3 10 2019 source ➜ dub-demo dub init -n SimpleDemo -t custom-dub-init-dubpackage --skip-registry=all --registry=file:///Users/putao/dlang/dub-demo/custom-dub-init -- --foo=bar Couldn't find package: custom-dub-init-dubpackage.
Maybe I have some time in the evening for A deeper look. For the moment, there is the dub test https://github.com/andre2007/dub/blob/master/test/issue1651-cus om-dub-init-type.sh which exactly test the behavior you try. Did you already had a look here? Kind regards Andre
Jun 08 2020
prev sibling parent reply Andre Pany <andre s-e-a-p.de> writes:
On Monday, 8 June 2020 at 11:09:01 UTC, Heromyth wrote:
 On Wednesday, 3 June 2020 at 08:11:55 UTC, Andre Pany wrote:
 On Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote:
 Look this:
 https://github.com/huntlabs/hunt-framework/wiki/Quick-Start
By having a dub sub package `init-exec` in huntlabs dub package, a dub user can just execute `dub init -n mypackage -t hunt-framework` to create a skeleton, with source code provided by you. See example here: https://github.com/dlang/dub/blob/master/test/issue1651-custom-dub-init-type/custom-dub-init-dubpackage-1.0.1.zip?raw=true Kind regards André
I got a failed test. Here is the log, and I'm not sure what's wrong with this: ➜ ~ cd dlang/dub-demo ➜ dub-demo pwd /Users/putao/dlang/dub-demo ➜ dub-demo ll custom-dub-init total 8 -rw-rw-r-- 1 putao staff 123B 3 9 2019 dub.json drwxrwxr-x 4 putao staff 128B 3 10 2019 init-exec drwxrwxr-x 3 putao staff 96B 3 10 2019 source ➜ dub-demo dub init -n SimpleDemo -t custom-dub-init-dubpackage --skip-registry=all --registry=file:///Users/putao/dlang/dub-demo/custom-dub-init -- --foo=bar Couldn't find package: custom-dub-init-dubpackage.
The dub package registry of type `file` works differently. You specify here a folder containing dub packages as zip file. In your example you can instead use dub add-local command to register local folder `custom-dub-init`. See https://dub.pm/commandline.html#add-local Then your command is just `dub init -n SimpleDemo -t custom-dub-init-dubpackage -- --foo=bar` Kind regards Andre
Jun 08 2020
parent reply Andre Pany <andre s-e-a-p.de> writes:
On Monday, 8 June 2020 at 17:43:03 UTC, Andre Pany wrote:
 On Monday, 8 June 2020 at 11:09:01 UTC, Heromyth wrote:
 [...]
The dub package registry of type `file` works differently. You specify here a folder containing dub packages as zip file. In your example you can instead use dub add-local command to register local folder `custom-dub-init`. See https://dub.pm/commandline.html#add-local Then your command is just `dub init -n SimpleDemo -t custom-dub-init-dubpackage -- --foo=bar` Kind regards Andre
Correction: Command is: `dub init -n SimpleDemo -t custom-dub-init -- --foo=bar`
Jun 08 2020
parent Heromyth <bitworld qq.com> writes:
On Monday, 8 June 2020 at 17:45:33 UTC, Andre Pany wrote:
 On Monday, 8 June 2020 at 17:43:03 UTC, Andre Pany wrote:
 [...]
Correction: Command is: `dub init -n SimpleDemo -t custom-dub-init -- --foo=bar`
I have filed an issue to talk about this. See https://github.com/dlang/dub/issues/1963.
 For the moment, there is the dub test
 https://github.com/andre2007/dub/blob/master/test/issue1651-cus
om-dub-init-type.sh which exactly test the behavior you try.
 Did you already had a look here?
My command is copied from there.
Jun 08 2020