@adobe/asset-compute-devtool
[![Version](https://img.shields.io/npm/v/@adobe/asset-compute-devtool.svg)](https://npmjs.org/package/@adobe/asset-compute-devtool) [![License](https://img.shields.io/badge/license-Apache--2.0-blue.svg)](http://www.apache.org/licenses/LICENSE-2.0) <!-- [!
Last updated 2 months ago by jdelbick .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @adobe/asset-compute-devtool 
SYNC missed versions from official npm registry.

Version License

Asset Compute Development Tool

This is a library for the developer tool for exploring and testing the Adobe Asset Compute service.

Installation

$ npm install @adobe/asset-compute-devtool

Usage

The Devtool Server has a simple api for starting and stopping the server:

const { DevtoolServer } = require('@adobe/asset-compute-devtool');

const devtool = new DevtoolServer();
await devtool.run(); // starts server and opens a browser
// ... use developer tool
await devtool.stop(); // stop server

Using a preferred port:

const { DevtoolServer } = require('@adobe/asset-compute-devtool');

const devtool = new DevtoolServer();
await devtool.run(8080); // starts server and binds it to port 8080 or the closest port to 8080 if it is already in use
console.log(devtool.port); // should be 8080 unless that port was already in use
// ... use developer tool
await devtool.stop(); // stop server

Using start function to set up server:

const { start } = require('@adobe/asset-compute-devtool');

const devtool = await start(); // create DevtoolServer instance and run server
// ... use developer tool
await devtool.stop();

See adobe/aio-cli-plugin-asset-compute for an example usage.


Further Documentation

Refer to Asset Compute Development Tool for more information

Current Tags

  • 2.2.0                                ...           latest (2 months ago)

6 Versions

  • 2.2.0                                ...           2 months ago
  • 2.1.2                                ...           4 months ago
  • 2.1.1                                ...           4 months ago
  • 2.1.0                                ...           4 months ago
  • 2.0.0                                ...           5 months ago
  • 1.0.1                                ...           6 months ago

Copyright 2014 - 2016 © taobao.org |