perun

Discuss perun static site generator
bhagany 2017-12-17T01:58:07.000010Z

@richiardiandrea I spent some time trying to take your lessc task and integrate perun's file watching, but I don't think it'll be very clean as long as compile-less-file! depends on the npm/exec task. Perun isn't design to require a fileset for its rendering functions, and so the way that compile-less-file! invokes npm/exec kind of outside the main task chain makes it difficult. I think I might take this and implement something like lessc in Perun itself though.

richiardiandrea 2017-12-17T01:58:50.000035Z

@bhagany first of all thanks 😄

richiardiandrea 2017-12-17T01:59:25.000089Z

second, I am using npm/exec for side effects only but I am passing things explicitely

richiardiandrea 2017-12-17T01:59:55.000011Z

I should maybe refactor more so that I don't have any dependency on the fileset

bhagany 2017-12-17T02:00:34.000070Z

I think there'd have to be a non-task way of executing npm

richiardiandrea 2017-12-17T02:00:54.000040Z

yeah...probably actually shelling out is a better option

bhagany 2017-12-17T02:01:41.000065Z

interesting, that's what I'd do with Perun (we use conch), but we'd lose the handy npm install that npm/exec does

richiardiandrea 2017-12-17T02:02:01.000027Z

npm/exec uses the fileset because of the :include option only (I am checking)...

bhagany 2017-12-17T02:02:12.000031Z

yes, that's how I read it

bhagany 2017-12-17T02:02:44.000063Z

er, well, I guess it still has to return the fileset, even in the absence of :include

richiardiandrea 2017-12-17T02:03:38.000021Z

yes one way or another you'll need to return the fileset but it is true that my task could be simplified with conch

richiardiandrea 2017-12-17T02:04:08.000045Z

npm/exec puts some sugar around npm binary detection basically

bhagany 2017-12-17T02:05:21.000050Z

right. Perun's pattern is just to say "you have to have this external package installed" and then assume that it is. degree9's way of handling npm is nicer, and I like it.

richiardiandrea 2017-12-17T02:06:18.000005Z

I think also that he has some improvement coming out

bhagany 2017-12-17T02:06:36.000042Z

interesting, I'll keep an eye on it

richiardiandrea 2017-12-17T02:07:20.000040Z

😄

richiardiandrea 2017-12-17T02:08:33.000032Z

but feel free to throw stuff at me in case you want to try it out...I have a setup with Semantic UI going

richiardiandrea 2017-12-17T03:17:08.000003Z

btw is there a perun SNAPSHOT version with the latest changes by any chance?

richiardiandrea 2017-12-17T04:28:12.000057Z

an a preview of the website for this #perun 😄 you guys deserve it given the hard work you put into it 😄 http://andrearichiardi.com

bhagany 2017-12-17T04:37:54.000003Z

nice site!

bhagany 2017-12-17T04:38:11.000055Z

I'm not sure about the latest snapshot... @podviaznikov does those

bhagany 2017-12-17T04:39:32.000009Z

when your officially launch your site, feel free to submit a PR to include it in Perun's README

richiardiandrea 2017-12-17T04:47:43.000016Z

Ok thanks! I see there are a couple of problems here and there ;)