Saturday 15 September 2012

deployment - What grunt files to upload to repo vs files to upload when deploying site to production -



deployment - What grunt files to upload to repo vs files to upload when deploying site to production -

so, have webapp creating using 3 muskateers yeoman, grunt , bower.

my questions are:

what best practice when comes uploading webapp git/mercurial repo? include entire project? directories 'node_modules' or 'test', etc?

also, when deploying live production site: 'dist' folder should uploading?

with research yielding no results (i searching wrong things?).. i'm bit new process feedback appreciated. thanks!

you should commit of yeoman, grunt, , bower config files.

there 2 schools of thought on committing output produce or dependencies download:

one is, should upload needed user deploy web app after cloning repository, without performing additional operations. thought is, dependencies may not exist anymore, network connections might down, etc.

another is, maintain repository little , don't commit node_modules, etc, since can downloaded user.

as far dist folder goes, yes you'll uploading server, contains of minified files. whether or not want commit repository separate question. might allow user build every time, assuming can dependencies 1 way or (from above choice). or might want commit tag release version along source code.

there's more give-and-take on here: http://addyosmani.com/blog/checking-in-front-end-dependencies/

deployment gruntjs repository yeoman bower

No comments:

Post a Comment