1.1.5 • Published 4 years ago

teatype-publish v1.1.5

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

teatype-publish

Publish your Storybook in one click. Teatype.net service allows you to host any static HMTL, CSS and JavaScript prototype and let's you easily update your files using a browser or NPM.

Installation

Install the connector as a development dependency

npm install teatype-publish --save-dev

Add publish snippet to your scripts in package.json file:

"scripts": {
    "publish": "teatype-publish dist -pid=42 -ptoken=xyz123 -basedir=dist"
    ...
}

The command above will take all files in a sub-directory dist and publishes them in the prototype ID 42 (assuming the token xyz123 is correct).

ParameterDescription
directory namesDirectories that should be published. You can list any number of directories separated by space
-pidPrototype ID. Any prototype you create has unique identifier, you need to get this in the Teatype.net application.
-ptokenPrototype token - anyone knowing this can update the given prototype. To revoke access you can change (or remove) prototype token in the Teatype.net application
-basedirIf you don't want the published files to contain the sub directory you can strip it here so the files will be published to the root directory of your prototype.
1.1.5

4 years ago

1.0.0

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago