Frage

Anybody knows a way to do the following: (Using brunch)

  • push my app to one git repo
  • execute the optimise, tests, jshint
  • finally deploys the app

Is a plugin the only way?

War es hilfreich?

Lösung

You could have a:

A nice trick, on the repo representing your deployed app, is to add an attribute which will minify all css files.
See "Compress JS/CSS files on deploy using Git"


My point is: if you need to trigger anything, even with grunt, you need to do so from a git commit.

Paul Miller comments:

You don't have to code anything.
brunch build will do the linting and stuff. Just put it as git hook.

That would be in a post-update hook then, with a cd to a non-bare repo in which you would:

unset GIT_DIR
git pull
brunch build
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top