简体   繁体   中英

Manage “Dist” repository with Git + Grunt

Let's figure I have Git, GruntJS, and two repositories :

  • /src/ (my source files for development)
  • /dist/ (my compiled/minified files for production)

My "dist" repository is ignored by Git (it's just created or modified by GruntJS).

What's the best way to launch a "grunt" command after a "git push", even if this push is on another remote ?

Thanks!

您可能可以使用git hooks来做到这一点: https : //git-scm.com/book/en/v2/Customizing-Git-Git-Hooks

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM