Giter Club home page Giter Club logo

gulp-for-html's Introduction

Gulp script for simple HTML projects

-----------------------------------------------------

➀ πŸš€ Quick start

  1. Getting ready.

    Clone repository

    git clone https://github.com/vagelisp/gulp-for-html

    Install node modules using npm

    npm install

    Install node modules using yarn

    yarn

-----------------------------------------------------

➀ 🧐 What's inside?

.
β”œβ”€β”€ js
β”œβ”€β”€ css
β”œβ”€β”€ images
β”œβ”€β”€ .gitignore
β”œβ”€β”€ gulpfile.js
β”œβ”€β”€ package.json
└── README.md
  1. /js: This directory contains all js files including the init.js

  2. /css: This directory will contain all of the css files including the main.scss

  3. /images: This directory will contain all the image files

  4. .gitignore: This file tells git which files it should not track / not maintain a version history for.

  5. gulp-file.js: This file the main gulp script.

  6. package-lock.json (See package.json below, first). This is an automatically generated file based on the exact versions of your npm dependencies that were installed for your project. (You won’t change this file directly).

  7. README.md: You are reading this right now.

-----------------------------------------------------

➀ 🧐 Gulp tasks

  1. gulp: runs CSS task and then adds a watcher on CSS folder.
  2. gulp watch: runs JS & CSS tasks and then watch for changes on JS and CSS folder.
  3. gulp images: runs images task.
  4. gulp js: runs js task.
  5. gulp css: runs css task.
  6. gulp watch-all: runs JS,CSS * Image tasks and then watch for changes all folders.
  7. gulp serve: serves the html files and adds watchers on all folders
  8. gulp serve-no-images: serves the html files and adds watchers on all folders except the images folder
  9. gulp js:watch: starts a watcher for the JS folder.
  10. gulp css:watch: starts a watcher for the CSS folder.
  11. gulp images:watch: starts a watcher for the Images folder.

-----------------------------------------------------

gulp-for-html's People

Contributors

vagelisp avatar

Watchers

 avatar  avatar

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.