S
S
Svyatoslav Khusamov2015-11-01 13:18:37
Node.js
Svyatoslav Khusamov, 2015-11-01 13:18:37

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

2 answer(s)
V
Vladislav, 2015-11-01
@RGV

The key word is "manually".
And to automate the installation of client modules, you can still use bower (or npm, of course)

K
Konstantin Kitmanov, 2015-11-01
@k12th

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 question

Ask a Question

731 491 924 answers to any question