@adobe/aio-app-scripts
Utility tooling scripts to build, deploy and run an Adobe I/O App
Last updated 6 days ago by purplecabbage .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @adobe/aio-app-scripts 
SYNC missed versions from official npm registry.

Version Downloads/week Build Status License Greenkeeper badge Codecov Coverage

AIO App Scripts

Utility tooling scripts to build, deploy and run Adobe I/O Apps

Include as a library in your nodejs project

npm i --save @adobe/aio-app-scripts
const appScripts = require('@adobe/aio-app-scripts')({
  listeners: {
    onStart: taskName => console.error(`${taskName} ...`),
    onEnd: (taskName, res) => { console.error(`${taskName} done!`); if (res) console.log(res) },
    onWarning: warning => console.error(warning),
    onProgress: item => console.error(`  > ${item}`)
  }
})

appScripts.buildUI()
  .then(appScripts.buildActions)
  .then(appScripts.deployActions)
  .then(appScripts.deployUI)
  .catch(e => { console.error(e); process.exit(1) })

Install globally to run directly

note this interface is experimental and may disappear in the future

npm i -g @adobe/aio-app-scripts

Commands:

aio-app-scripts build.actions
aio-app-scripts build.ui
aio-app-scripts deploy.actions
aio-app-scripts deploy.ui
aio-app-scripts undeploy.actions
aio-app-scripts undeploy.ui

Using aio-app-scripts for local dev

  • run dev server, this will spin up a local OpenWhisk stack and run a server for the frontend

Requires docker! Requires Java!

   aio-app-scripts dev
  • only run frontend server, the frontend will point to remotely deployed actions
   REMOTE_ACTIONS=true aio-app-scripts dev

Debugging with VS Code

Requires docker! Requires @adobe/wskdebug in application

  • Actions can be debugged in both with local dev and remote actions dev modes

  • Simply start the dev server aio-app-scripts dev, this will generate all needed vscode debug configurations

  • Then start the vs code debugger from the configuration you want, i.e. choose WebAndActions to debug all actions and UI simultaneously or choose separate debuggers.

  • When you stop the dev server all vs code configurations are cleaned up and restored.

Explore

Contributing

Contributions are welcomed! Read the Contributing Guide for more information.

Licensing

This project is licensed under the Apache V2 License. See LICENSE for more information.

Current Tags

  • 0.9.0                                ...           latest (6 days ago)
  • 0.5.0-pre.1                                ...           pre (3 months ago)

11 Versions

  • 0.9.0                                ...           6 days ago
  • 0.8.0                                ...           11 days ago
  • 0.7.0                                ...           13 days ago
  • 0.6.6                                ...           a month ago
  • 0.6.5                                ...           a month ago
  • 0.6.4                                ...           2 months ago
  • 0.6.3                                ...           2 months ago
  • 0.6.2                                ...           2 months ago
  • 0.6.1                                ...           2 months ago
  • 0.6.0                                ...           2 months ago
  • 0.5.0-pre.1                                ...           3 months ago

Copyright 2014 - 2016 © taobao.org |