Git Product home page Git Product logo

hillel-graduation-project's Introduction

Gulp manual:
  1. First of all, to work with gulp you need it to be installed globally on your pc. To do this, run this command in console (cmd/powershell/bash): npm install --global gulp-cli. If you dont have npm, install node.js on your pc, here is a link from where to download: https://nodejs.org/en/
  2. After this, open folder with our project and run command: npm i. It will install all required packages.
  3. Finally, enter command 'gulp' in console. That is basically all. After this command, your project will open in browser, and after any changes in html, scss and js files gulp will automatically rebuild project and refresh browser.
  4. To stop gulp, run command CTRL + C in console and after that answer 'Y'.
  5. To note, that you must use gulp while developing because otherwise, you won't see changes. We connect files to html from 'build', not from 'assets'.
If you want to create new js file (module) and connect it to the project, you need:
  1. Open gulpfile.js.
  2. Find 'js' task in gulp (line 34).
  3. Add source of required js file (separated by commas) inside gulp.src in this task.
About project structure:
  1. In folder 'build' we collect all minified css and js, which are connected directly to html
  2. Js and css from folder 'assets' are for developing, they WON'T be connected to html.
  3. All required libraries are connected directly to html from node_modules.
  4. IMPORTANT: don't try to change files from 'build' folder, they will be automatically overwritten by gulp.
  5. IMPORTANT: if you connect images, fonts, etc in scss, remember, you need to provide correct sources to them, because the final css file, which will be connected to html, is situated in 'build' folder. Sources must begin with: '../../assets/.......'

hillel-graduation-project's People

Contributors

a11oy avatar dengoloborodko avatar malinskyi avatar yuppi711699 avatar

Watchers

 avatar

Forkers

malinskyi

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.