angularjs - Should we push the package.json, bower.json, gulpfile.js to production server -


i using gulp, bower, stylus angularjs application.

i not using continuous integration technology, git pulling code repo manually when git push made master branch on bitbucket, considering scenario :

  1. is practice include bower.json, package.json , gulpfile.js on production server , install dependencies manually npm install or bower install on server?
  2. is safe include gulpfile.js on server?

also, if using continuous integration technology, best practice?

my .gitignore file follows :

node_modules dist .tmp .sass-cache bower_components private.xml nbproject gruntfile.js gulpfile.js package.json 

add package.json , bower.json files keep track of dependencies being used on production server. should skip uploading gulp or grunt files local use only. not needed uploaded on production server.

edit : if use grunt/gulp restarting node server well, using nodemon grunt/gulp, may upload grunt/gulp file. in end if have structured node server there no harm putting grunt/gulp file on server, these interact system before server starts.


Comments