Re:Show HN: Hosty – Image/Text self-hosting for minimalists ...
by xrstf on Saturday December 13, 2014 @02:55PM
(#8746142)
It's a build requirement, not a requirement to run the app. If you know a better way to install grunt-contribs, please tell me.
I made it more obvious in the readme that you do not need build tools to run Hosty. Seems like that confused a lot of people.
Re:Show HN: Hosty – Image/Text self-hosting for minimalists ...
by krapp on Saturday December 13, 2014 @03:08PM
(#8746196)
> If you know a better way to install grunt-contribs, please tell me.
I would just not use grunt. I understand it's not required to run it, but even as a build dependency, unless you already have Node installed and running, it's a lot of overhead for relatively little benefit, I think.
Re:Show HN: Hosty – Image/Text self-hosting for minimalists ...
by arenaninja on Saturday December 13, 2014 @03:34PM
(#8746310)
I'm on the fence on this one. On one hand, I'm fond of package managers. On the other, there's a TON of crap every time I run bower install... I've yet to figure out the best way of doing things. I'm thinking of using bower-installer, ship with a copy of the assets, and include bower.json, but not bower_components/. The other alternative is obviously CDNs, but then you're maintaining assets manually
Re:Show HN: Hosty – Image/Text self-hosting for minimalists ...
by krapp on Saturday December 13, 2014 @03:56PM
(#8746377)
PHP already has a package manager though (Composer.)
Granted, the amount of friction involved depends on personal preference, and whatever environment you're working in, but why require a package manager in another language (and, potentially, the language itself) when one exists for the language you're actually deploying in?
Re:Show HN: Hosty – Image/Text self-hosting for minimalists ...
by girvo on Saturday December 13, 2014 @08:07PM
(#8747105)
I'm sympathetic to your point. Where I work, we use Grunt and npm for our PHP projects, and I'm in the process of replacing them (slowly but surely) with PHP-based versions of the tools we use, and replacing Gruntfiles with Makefiles. It's experimental, currently, but I feel like it's doable. The only dependency then is PHP and Composer, which I think is nice.
Re:Show HN: Hosty – Image/Text self-hosting for minimalists ...
by bombtrack on Saturday December 13, 2014 @04:30PM
(#8746506)
I include bower_components/ in .gitignore and use grunt-bowercopy[0] to move the files you actually want from bower_components/ to public/{js,css} or wherever. Files get committed once they're in public/ and I only re-run the grunt task when I want to upgrade a lib. I can understand people thinking this is overkill for a small project, but when you have dozens of libraries it's nice to have dependencies and their versions clearly defined.
Re:Show HN: Hosty – Image/Text self-hosting for minimalists ...
by modarts on Saturday December 13, 2014 @03:14PM
(#8746240)
>You don't even have to compile CSS and JS, really, but I guess people aren't comfortable with js or css which isn't machine generated. Fair enough - there are benefits to that, but as general practice, it's needless complexity.
You don't minify your production js?
One of the few strengths of PHP is that there doesn't have to be a "build process."
You don't even have to compile CSS and JS, really, but I guess people aren't comfortable with js or css which isn't machine generated. Fair enough - there are benefits to that, but as general practice, it's needless complexity.