Renaming published GWD files and packaging them 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 GWD banner in a folder named with it's Redtrax name inside the
src
directory. Set that banner to publish into thedist
directory. Publishing will make a folder with a duplicate name insidedist
Your directory structure should look like this.
├── gulpfile.js
├── package.json
├── node_modules
├── dist
│ ├── gwd_banner_300x250
│ │ └── index.html
│ └── zips
├── lib
│ └── fsUtils.js
└── src
└── gwd_banner_300x250
└── gwd_banner_300x250.html
rename
Renames the published index.html
to the src project folder name
zip
(default)
Runs the rename
task 1st and then packages the published banner into a _final.zip
and the source files into the _source.zip
To rename the published banners from index.html
to the given RedTrax name:
gulp rename
To rename the files and create the RedTrax _final
and _source
zips:
gulp zip
or
gulp