Thread overview | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
June 03, 2020 Quick Start for Hunt Framework! | ||||
---|---|---|---|---|
| ||||
Look this: https://github.com/huntlabs/hunt-framework/wiki/Quick-Start |
June 03, 2020 Re: Quick Start for Hunt Framework! | ||||
---|---|---|---|---|
| ||||
Posted in reply to zoujiaqing | 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?
|
June 03, 2020 Re: Quick Start for Hunt Framework! | ||||
---|---|---|---|---|
| ||||
Posted in reply to zoujiaqing | 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é |
June 03, 2020 Re: Quick Start for Hunt Framework! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Greatsam4sure | 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)
|
June 03, 2020 Re: Quick Start for Hunt Framework! | ||||
---|---|---|---|---|
| ||||
Posted in reply to WebFreak001 | 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
|
June 03, 2020 Re: Quick Start for Hunt Framework! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andre Pany | 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.
|
June 03, 2020 Re: Quick Start for Hunt Framework! | ||||
---|---|---|---|---|
| ||||
Posted in reply to WebFreak001 | 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
|
June 08, 2020 Re: Quick Start for Hunt Framework! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andre Pany | 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. |
June 08, 2020 Re: Quick Start for Hunt Framework! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Heromyth | 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-custom-dub-init-type.sh which exactly test the behavior you try. Did you already had a look here? Kind regards Andre |
June 08, 2020 Re: Quick Start for Hunt Framework! | ||||
---|---|---|---|---|
| ||||
Posted in reply to Heromyth | 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 |
Copyright © 1999-2021 by the D Language Foundation