Packaging HTML banner files for RedTrax CMS.
-
You will need to have NodeJs, & Gulp installed globally. Follow the Quick Start guide to get setup.
-
Clone this repo or copy all contents to the root of your project folder.
-
In Terminal - navigate to your project folder and run
npm install
to download all of the npm packages. -
Place each banner in a folder named with it's Redtrax name inside the
src
directory. This task will create the_final.zip
and a copy of the HTML file insidedist
. Everything you need for direct upload to RedTrax.
Your directory structure should look like this.
├── gulpfile.js
├── package.json
├── node_modules
├── dist
│ └── backups
├── lib
│ └── fsUtils.js
└── src
└── banner_300x250
Each banner should go inside a folder named with it's RedTrax name. For example banner_300x250
will get renamed with your RedTrax banner name. Add as many banner folders as you need. Everything inside src
will get processed in the task.
zip
(default)
Packages the published banner into a _final.zip
Uncomment the code at bottom to have your project packaged into a _source.zip
To package everything up for uploading to RedTrax:
gulp