Newbie question: I would like to know, if node is used as the backend in a project, what kind of build tools should be used for the entire front-end and back-end project. How do git, webpack, and npm work together? Because I haven't actually used git, webpack, etc., my question is rather naive. I hope you can give me some advice. Thank you!
天蓬老师2017-05-02 09:52:26
I don’t know exactly which build tools are used in your project. But based on your question alone, it should be a pure node build. Webpack also has npm packages. If you have to say, you need to add a .gitignore file in git. Ignore the node_modules folder generated by using npm and some IDE project configuration files generated by using IDE, such as the .settings folder in eclipse. The .idea folder etc. generated by IDEA. Remember to store only necessary files in the version controller! Automatically generated files and files not related to the project should not be version controlled. For a tutorial on using git, you can check out this http://git.oschina.net/progit/