Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including apex-publish-static-files with all npm packages installed. Try it out:

var apexPublishStaticFiles = require("apex-publish-static-files")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

apex-publish-static-files v2.0.1

Allows to publish an entire local directory to Oracle APEX Shared Components.

APEX Publish Static Files

npm Build Status Dependency Status XO code style

Uploads all files from a local directory to Oracle APEX. Destination can be:

  • Application Static Files
  • Workspace Static Files
  • Theme Files
  • Plugin Files

demo

Requirements

Install

npm install apex-publish-static-files

Usage

var publisher = require('apex-publish-static-files');

publisher.publish({
    connectString: "user/pass@server:port/sid",
    directory: "/Users/vmorneau/Documents/project/www",
    appID: 111
});

Options

NameTypeDefaultDescription
sqlclPathstringsqlPath to SQLcl (example: /Users/vmorneau/sqlcl/bin/sql)
connectStringstringuser/pass@server:port/sid
directorystringLocal directory that contains the files
appIDnumericApplication ID to export the files to
destinationstringDetermines where the files should be uploaded in APEX (choices: application, workspace, theme, plugin)

Methods

NameTypeDescription
publishfunctionPublishes the files to APEX

Changelog

See changelog.

License

MIT © Vincent Morneau

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free