Answer the question
In order to leave comments, you need to log in
Need to create a package.json file for client web applications?
For example, I am creating a plugin for jQuery. Great plugin, with a lot of js, css and other files. And I use gulp or grunt to build. You have to create a gulpfile.js file and install gulp itself with various plugins. How do you do it, create a package.json file or just manually install the necessary modules?
Answer the question
In order to leave comments, you need to log in
The key word is "manually".
And to automate the installation of client modules, you can still use bower (or npm, of course)
npm init is a wizard to help you create package.json. In general, since I use the same eslint and jscs settings in almost all projects and a similar workflow using npm , I copy this file from one project to another, and then edit the corresponding places.
The dependencies/devDependencies section is rarely edited by hand, usually npm install of course.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question