Skip to content

Gulp task for renaming published GWD files and packaging them for RedTrax CMS.

Notifications You must be signed in to change notification settings

howeller/gulp-gwd-tasks

Repository files navigation

gulp-gwd-tasks

Renaming published GWD files and packaging them for RedTrax CMS.

Dependencies

Setup

  1. You will need to have NodeJs, & Gulp installed globally. Follow the Quick Start guide to get setup.

  2. Clone this repo or copy all contents to the root of your project folder.

  3. In Terminal - navigate to your project folder and run npm install to download all of the npm packages.

  4. Place each GWD banner in a folder named with it's Redtrax name inside the src directory. Set that banner to publish into the dist directory. Publishing will make a folder with a duplicate name inside dist

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

Tasks

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

Usage

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

About

Gulp task for renaming published GWD files and packaging them for RedTrax CMS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published