@tririga/tri-deploy

1.2.3 • Public • Published

tri-deploy

A tool for deploying UX views to a TRIRIGA Server. It updates the UX view files on the server with the files that exists on the specified directory. It will delete from the server the files that exists on the server but does not exist on the specified directory.

Installation

$ npm install @tririga/tri-deploy -g

Synopsis

$ tri-deploy -t <tririga_url> -u <user> -p <password>

Options

  • -t, --target url The URL of the TRIRIGA server. It must include the context path.
  • -u, --user username The user name.
  • -p, --password password The user password.
  • --basicuser The user name for basic authentication.
  • --basicpassword The user password for basic authentication.
  • -v, --view view The name of the view to be deployed. Defaults to the current directory name.
  • -d, --dir directory_path The directory path that contains the files for the view to be deployed. Defaults to the current directory path.
  • -f, --files files ... A list of relative paths of the files to be uploaded. When it is used, no file will be deleted from the server. If the parameter is not used, the whole directory is uploaded to the server.
  • -q, --quiet Do not print any non-error message to the console.
  • -y, --polymer The polymer version of the view being deployed. Acceptable values are 1 or 3. Defaults to 3.
  • -w, --webapp Deploy files to a web app view. When this property is used, -y option is ignored.
  • -m, --maxconcurrent The maximum concurrent deploy requests to the server. Defaults to 1.
  • --version print tri-deploy version.
  • --help print this message.

Usage

  1. Deploy a view named my-app from the current directory:

    $ cd my-app $ tri-deploy - t http://tririga.dev:8001/dev -u myUserName -p myPassword

  2. Deploy a view in a different directory:

    $ tri-deploy -t http://tririga.dev:8001/dev -u myUserName -p myPassword -v view-01 -d /view-01

  3. Deploy just one file of a view:

    $ tri-deploy -t http://tririga.dev:8001/dev -u myUserName -p myPassword -v view-01 -d /view-01 -f component-name.js

  4. Deploy files to a Web App view

    $ tri-deploy -t http://tririga.dev:8001/dev -u myUserName -p myPassword -v view-01 -d /view-01 -w

/@tririga/tri-deploy/

    Package Sidebar

    Install

    npm i @tririga/tri-deploy

    Weekly Downloads

    10

    Version

    1.2.3

    License

    MIT

    Unpacked Size

    32.6 kB

    Total Files

    10

    Last publish

    Collaborators

    • doug-wood
    • scottrhale
    • souyong
    • tom-fitts
    • skavanagh_wipro