Coder Social home page Coder Social logo

mario-duarte / html5-banner-builder-tool Goto Github PK

View Code? Open in Web Editor NEW
14.0 6.0 1.0 81 KB

This is a repo to be used when creating HTML5 Banners, this will auto generate all the base files and folders as create a dist .zip file of the banner ready to upload to you favourite add platform

License: MIT License

JavaScript 100.00%
html5-banner gulp scss html5 banner-adds banner-generator banner-advertisements html-template

html5-banner-builder-tool's Introduction

HTML5 Banners Builder Tool

Created this tool using gulp to automate the process of developing and building HTML5 banners and save time in large campaigns.

This tool was made for those who prefer to develop banners by hand coding them opposed to use unreliable tools or software that require the use of external libraries.

From junior to the more experience developer, any one can take advantage and use this simple tool.

! New Changes - v4 !

Please read bellow for major breaking changes in version 4



Dependencies

devDependency Status

How to install:

Make sure you got the latest version available of node and gulp installed globally on your machine, for more information on how to install these you can click the links above and follow the getting started documentation.

Run npm install on your terminal at the root of your project, this will install all the dependencies locally.

Gulp tasks available

  • gulp setup
  • gulp
  • gulp watch
  • gulp build
  • gulp dist

Gulp setup

Run this on brand new projects that you are starting from scratch to create the tree structure and basic file templates.

This will create the following structure:

├── Root
|     ├── dist
|     |      ├── assets
|     |      ├── archive.zip 
|     |      └── index.html
|     ├── src
|     |     ├── assets
|     |     ├── css
|     |     ├── js
|     |     ├── scripts
|     |     |      ├── vendor (to be used to add any 3rd party scripts and plugins)
|     |     |      └── main.js (main javascript template)
|     |     ├── scss
|     |     |      └── style.scss (main sass template file)
|     |     └── index.html (main add file template)
├── node_modules
├── Gulpfile.js
└── package.json

index.html has a standard html5 base structure with a standard(optional) CM clicktag and the necessary links to the main javascript file and stylesheet.

main.js has a basic variable to target the banner add and a standard DOM Ready function in plain javascript.

style.scss has a few variables defines and very basic styling to the add container.

Gulp and Gulp Watch

Gulp will run the process once and the watcher will watch for file changes and run the process.

--prod => can be used with he gulp and watch task, will enable the removal of all console.logs in the scripts and comments in the sass files

--zip => can be used with he gulp and watch task, this will generate fresh zip files every time the task runs, this will also delete the previous generated zip, you can also pass a second argument to set the name of the zip file, --zipName=name.zip, by default this is set to archive.zip

Gulp build

This will run all the tasks to build the banner add:

  • compile the sass file to css with autoprefixer
  • compile all js files into a single main.js file compiling any modern javascript down to ecma script 5
  • inline the compiled css and js file to the main index.html file
  • one way synchronization of the assets folder from src/assets to dist/assets

Gulp dist

This will only zip the contents of the dist folder, replacing any old zip files. You can also pass a second argument to set the name of the zip file, --zipName=name.zip, by default this is set to archive.zip


Bug and issues

For bugs/issues and or features recommendations please use the issues tab of this repo.

Support this repo

Like this repo or find it usefull, want to contribute to it get in touch via twitter or you could pay me a coffee by donating.

html5-banner-builder-tool's People

Contributors

mario-duarte avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

Forkers

lapnd

html5-banner-builder-tool's Issues

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.