Skip to content

viclafouch/Gulp-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

[Gulp-example]

Example of a gulpfile which build your own project (good for beginners).

Informations

Description A complete gulpfile for your project
Node Version >= 0.10
Ruby Version >= 2.0
Compass >= 1.0.1

Description

This example of Gulpfile will allow you to create your own autonomous project to facilitate several tasks: concatenation of files, compression and minification, auto-refresh and auto-prefix for your css.

A simple configuration file : gulpfile.js

demo

Here is the list of the gulp plugins used :

Usage

4 requirements are necessary to use Gulp-example : Gulp, NodeJS, Ruby and Compass are required.

If you want to have an autorefresh on your browser, you need livereload

After cloning the project, run these commands bellow :

npm install
gulp

Configuration

inDev

  • Type: Boolean
  • Default: true

Define your environment.

libName

  • Type: String
  • Default: lib

Define your library folder name.

libJS

  • Type: Array
  • Default: []

Include all your js library.

Note: Be careful, It has to be the name of the folder which contains the differents js files.
Example of a path : lib/MyLib/script.js => ['MyLib']

assetsPath

  • Type: String
  • Default: assets

Define your assets folder name.

jsFileName

  • Type: String
  • Default: app

Define the name of the script file. All of the libraries that you included will be there (with your script).

jsFolder

  • Type: String
  • Default: js

Define your js folder name.

cssFolder

  • Type: String
  • Default: css

Define your css folder name.

scssFolder

  • Type: String
  • Default: scss

Define your scss folder name.

imgFolder

  • Type: String
  • Default: img

Define your img folder name.

jsonData

  • Type: Object
  • Options:
    • 'description': `` => String
    • 'version': `` => String
    • 'author': `` => String

Define some information about your project.

autoRefresh

  • Type: Boolean
  • Default: true

You can listen for changes and allow auto-refresh based on livereload for browser.

Contribute

Any contributions and/or pull requests would be welcome.

Bug fixes are greatly appreciated.

License

Gulp-example is licensed under the MIT license:

Copyright (C) 2017 Victor de la Fouchardiere

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Author

Victor de la Fouchardière

About

An example of Gulpfile that allows you to create your own stand-alone project to facilitate several tasks.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published