T
T
tory_kuzya2017-08-09 13:34:16
Automation
tory_kuzya, 2017-08-09 13:34:16

Gulp manually install plugins in each project or is there a way out?

Share your experience, comrades layout designers, is it really necessary using gulp4, each time when building a new project, install all 100500 plug-ins to it sequentially, or is it possible to do it once (then tell me how and what folder structure should be?
My situation is this:
OpenServer, in the folder domains several "folder sites" - localhost, site.locale (there are several project folders, each of which has gulp installed), gulp4 (there is 1 project so far)
The list of plugins used in gulpfile.js is as follows:

const gulp = require('gulp');
const less = require('gulp-less');
const sourcemaps = require('gulp-sourcemaps');
const debug = require('gulp-debug');
const gulpIf = require('gulp-if');
const del = require('del');
const browserSync = require('browser-sync').create();
const notify = require('gulp-notify');
const cssnano = require('gulp-cssnano'); // Include CSS minification package
const concat = require('gulp-concat'); // Include gulp-concat (for file concatenation)
const combiner = require('stream-combiner2').obj;
const isDevelopment = !process.env.NODE_ENV || process.env.NODE_ENV == 'development';
...

ps: I read the article https://canonium.com/articles/gulp-multi-project, but did not quite catch it good or bad
Share your experience and preferences.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander Gamov, 2017-08-09
@tory_kuzya

Move the modules folder one level higher than the project itself (to the project folder, as an option, or even higher).
If gulf does not find this folder in the directory, it will look for it above, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question