The 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.
npm install adhubservernpm login
npm install -g adhubserver
sudo npm install -g adhubserver --unsafe-perm=true --allow-root
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.xml
adhuboptimize
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