digitalmars.D.announce - Quick Start for Hunt Framework!
- zoujiaqing (2/2) Jun 02 2020 Look this:
- Greatsam4sure (6/8) Jun 03 2020 Thanks for this.
- WebFreak001 (6/14) Jun 03 2020 hi, I wanted to add hunt for a while but the project creator is
- Andre Pany (9/26) Jun 03 2020 For this scenario the dub skeleton functionality (sub package
- WebFreak001 (10/38) Jun 03 2020 Yeah I was thinking of supporting that with the new version, but
- Greatsam4sure (2/19) Jun 03 2020 Thanks in advance
- Andre Pany (9/11) Jun 03 2020 By having a dub sub package `init-exec` in huntlabs dub package,
- Heromyth (16/27) Jun 08 2020 I got a failed test. Here is the log, and I'm not sure what's
- Andre Pany (7/38) Jun 08 2020 Maybe I have some time in the evening for
- Andre Pany (10/41) Jun 08 2020 The dub package registry of type `file` works differently. You
- Andre Pany (4/15) Jun 08 2020 Correction:
- Heromyth (4/12) Jun 08 2020 I have filed an issue to talk about this. See
Look this: https://github.com/huntlabs/hunt-framework/wiki/Quick-Start
Jun 02 2020
On Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote:Look this: https://github.com/huntlabs/hunt-framework/wiki/Quick-StartThanks 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
On Wednesday, 3 June 2020 at 07:44:24 UTC, Greatsam4sure wrote:On Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote: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)Look this: https://github.com/huntlabs/hunt-framework/wiki/Quick-StartThanks 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
On Wednesday, 3 June 2020 at 11:05:24 UTC, WebFreak001 wrote:On Wednesday, 3 June 2020 at 07:44:24 UTC, Greatsam4sure wrote: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 AndreOn Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote: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)Look this: https://github.com/huntlabs/hunt-framework/wiki/Quick-StartThanks 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
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: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.On Wednesday, 3 June 2020 at 07:44:24 UTC, Greatsam4sure wrote: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 AndreOn Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote: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)Look this: https://github.com/huntlabs/hunt-framework/wiki/Quick-StartThanks 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
On Wednesday, 3 June 2020 at 11:05:24 UTC, WebFreak001 wrote:On Wednesday, 3 June 2020 at 07:44:24 UTC, Greatsam4sure wrote:Thanks in advanceOn Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote: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)Look this: https://github.com/huntlabs/hunt-framework/wiki/Quick-StartThanks 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
On Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote:Look this: https://github.com/huntlabs/hunt-framework/wiki/Quick-StartBy 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
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: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.Look this: https://github.com/huntlabs/hunt-framework/wiki/Quick-StartBy 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 08 2020
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: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 AndreOn Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote: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.Look this: https://github.com/huntlabs/hunt-framework/wiki/Quick-StartBy 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 08 2020
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: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 AndreOn Wednesday, 3 June 2020 at 05:11:47 UTC, zoujiaqing wrote: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.Look this: https://github.com/huntlabs/hunt-framework/wiki/Quick-StartBy 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 08 2020
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:Correction: Command is: `dub init -n SimpleDemo -t custom-dub-init -- --foo=bar`[...]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
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:I have filed an issue to talk about this. See https://github.com/dlang/dub/issues/1963.[...]Correction: Command is: `dub init -n SimpleDemo -t custom-dub-init -- --foo=bar`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