realph
realph

Reputation: 4671

Using Git for Angular App

I'm using Yeoman to generate out an angular app. Once I'm happy with my app, I run grunt which creates a production-ready version of my application in a folder called /dist at the root of my project.

I've then initialised this /dist directory as a Git repository with git init and pushed the files up to Bitbucket, where they currently sit right now.

What I'm asking is do I have to compile my production-ready app with grunt every time I want to make a commit? It seems I have to. I'm thinking this setup might not be the most productive way to do this?

Am I missing something, is there an easier and more productive way to handling this?

Upvotes: 3

Views: 1993

Answers (1)

That workflow is odd.

Only source code should be in your git repository. Not the compiled/minified files. Source code is what matters.

When you colaborate with somebody else, they should run grunt tasks on their own.

Dist package should be created before deploy to production. Or on regular basis by the continuous integration server.

Upvotes: 3

Related Questions