adplay-sdk

0.5.4 • Public • Published

Adplay Web SDK

API reference

Check the documentation here.

How To build

1.NPM packages

npm install

2.Gulp

npm install gulpjs/gulp-cli#4.0 -g

3.Build

gulp build --iframe-host=play-web.vm5apis.com

Or non-minify build

gulp build:nonminify --iframe-host=play-web.vm5apis.com

Or set an filename(non-minify only)

gulp build:nonminify --output=bundle

Develop & deploy

Develop

Start a server, can find test pages in /test/dashboard(Default port is 3310 ).

gulp watch --iframe-host=play-web.vm5apis.com

To assign a difference port, for example, assign to 5566:

gulp watch --port=5566 --iframe-host=play-web.vm5apis.com

Use difference api host(optional)

gulp watch --api-host=api-adserver.vm5apis.com

Deploy

Publish all files which located in build, note that you MUST complete the information inside the configs/deploy.ls file before performing this action.

gulp publish --iframe-host=play-web.vm5apis.com --publish-dest=[prod|staging]

Or build and deploy

gulp build:publish --iframe-host=play-web.vm5apis.com --publish-dest=[prod|staging]

Readme

Keywords

none

Package Sidebar

Install

npm i adplay-sdk

Weekly Downloads

3

Version

0.5.4

License

ISC

Last publish

Collaborators

  • npm