@crestron/ch5-utilities
Crestron CH5 utilities
$ cnpm install @crestron/ch5-utilities 
SYNC missed versions from official npm registry.

CH5 Utilities - Getting Started

Archiving and distribution utilities to be used by the applications implemented with the CH5 Components Library.

Table of Contents

Background

The purpose of the library is to satisfy three functions:

  • archiving - create a package that can distributed manually or with the utility
  • distribution - deploy a package built with the utility
  • archive & distribute - single command for both of the above

The final result of the archiving will be a .ch5z package. This contains two files:

  • *.ch5 - the actual package
  • *_manifest.json - a manifest file describing the .ch5 file ( project name, timestamp, hash and any other optional details)

Setup

Install the required packages.

yarn install

Build the library.

yarn build

Publish the ch5-utilities library for local usage.

yarn link

Commands

The commands is for development, debugging, and testing purposes only.

Before running, make sure that all the values are properly modified for local usage, in the config variable in start.ts.

yarn start

Running yarn start will run the archive&deploy functions based on the config in the src/start.ts file.

yarn start:archive

Running yarn start:archive will run the archive function based on the config in the src/start.ts file.

yarn start:distribute

Running yarn start:distribute will run the distribute function based on the config in the src/start.ts file.

yarn start:js

Same as yarn start, but will run the bundled JS version of the library ( the one in the build directory ).

yarn start:js:archive

Same as yarn start:archive, but will run the bundled JS version of the library ( the one in the build directory ).

yarn start:js:distribute

Same as yarn start:distribute, but will run the bundled JS version of the library ( the one in the build directory ).

yarn publish:local

After the initial setup, you can use this command to rebuild and publish changes in the library.

Configuration

The methods archiver and distributor from src/index.ts expect a to get a configuration of type IConfigOptions.

Below we describe each property, their purpose and possible values.

projectName

Required.

The name of the project will set the package name and the manifest details for the project. It should be set according to the delivered package.

Default value is crestron-system.

directoryName

Required.

This is the path to the directory that contains the deliverables.

Currently this is the showcase-app dist directory.

The path can be absolute or should be relative to the location from which the command is run in the CLI.

outputDirectory

Required.

This is the path where the package files will be copied to.

The path can be absolute or should be relative to the location from which the command is run in the CLI.

outputLevel

Optional

This sets the level of CLI logging that is required.

Possible values are: quiet | normal | verbose.

additionalAppuiManifestParameters

Optional.

This is a key-value collection that can be used to set extra details in the app ( in this case showcase-app ) manifest JSON file.

additionalProjectManifestParameters

Optional.

This is a key-value collection that can be used to set extra details in the project manifest JSON file.

controlSystemHost

Required.

This should be the hostname or IP address of the device where the package will be deployed.

promptForCredential

This will always be set to true, since the utility will always prompt for the credentials in the CLI.

sftpDirectory

Required.

This is the target directory on the controlSystemHost.

It must be relative to the SFTP root directory.

It will be display for the showcase-app, or HTML for CCS.

deviceType

Required.

This should be set based on the controlSystemHost, depending on what kind of device you are targeting for the deploy.

Possible values are: touchscreen | controlsystem | web.

contractFile

Optional

Relative or absolute file path for contract editor config file.File must have .cse2j extension.

License

Copyright (C) 2018 to the present, Crestron Electronics, Inc. All rights reserved. No part of this software may be reproduced in any form, machine or natural, without the express written consent of Crestron Electronics. Use of this source code is subject to the terms of the Crestron Software Development Tools License Agreement under which you licensed this source code.

If you did not accept the terms of the license agreement, you are not authorized to use this software. For the terms of the license, please see the license agreement between you and Crestron at http://www.crestron.com/sla.

Current Tags

  • 0.1.47                                ...           latest (2 months ago)
  • 99.0.208                                ...           latest-dev (2 hours ago)
  • 0.1.47                                ...           latest-qe (2 months ago)

206 Versions

  • 99.0.208                                ...           2 hours ago
  • 99.0.207                                ...           a day ago
  • 99.0.206                                ...           2 days ago
  • 99.0.205                                ...           3 days ago
  • 99.0.204                                ...           4 days ago
  • 99.0.203                                ...           7 days ago
  • 99.0.202                                ...           8 days ago
  • 99.0.201                                ...           9 days ago
  • 99.0.200                                ...           10 days ago
  • 99.0.199                                ...           11 days ago
  • 99.0.198                                ...           14 days ago
  • 99.0.197                                ...           15 days ago
  • 99.0.196                                ...           16 days ago
  • 99.0.195                                ...           17 days ago
  • 99.0.194                                ...           18 days ago
  • 99.0.193                                ...           21 days ago
  • 99.0.192                                ...           22 days ago
  • 99.0.191                                ...           23 days ago
  • 99.0.190                                ...           24 days ago
  • 99.0.189                                ...           25 days ago
  • 99.0.188                                ...           a month ago
  • 99.0.187                                ...           a month ago
  • 99.0.186                                ...           a month ago
  • 99.0.185                                ...           a month ago
  • 99.0.184                                ...           a month ago
  • 99.0.183                                ...           a month ago
  • 99.0.182                                ...           a month ago
  • 99.0.181                                ...           a month ago
  • 99.0.180                                ...           a month ago
  • 99.0.179                                ...           a month ago
  • 99.0.178                                ...           a month ago
  • 99.0.177                                ...           a month ago
  • 99.0.176                                ...           a month ago
  • 99.0.175                                ...           a month ago
  • 99.0.174                                ...           2 months ago
  • 99.0.173                                ...           2 months ago
  • 99.0.172                                ...           2 months ago
  • 99.0.171                                ...           2 months ago
  • 99.0.170                                ...           2 months ago
  • 99.0.169                                ...           2 months ago
  • 99.0.168                                ...           2 months ago
  • 99.0.167                                ...           2 months ago
  • 99.0.166                                ...           2 months ago
  • 99.0.165                                ...           2 months ago
  • 99.0.164                                ...           2 months ago
  • 99.0.163 [deprecated]           ...           2 months ago
  • 99.0.162 [deprecated]           ...           2 months ago
  • 99.0.161 [deprecated]           ...           2 months ago
  • 99.0.160 [deprecated]           ...           2 months ago
  • 99.0.159 [deprecated]           ...           2 months ago
  • 99.0.158 [deprecated]           ...           2 months ago
  • 99.0.157 [deprecated]           ...           2 months ago
  • 99.0.156 [deprecated]           ...           2 months ago
  • 99.0.155 [deprecated]           ...           2 months ago
  • 99.0.154 [deprecated]           ...           2 months ago
  • 0.1.47                                ...           2 months ago
  • 99.0.153 [deprecated]           ...           2 months ago
  • 99.0.152 [deprecated]           ...           3 months ago
  • 99.0.151 [deprecated]           ...           3 months ago
  • 0.1.46 [deprecated]           ...           3 months ago
  • 99.0.150 [deprecated]           ...           3 months ago
  • 99.0.149 [deprecated]           ...           3 months ago
  • 0.1.45 [deprecated]           ...           3 months ago
  • 99.0.148 [deprecated]           ...           3 months ago
  • 99.0.147 [deprecated]           ...           3 months ago
  • 99.0.146 [deprecated]           ...           3 months ago
  • 99.0.145 [deprecated]           ...           3 months ago
  • 99.0.144 [deprecated]           ...           3 months ago
  • 0.1.44 [deprecated]           ...           3 months ago
  • 99.0.143 [deprecated]           ...           3 months ago
  • 99.0.142 [deprecated]           ...           3 months ago
  • 99.0.141 [deprecated]           ...           3 months ago
  • 0.1.43 [deprecated]           ...           3 months ago
  • 99.0.140 [deprecated]           ...           3 months ago
  • 99.0.139 [deprecated]           ...           3 months ago
  • 99.0.138 [deprecated]           ...           3 months ago
  • 99.0.137 [deprecated]           ...           3 months ago
  • 99.0.136 [deprecated]           ...           3 months ago
  • 99.0.135 [deprecated]           ...           3 months ago
  • 99.0.134 [deprecated]           ...           3 months ago
  • 0.1.42 [deprecated]           ...           3 months ago
  • 99.0.133 [deprecated]           ...           3 months ago
  • 99.0.132 [deprecated]           ...           3 months ago
  • 99.0.131 [deprecated]           ...           4 months ago
  • 99.0.130 [deprecated]           ...           4 months ago
  • 99.0.129 [deprecated]           ...           4 months ago
  • 99.0.128 [deprecated]           ...           4 months ago
  • 99.0.127 [deprecated]           ...           4 months ago
  • 0.1.41 [deprecated]           ...           4 months ago
  • 99.0.126 [deprecated]           ...           4 months ago
  • 99.0.125 [deprecated]           ...           4 months ago
  • 99.0.124 [deprecated]           ...           4 months ago
  • 0.1.40 [deprecated]           ...           4 months ago
  • 99.0.123 [deprecated]           ...           4 months ago
  • 99.0.122 [deprecated]           ...           4 months ago
  • 99.0.121 [deprecated]           ...           4 months ago
  • 0.1.39 [deprecated]           ...           4 months ago
  • 99.0.120 [deprecated]           ...           4 months ago
  • 99.0.119 [deprecated]           ...           4 months ago
  • 0.1.38 [deprecated]           ...           4 months ago
  • 99.0.118 [deprecated]           ...           4 months ago
  • 99.0.117 [deprecated]           ...           4 months ago
  • 99.0.116 [deprecated]           ...           4 months ago
  • 0.1.37 [deprecated]           ...           4 months ago
  • 99.0.115 [deprecated]           ...           4 months ago
  • 99.0.114 [deprecated]           ...           4 months ago
  • 0.1.36 [deprecated]           ...           4 months ago
  • 99.0.113 [deprecated]           ...           4 months ago
  • 99.0.112 [deprecated]           ...           4 months ago
  • 0.1.35 [deprecated]           ...           4 months ago
  • 99.0.111 [deprecated]           ...           4 months ago
  • 99.0.110 [deprecated]           ...           4 months ago
  • 99.0.109 [deprecated]           ...           4 months ago
  • 0.1.34 [deprecated]           ...           5 months ago
  • 99.0.108 [deprecated]           ...           5 months ago
  • 99.0.107 [deprecated]           ...           5 months ago
  • 99.0.106 [deprecated]           ...           5 months ago
  • 0.1.33 [deprecated]           ...           5 months ago
  • 99.0.105 [deprecated]           ...           5 months ago
  • 99.0.104 [deprecated]           ...           5 months ago
  • 99.0.103 [deprecated]           ...           5 months ago
  • 0.1.32 [deprecated]           ...           5 months ago
  • 99.0.102 [deprecated]           ...           5 months ago
  • 99.0.101 [deprecated]           ...           5 months ago
  • 0.1.31 [deprecated]           ...           5 months ago
  • 99.0.100 [deprecated]           ...           5 months ago
  • 99.0.99 [deprecated]           ...           5 months ago
  • 99.0.98 [deprecated]           ...           5 months ago
  • 99.0.97 [deprecated]           ...           5 months ago
  • 99.0.95 [deprecated]           ...           5 months ago
  • 99.0.94 [deprecated]           ...           5 months ago
  • 99.0.93 [deprecated]           ...           5 months ago
  • 99.0.92 [deprecated]           ...           5 months ago
  • 99.0.91 [deprecated]           ...           5 months ago
  • 99.0.90 [deprecated]           ...           5 months ago
  • 99.0.89 [deprecated]           ...           5 months ago
  • 99.0.88 [deprecated]           ...           5 months ago
  • 99.0.87 [deprecated]           ...           5 months ago
  • 99.0.86 [deprecated]           ...           5 months ago
  • 99.0.85 [deprecated]           ...           6 months ago
  • 99.0.84 [deprecated]           ...           6 months ago
  • 99.0.83 [deprecated]           ...           6 months ago
  • 99.0.82 [deprecated]           ...           6 months ago
  • 99.0.81 [deprecated]           ...           6 months ago
  • 99.0.80 [deprecated]           ...           6 months ago
  • 99.0.79 [deprecated]           ...           6 months ago
  • 99.0.78 [deprecated]           ...           6 months ago
  • 99.0.77 [deprecated]           ...           6 months ago
  • 99.0.76 [deprecated]           ...           6 months ago
  • 99.0.75 [deprecated]           ...           6 months ago
  • 99.0.74 [deprecated]           ...           6 months ago
  • 99.0.73 [deprecated]           ...           6 months ago
  • 99.0.72 [deprecated]           ...           6 months ago
  • 99.0.71 [deprecated]           ...           6 months ago
  • 99.0.70 [deprecated]           ...           6 months ago
  • 99.0.69 [deprecated]           ...           6 months ago
  • 99.0.68 [deprecated]           ...           6 months ago
  • 99.0.67 [deprecated]           ...           6 months ago
  • 99.0.66 [deprecated]           ...           6 months ago
  • 99.0.65 [deprecated]           ...           6 months ago
  • 99.0.64 [deprecated]           ...           6 months ago
  • 99.0.63 [deprecated]           ...           7 months ago
  • 0.1.21 [deprecated]           ...           7 months ago
  • 99.0.61 [deprecated]           ...           7 months ago
  • 99.0.60 [deprecated]           ...           7 months ago
  • 0.1.20 [deprecated]           ...           7 months ago
  • 99.0.59 [deprecated]           ...           7 months ago
  • 99.0.58 [deprecated]           ...           7 months ago
  • 99.0.57 [deprecated]           ...           7 months ago
  • 99.0.56 [deprecated]           ...           7 months ago
  • 0.1.16 [deprecated]           ...           7 months ago
  • 99.0.55 [deprecated]           ...           7 months ago
  • 99.0.54 [deprecated]           ...           7 months ago
  • 0.1.15 [deprecated]           ...           7 months ago
  • 99.0.53 [deprecated]           ...           7 months ago
  • 99.0.52 [deprecated]           ...           7 months ago
  • 99.0.48 [deprecated]           ...           7 months ago
  • 99.0.47 [deprecated]           ...           7 months ago
  • 0.1.14 [deprecated]           ...           7 months ago
  • 99.0.46 [deprecated]           ...           7 months ago
  • 99.0.44 [deprecated]           ...           7 months ago
  • 99.0.43 [deprecated]           ...           7 months ago
  • 99.0.42 [deprecated]           ...           7 months ago
  • 99.0.41 [deprecated]           ...           7 months ago
  • 99.0.40 [deprecated]           ...           7 months ago
  • 99.0.39 [deprecated]           ...           7 months ago
  • 0.1.12 [deprecated]           ...           7 months ago
  • 99.0.38 [deprecated]           ...           7 months ago
  • 99.0.37 [deprecated]           ...           7 months ago
  • 99.0.36 [deprecated]           ...           7 months ago
  • 99.0.35 [deprecated]           ...           7 months ago
  • 99.0.34 [deprecated]           ...           7 months ago
  • 0.1.10 [deprecated]           ...           7 months ago
  • 0.1.9 [deprecated]           ...           7 months ago
  • 99.0.33 [deprecated]           ...           7 months ago
  • 0.1.7 [deprecated]           ...           7 months ago
  • 99.0.32 [deprecated]           ...           7 months ago
  • 99.0.31 [deprecated]           ...           7 months ago
  • 0.1.4 [deprecated]           ...           8 months ago
  • 99.0.24 [deprecated]           ...           8 months ago
  • 99.0.15-test2 [deprecated]           ...           8 months ago
  • 99.0.15 [deprecated]           ...           8 months ago
  • 0.0.5 [deprecated]           ...           8 months ago
  • 0.0.4 [deprecated]           ...           10 months ago
  • 0.0.3 [deprecated]           ...           10 months ago
  • 0.0.2 [deprecated]           ...           a year ago
Maintainers (1)
Downloads
Today 9
This Week 252
This Month 252
Last Day 10
Last Week 51
Last Month 527
Dependencies (10)
Dev Dependencies (11)

Copyright 2014 - 2016 © taobao.org |