#LeadPages™ Template Build System
The LeadPages™ Template Build System is a workflow automation tool for template authoring for the LeadPages™ Marketplace.
You can use this build system on either new, or existing LeadPages™ templates. The installation script will create a skeleton leadpages-template
folder if you don't already have one (and ignore your existing one if you do). It will also initialize a clean git repository, if you don't have one already.
##Installation
###Requirements
- Bash Terminal
- Mac Installed by default on OSX. Just hit
command+space
and typeterminal
and hitenter
to launch it - Windows Download and install Git SCM
- Mac Installed by default on OSX. Just hit
- NodeJS
If you are starting fresh, try our yeoman generator, which includes the LeadPages™ Build System!
cd
into your root directory where you have theleadpages-template
folder- execute
git clone https://github.com/LeadPages/LeadPagesBuildSystem .
(Don't forget the . at the end!)
- Or download a zip file here, and unzip in your root template folder (same directory that contains your
leadpages-template
folder)
- In the terminal, run
./install
- Done!
We've created a separate set of instructions if you already have git installed, to ensure we don't overwrite any of your stuff.
cd
into your root directory where you have theleadpages-template
folder- execute
git clone https://github.com/LeadPages/LeadPagesBuildSystem
- Or download a copy of the zip file here and unzip and copy the contents over
- execute
cd LeadPagesBuildSystem && ./install
- execute
cd ..
(even after the folders were deleted, Bash can only executes in the current directory so it can'tcd
up one level.) - execute
npm install
- Done!
##Available Gulp Tasks
gulp
(default) :connect
&watch
gulp concat
: Concatenate JS filesgulp html
: Minify html & watch with LiveReloadgulp sass
: Compile SASS files intostyle.css
and output to/leadpages-template/css/
foldergulp less
: Compile LESS files intostyle.css
and output to/leadpages-template/css/
foldergulp watch
: Watch files, compile SASS/LESS, minify html and watch for changes with LiveReload- Note: If you are using less, modify
gulp/tasks/watch.js
to useless
instead ofsass
- Note: If you are using less, modify
gulp zip
: Zip up theleadpages-template
folder for easy upload!
##Questions? Issues? Comments?
Please report them using this repo's Issues Tracker.
##Contribute
Don't have all the stuff you want? You can always fork a branch!
- Fork a feature branch
- Write the C0dez
- Submit a Pull Request
- Thank you for helping out! You're awesome!