Developer tools for working with AdHub HTML banner templates.
npm install adhubThe AdHub Dev Server helps you create your AdHub template locally before uploading it to the AdHub. It can also package your template up for distributing a single banner.
- Log in to the NPM website. If you don't have an NPM account, create one here.
- Check to see if you have access to the Hook Organization on NPM. If not, ask an admin for an invite.
- Make sure you are logged into npm commandline tool. Using Powershell or Terminal run npm login
- Install the AdHub Dev Server npm package:
- Windows: npm install -g adhub
- Mac: sudo npm install -g adhub --unsafe-perm=true --allow-root
- To update just run the same command above.
adhubserver. This will start up the AdHub Dev Server and open a window. Saving changes will reload the browser window.-x, --xml: Transpile content.html into content.xmladhubbundle required Where a timestamped directory will be created with your finalized banner files. This directory can't inside the template directory.[source directory] optional The directory where the source files of your tempalte are located. If you don't provide it, the program will default to your current directory.
- Options:
- -k or --tinykey - api key to use tinypng, this it cached after first use. You have to do this at least once for your images to minify.
- -t or --nohtml - skip html minification
- -a or --adobe - project uses Hook Adobe Animate instead of Standard Template
- -j or --nojs - skip js minification
- -c or --nocss - skip css minification
- -i or --noimg - skip image minification
- -b or --nobundle - skip bundling - no zip, no static image
- --zipsize - Maximum allowed size of the zips when testing: Default 150K
- --jpgsize - Maximum allowed size of the static backups when testing: Default 40K
- --itteratetiny - Number of Times to run TinyPng on Images': Default 2
- -f --filter