Giter VIP home page Giter VIP logo

gulp-webdev's Introduction

Gulp WebDev

A simple environment to watch and compile your website project with Sass, PostCSS, Babel, Image Compress (JPG and PNG) and Autoprefixer.

Requeriments

You need npm and nodejs working to use this project.

Installation

You can download a zip file or clone the repository:

$ git clone https://github.com/pponto/gulp-webdev
$ cd gulp-webdev
$ npm install

And npm install to install all dependencies.

Usage

This page aplication only requires two commands to work. gulp command its the default procedured. dist for compressed final files.

Folder structure

All website project need to stay inside /src folder. All images at /src/img, all Javascript files at /src/js, and /src/sass for scss files.

project
│   README.md
│   gulpfile.js
│   package.json
│   LICENSE.md    
│
└───src
│   │   index.html
│   │   ...
│   │
│   └───img
│   │   │   img01.jpg
│   │   │   img02.png
│   │   │   ...
│   │   
│   └───js
│   │   │   jquery.js
│   │   │   main.js
│   │   │   ...
│   │   
│   └───sass
│       │   normalize.scss
│       │   style.scss
│       │   ...
│   
└───dist
    │   compiled files by gulp
    └───compiled folders by gulp

The folder structure can be modified at anytime by changing the names or anything you want in the gulpfile.js file.

gulp command

gulp command will compile all files on the /src folder to another folder, called /dist. After the command, Gulp will monitor the files automatically with the watch function, always recompiling the files after any saved changes.

$ gulp

dist command

gulp dist* will compile all files, as well all images in the /img will be compressed, which are only copied with the gulp default command.

$ gulp dist

*This function does not have watch mode.

Configuration

PostCSS Autoprefixer
PostCSS Easing Gradient
PostCSS Font Magician
PostCSS Responsive Type
Gulp Sass
Gulp Babel

License

This project is licensed under the MIT License - see the LICENSE.md file for details

gulp-webdev's People

Contributors

pponto 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.