Re:Stylelint – A modern linter for CSS
by chrisfinazzo on Monday February 04, 2019 @10:31AM
(#19077077)
I think it's the lack of a 'common-js-functions' package that is far smaller and less dependency-driven. This is why for the small bit of web development I do, I went with gulp-shell, which just wraps a big shell script that does the actual work. Don't get me wrong, it's got some of the same problems, but there's far less dependency hell to worry about seeing as it's just infrastructure to support the actual commands I'm running.
[ Parent
| on HN ]
Re:Stylelint – A modern linter for CSS
by yakshaving_jgt on Monday February 04, 2019 @11:44AM
(#19077768)
Could you expand on why you use gulp-shell when you presumably have the ability to run shell scripts directly?
Re:Stylelint – A modern linter for CSS
by chrisfinazzo on Monday February 04, 2019 @08:47PM
(#19082461)
For one script (deploy), that's 148 characters I don't have to type. Repeatedly, as changes are made. Just `gulp deploy` and it's done. Beyond that, I'm more comfortable in bash, so I'd like to not waste that effort by moving to something else.
Re:Stylelint – A modern linter for CSS
by yakshaving_jgt on Monday February 04, 2019 @09:21PM
(#19082596)
Right, but then why not use bash by itself? Why wrap it in JavaScript at all?
Re:Stylelint – A modern linter for CSS
by chrisfinazzo on Monday February 04, 2019 @10:31PM
(#19082839)
I'm not typing [this][1] often if I can help it.
[1]: https://raw.githubusercontent.com/chrisfinazzo/blog/master/g...
Re:Stylelint – A modern linter for CSS
by yakshaving_jgt on Tuesday February 05, 2019 @10:36AM
(#19086197)
Right, but why would you need to? You said you were more comfortable in bash, so why not just do it in bash? Or Make?
#!/usr/bin/bash
set -e
git push origin master
rsync -crz \
--exclude-from='rsync-exclude.txt' \
--delete _site/ \
[email protected]:/home/cfinazzo1/chrisfinazzo.com
Stick that in a file called `deploy`, run `chmod +x deploy`, and then you can invoke it with `./deploy`.Make would be something similar. In fact your entire Gulpfile in Make would look like this:
.PHONY: doctor build serve deploy
doctor:
bundle exec jekyll doctor
build: doctor
time bundle exec jekyll build --incremental
serve: doctor
time bundle exec jekyll serve --incremental
deploy:
git push origin master
rsync -crz \
--exclude-from='rsync-exclude.txt' \
--delete _site/ [email protected]:/home/cfinazzo1/chrisfinazzo.com