C
C
Cepesh162019-05-17 16:42:25
Sass
Cepesh16, 2019-05-17 16:42:25

Where to put gulp?

I want to start learning SASS (SCSS) to customize bootstrap for myself.
With the help of Github Desktop, I cloned the repositories into the github folder.
Suppose I have a “mySite” folder there, do I need to install gulp (node ​​modules) in this folder?
But then after the commits, when I push (update) the repositories, extra gulp files will still be downloaded from above, and as I understand it, it is only needed to locally compile the "style.scss" file into the "style.css" file.
Please tell me where to place gulp, how is it generally accepted to place it?
P.s. Maybe I'm doing something wrong in the project structure or I'm implementing the task incorrectly, I'll be grateful for any hints!

Answer the question

In order to leave comments, you need to log in

3 answer(s)
S
Shohruh Shaimardonov, 2019-05-17
@joeberetta

In English . Hope it won't be hard

S
Sergey Malinin, 2019-05-17
@malininss

Gulp-cli is installed globally npm install gulp-cli -g
Gulp must be installed in the root folder of the project itself (first npm init, then npm install gulp -D
To prevent all unnecessary folders and files from being pushed to the repository, create a file in the root of the site .gitignore, where you prescribe all the files and folders that you need to ignore

A
Alex Glebov, 2019-05-17
@SkiperX

the folder with the “mySite” project
, put
npm i gulp -S
npm i bootstrap -S
compile scss
in the scss file, import bootstrap.scss from node_modules
before it, create a file with variables, where you redefine the bootstrap variables for yourself.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question