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 :
- is practice include
bower.json,package.json,gulpfile.json production server , install dependencies manuallynpm installorbower installon server? - is safe include
gulpfile.json 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
Post a Comment