Coder Social home page Coder Social logo

locheed / frontend-dev-template-using-gulp Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 48 KB

This is a beginner friendly frontend developing template using Gulp as building manager. Everything is set up for quick project start. SASS support preinstalled.

License: MIT License

JavaScript 46.00% CSS 35.00% HTML 19.00%

frontend-dev-template-using-gulp's Introduction

FRONTEND DEVELOPMENT TEMPLATE FOR GULP

This is a starter file for your own projects.


Advantage of using this template:
  • Preinstalled plugins for Gulp
Features:
  • Convert SASS/SCSS to CSS
  • Add's vendor prefixes automatically
  • Concanate JS and CSS
  • Minify JS and CSS
  • Copy assets to build directory
  • Refresh browser while developing

Installation

Files requires Node.js v4+ to run. Download files to your main project folder or clone repository with git clone.

Edit package.json (Change project name, authors name, repository url, etc.)

Open terminal to your project folder.

$ cd projectfolder
$ npm install // Or sudo npm install if necessary

Starting new project

There is only two commands for Gulp that is needed for your developing. When you start your project, use command

$ gulp watch

and for finalize your project

$ gulp build

Gulp watch will start SASS/SCSS convert to CSS and automatic browser refresh. Also JavaScript files will be watched for changes.

Gulp build will start concanate and minify process of your files. Also possible assets will be copied to build directory. NOTE: This will delete build-folder and it's content before building!

Folder structure

Developing structure:
---------------------

|-- src
    |-- assets
        |-- img
        |-- fonts
        |-- css
            |-- vendor
                |-- normalize.css included
            |-- app.css
            |-- app.css.map
        |-- js
            |-- vendor
                |-- vendor files here
            |-- main.js
        |-- sass
            |-- 0-plugins
                |-- _plugins-dir.sass
            |-- 1-base
                |-- _base-dir.sass
                |-- _base.sass
            |-- 2-layouts
                |-- _content.sass
                |-- _footer.sass
                |-- _header.sass
                |-- _layouts-dir.sass
            |-- 3-modules
                |-- _modules.dir.sass
            |-- _variables.sass
            |-- app.sass
    |-- index.html
    |-- gulpfile.js
    |-- package.json
    |-- README.md
    |-- LICENCE

Building structure:
-------------------

|-- build
    |-- assets
        |-- img
        |-- fonts
        |-- css
            |-- vendor
                |-- normalize.css

            |-- main.css (sass generated, minifyed and concanated)
        |-- js
            |-- vendor
                |-- vendor files copied here
            |-- main.js (concanated and minifyed)
    |-- index.html

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.