Re: Project templates in snapcraft

2016-11-06 Thread Didier Roche
Le 05/11/2016 à 07:37, Spencer a écrit :
> Small, well commented examples, but not too small so as to leave out
> obviously wanted functionality, IMO, are way better than templates.
>  Part of the problem I have with any kind of template is OCD-based.  I
> don't want to start where someone else left off, and if I didn't write
> it, I won't immediately understand it, and I'm too lazy to read your
> code that's formatted in a way I don't like anyway.  (At work, though,
> I'm forced to wade through other people's crappy code.)
>
> Just having a nice suit of examples is the best, and I think the snap
> peeps have written some, but as I recall, they could be a bit better.
>  Of course, an example for every permutation of build system and
> use-case is too much, so you have to look to the snaps that the
> community has written.

+1 on this, agreed that small examples, using cloud parts for most
complex cases we want to capitalize on, will be greatly beneficial (more
than a templating system IMHO).
Cheers,
Didier
>
> Ha!  Mine are probably bad examples, though.  Don't look at mine.
>
> On Nov 4, 2016, at 8:11 PM, Érico P  > wrote:
>
>> Should be a place somewhere to store these recommended templates and
>> allow fetching third-party templates (I am thinking on cookiecutter
>> like templates).
>>
>> This has some resources on Electron, maybe it helps :
>> https://github.com/szwacz/electron-boilerplate
>>
>>
>> Em 5 de nov de 2016 00:00, "Chris Wayne" > > escreveu:
>>
>> There's really no standard way to build electron apps though
>>
>>
>> On Nov 4, 2016 9:58 PM, "Aaron Honeycutt"
>> mailto:honeycuttaar...@gmail.com>> wrote:
>>
>> Also electron projects
>>
>>
>> On Fri, Nov 4, 2016, 9:20 PM XiaoGuo Liu
>> > > wrote:
>>
>> +1
>>
>> I think it may apply to "nodejs", "python", "tomcat",
>> "mysql", "php", "java" etc.
>>
>> Best regards,
>> XiaoGuo
>>
>> On Sat, Nov 5, 2016 at 1:39 AM, Benjamin Zeller
>> > > wrote:
>>
>> Just a small proposal to have templates in snapcraft,
>> that provide some sort of starting point for
>> people without the need to read lots of tutorials,
>> but get started with their project right away.
>>
>> My proposal would be to add a template engine in
>> snapcraft, that generates predefined projects
>> or at least a predefined snapcraft.yaml for a
>> specific use case.
>>
>> Something like:
>>
>> snapcraft init --template=ubuntu-touch-app , which
>> would bootstrap a simple snapcraft project
>> targeting QML/Qt APIs.
>>
>> I think that could help people to get their apps
>> snapped even faster.
>>
>> Cheers,
>>
>> Benjamin
>>
>>
>>
>> -- 
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io
>> 
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/snapcraft
>> 
>>
>>
>>
>>
>> -- 
>> XiaoGuo, Liu 
>> --
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io
>> 
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/snapcraft
>> 
>>
>> -- 
>>
>> Aaron Honeycutt
>> - Ubuntu Fl Loco South Lead
>> - Kubuntu Council Member
>>
>>
>> --
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io
>> 
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/snapcraft
>> 
>>
>>
>> --
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io 
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/snapcraft
>> 
>>
>> -- 
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io 
>> Modify settings or unsubscribe at:
>> https://lists.ubuntu.com/mailman/listinfo/snapcraft
>
>

-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Project templates in snapcraft

2016-11-05 Thread Benjamin Zeller

On 11/05/2016 07:37 AM, Spencer wrote:
Small, well commented examples, but not too small so as to leave out 
obviously wanted functionality, IMO, are way better than templates. 
 Part of the problem I have with any kind of template is OCD-based.  I 
don't want to start where someone else left off, and if I didn't write 
it, I won't immediately understand it, and I'm too lazy to read your 
code that's formatted in a way I don't like anyway.  (At work, though, 
I'm forced to wade through other people's crappy code.)
Sure , having templates does not mean that there will be no 
documentation or examples, its just a additional way for people who like 
to have the bootstrapping already done
for them. And btw I think the templates should be really lean with as 
least code as possible. Otherwise the developer needs to clean them up 
from what he/she does not need.


Just having a nice suit of examples is the best, and I think the snap 
peeps have written some, but as I recall, they could be a bit better. 
 Of course, an example for every permutation of build system and 
use-case is too much, so you have to look to the snaps that the 
community has written.


Ha!  Mine are probably bad examples, though.  Don't look at mine.

On Nov 4, 2016, at 8:11 PM, Érico P > wrote:


Should be a place somewhere to store these recommended templates and 
allow fetching third-party templates (I am thinking on cookiecutter 
like templates).


This has some resources on Electron, maybe it helps : 
https://github.com/szwacz/electron-boilerplate



Em 5 de nov de 2016 00:00, "Chris Wayne" > escreveu:


There's really no standard way to build electron apps though


On Nov 4, 2016 9:58 PM, "Aaron Honeycutt"
mailto:honeycuttaar...@gmail.com>> wrote:

Also electron projects


On Fri, Nov 4, 2016, 9:20 PM XiaoGuo Liu
mailto:xiaoguo@canonical.com>> wrote:

+1

I think it may apply to "nodejs", "python", "tomcat",
"mysql", "php", "java" etc.

Best regards,
XiaoGuo

On Sat, Nov 5, 2016 at 1:39 AM, Benjamin Zeller
mailto:benjamin.zel...@canonical.com>> wrote:

Just a small proposal to have templates in snapcraft,
that provide some sort of starting point for
people without the need to read lots of tutorials,
but get started with their project right away.

My proposal would be to add a template engine in
snapcraft, that generates predefined projects
or at least a predefined snapcraft.yaml for a
specific use case.

Something like:

snapcraft init --template=ubuntu-touch-app , which
would bootstrap a simple snapcraft project
targeting QML/Qt APIs.

I think that could help people to get their apps
snapped even faster.

Cheers,

Benjamin



-- 
Snapcraft mailing list

Snapcraft@lists.snapcraft.io

Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/snapcraft





-- 
XiaoGuo, Liu

--
Snapcraft mailing list
Snapcraft@lists.snapcraft.io

Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/snapcraft


-- 


Aaron Honeycutt
- Ubuntu Fl Loco South Lead
- Kubuntu Council Member


--
Snapcraft mailing list
Snapcraft@lists.snapcraft.io

Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/snapcraft



--
Snapcraft mailing list
Snapcraft@lists.snapcraft.io 
Modify settings or unsubscribe at:
https://lists.ubuntu.com/mailman/listinfo/snapcraft


--
Snapcraft mailing list
Snapcraft@lists.snapcraft.io 
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft





-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Project templates in snapcraft

2016-11-04 Thread Spencer
Small, well commented examples, but not too small so as to leave out obviously 
wanted functionality, IMO, are way better than templates.  Part of the problem 
I have with any kind of template is OCD-based.  I don't want to start where 
someone else left off, and if I didn't write it, I won't immediately understand 
it, and I'm too lazy to read your code that's formatted in a way I don't like 
anyway.  (At work, though, I'm forced to wade through other people's crappy 
code.)

Just having a nice suit of examples is the best, and I think the snap peeps 
have written some, but as I recall, they could be a bit better.  Of course, an 
example for every permutation of build system and use-case is too much, so you 
have to look to the snaps that the community has written.

Ha!  Mine are probably bad examples, though.  Don't look at mine.

> On Nov 4, 2016, at 8:11 PM, Érico P  wrote:
> 
> Should be a place somewhere to store these recommended templates and allow 
> fetching third-party templates (I am thinking on cookiecutter like templates).
> 
> This has some resources on Electron, maybe it helps : 
> https://github.com/szwacz/electron-boilerplate
> 
> 
> Em 5 de nov de 2016 00:00, "Chris Wayne"  escreveu:
>> There's really no standard way to build electron apps though
>> 
>> 
>>> On Nov 4, 2016 9:58 PM, "Aaron Honeycutt"  wrote:
>>> Also electron projects
>>> 
>>> 
 On Fri, Nov 4, 2016, 9:20 PM XiaoGuo Liu  wrote:
 +1
 
 I think it may apply to "nodejs", "python", "tomcat", "mysql", "php", 
 "java" etc.
 
 Best regards,
 XiaoGuo
 
 On Sat, Nov 5, 2016 at 1:39 AM, Benjamin Zeller 
  wrote:
 Just a small proposal to have templates in snapcraft, that provide some 
 sort of starting point for
 people without the need to read lots of tutorials, but get started with 
 their project right away.
 
 My proposal would be to add a template engine in snapcraft, that generates 
 predefined projects
 or at least a predefined snapcraft.yaml for a specific use case.
 
 Something like:
 
 snapcraft init --template=ubuntu-touch-app , which would bootstrap a 
 simple snapcraft project
 targeting QML/Qt APIs.
 
 I think that could help people to get their apps snapped even faster.
 
 Cheers,
 
 Benjamin
 
 
 
 -- 
 Snapcraft mailing list
 Snapcraft@lists.snapcraft.io
 Modify settings or unsubscribe at: 
 https://lists.ubuntu.com/mailman/listinfo/snapcraft
 
 
 
 -- 
 XiaoGuo, Liu 
 --
 Snapcraft mailing list
 Snapcraft@lists.snapcraft.io
 Modify settings or unsubscribe at: 
 https://lists.ubuntu.com/mailman/listinfo/snapcraft
>>> 
>>> -- 
>>> Aaron Honeycutt
>>> - Ubuntu Fl Loco South Lead
>>> - Kubuntu Council Member
>>> 
>>> 
>>> --
>>> Snapcraft mailing list
>>> Snapcraft@lists.snapcraft.io
>>> Modify settings or unsubscribe at: 
>>> https://lists.ubuntu.com/mailman/listinfo/snapcraft
>> 
>> --
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io
>> Modify settings or unsubscribe at: 
>> https://lists.ubuntu.com/mailman/listinfo/snapcraft
> -- 
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: 
> https://lists.ubuntu.com/mailman/listinfo/snapcraft
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Project templates in snapcraft

2016-11-04 Thread Érico P
Should be a place somewhere to store these recommended templates and allow
fetching third-party templates (I am thinking on cookiecutter like
templates).

This has some resources on Electron, maybe it helps :
https://github.com/szwacz/electron-boilerplate

Em 5 de nov de 2016 00:00, "Chris Wayne" 
escreveu:

> There's really no standard way to build electron apps though
>
> On Nov 4, 2016 9:58 PM, "Aaron Honeycutt" 
> wrote:
>
>> Also electron projects
>>
>> On Fri, Nov 4, 2016, 9:20 PM XiaoGuo Liu 
>> wrote:
>>
>>> +1
>>>
>>> I think it may apply to "nodejs", "python", "tomcat", "mysql", "php",
>>> "java" etc.
>>>
>>> Best regards,
>>> XiaoGuo
>>>
>>> On Sat, Nov 5, 2016 at 1:39 AM, Benjamin Zeller <
>>> benjamin.zel...@canonical.com> wrote:
>>>
>>> Just a small proposal to have templates in snapcraft, that provide some
>>> sort of starting point for
>>> people without the need to read lots of tutorials, but get started with
>>> their project right away.
>>>
>>> My proposal would be to add a template engine in snapcraft, that
>>> generates predefined projects
>>> or at least a predefined snapcraft.yaml for a specific use case.
>>>
>>> Something like:
>>>
>>> snapcraft init --template=ubuntu-touch-app , which would bootstrap a
>>> simple snapcraft project
>>> targeting QML/Qt APIs.
>>>
>>> I think that could help people to get their apps snapped even faster.
>>>
>>> Cheers,
>>>
>>> Benjamin
>>>
>>>
>>>
>>> --
>>> Snapcraft mailing list
>>> Snapcraft@lists.snapcraft.io
>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>>> an/listinfo/snapcraft
>>>
>>>
>>>
>>>
>>> --
>>> XiaoGuo, Liu
>>> --
>>> Snapcraft mailing list
>>> Snapcraft@lists.snapcraft.io
>>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>>> an/listinfo/snapcraft
>>>
>> --
>>
>> Aaron Honeycutt
>> - Ubuntu Fl Loco South Lead
>> - Kubuntu Council Member
>>
>> --
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/snapcraft
>>
>>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Project templates in snapcraft

2016-11-04 Thread Chris Wayne
There's really no standard way to build electron apps though

On Nov 4, 2016 9:58 PM, "Aaron Honeycutt"  wrote:

> Also electron projects
>
> On Fri, Nov 4, 2016, 9:20 PM XiaoGuo Liu 
> wrote:
>
>> +1
>>
>> I think it may apply to "nodejs", "python", "tomcat", "mysql", "php",
>> "java" etc.
>>
>> Best regards,
>> XiaoGuo
>>
>> On Sat, Nov 5, 2016 at 1:39 AM, Benjamin Zeller <
>> benjamin.zel...@canonical.com> wrote:
>>
>> Just a small proposal to have templates in snapcraft, that provide some
>> sort of starting point for
>> people without the need to read lots of tutorials, but get started with
>> their project right away.
>>
>> My proposal would be to add a template engine in snapcraft, that
>> generates predefined projects
>> or at least a predefined snapcraft.yaml for a specific use case.
>>
>> Something like:
>>
>> snapcraft init --template=ubuntu-touch-app , which would bootstrap a
>> simple snapcraft project
>> targeting QML/Qt APIs.
>>
>> I think that could help people to get their apps snapped even faster.
>>
>> Cheers,
>>
>> Benjamin
>>
>>
>>
>> --
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/
>> mailman/listinfo/snapcraft
>>
>>
>>
>>
>> --
>> XiaoGuo, Liu
>> --
>> Snapcraft mailing list
>> Snapcraft@lists.snapcraft.io
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/
>> mailman/listinfo/snapcraft
>>
> --
>
> Aaron Honeycutt
> - Ubuntu Fl Loco South Lead
> - Kubuntu Council Member
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/
> mailman/listinfo/snapcraft
>
>
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Project templates in snapcraft

2016-11-04 Thread Aaron Honeycutt
Also electron projects

On Fri, Nov 4, 2016, 9:20 PM XiaoGuo Liu  wrote:

> +1
>
> I think it may apply to "nodejs", "python", "tomcat", "mysql", "php",
> "java" etc.
>
> Best regards,
> XiaoGuo
>
> On Sat, Nov 5, 2016 at 1:39 AM, Benjamin Zeller <
> benjamin.zel...@canonical.com> wrote:
>
> Just a small proposal to have templates in snapcraft, that provide some
> sort of starting point for
> people without the need to read lots of tutorials, but get started with
> their project right away.
>
> My proposal would be to add a template engine in snapcraft, that generates
> predefined projects
> or at least a predefined snapcraft.yaml for a specific use case.
>
> Something like:
>
> snapcraft init --template=ubuntu-touch-app , which would bootstrap a
> simple snapcraft project
> targeting QML/Qt APIs.
>
> I think that could help people to get their apps snapped even faster.
>
> Cheers,
>
> Benjamin
>
>
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/snapcraft
>
>
>
>
> --
> XiaoGuo, Liu
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/snapcraft
>
-- 

Aaron Honeycutt
- Ubuntu Fl Loco South Lead
- Kubuntu Council Member
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Re: Project templates in snapcraft

2016-11-04 Thread XiaoGuo Liu
+1

I think it may apply to "nodejs", "python", "tomcat", "mysql", "php",
"java" etc.

Best regards,
XiaoGuo

On Sat, Nov 5, 2016 at 1:39 AM, Benjamin Zeller <
benjamin.zel...@canonical.com> wrote:

> Just a small proposal to have templates in snapcraft, that provide some
> sort of starting point for
> people without the need to read lots of tutorials, but get started with
> their project right away.
>
> My proposal would be to add a template engine in snapcraft, that generates
> predefined projects
> or at least a predefined snapcraft.yaml for a specific use case.
>
> Something like:
>
> snapcraft init --template=ubuntu-touch-app , which would bootstrap a
> simple snapcraft project
> targeting QML/Qt APIs.
>
> I think that could help people to get their apps snapped even faster.
>
> Cheers,
>
> Benjamin
>
>
>
> --
> Snapcraft mailing list
> Snapcraft@lists.snapcraft.io
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
> an/listinfo/snapcraft
>



-- 
XiaoGuo, Liu
-- 
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft


Project templates in snapcraft

2016-11-04 Thread Benjamin Zeller
Just a small proposal to have templates in snapcraft, that provide some 
sort of starting point for
people without the need to read lots of tutorials, but get started with 
their project right away.


My proposal would be to add a template engine in snapcraft, that 
generates predefined projects

or at least a predefined snapcraft.yaml for a specific use case.

Something like:

snapcraft init --template=ubuntu-touch-app , which would bootstrap a 
simple snapcraft project

targeting QML/Qt APIs.

I think that could help people to get their apps snapped even faster.

Cheers,

Benjamin



--
Snapcraft mailing list
Snapcraft@lists.snapcraft.io
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/snapcraft