Best way to control a git repo
-
Hi, I would like to start to version control my jsreport templates. Im using git by command line.
Should I control data folder (im using fs templates) only?
If yes then what is the best approach for new devs in the project?
1- install jsreport
2- git clone inside it and rename folder to data?Thanks
-
I would put to the git the whole jsreport app folder and gitignore
data/settings
node_modulesThen instruct devs to call
npm install
andnpm start
-
Worked. Thanks!
I just added data/samples/* to gitignore. Is there any way to avoid samples creation during npm install && npm start?
-
see it here
https://github.com/jsreport/jsreport-sample-template#configurationyou can also disable the sample template extension just like any other
https://jsreport.net/learn/configuration#disabling-extensions
-
Worked again, thanks mate