add management for resources.resjson and modify .gitignore