1.1.5 • Published 4 years ago
teatype-publish v1.1.5
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).
Parameter | Description |
---|---|
directory names | Directories that should be published. You can list any number of directories separated by space |
-pid | Prototype ID. Any prototype you create has unique identifier, you need to get this in the Teatype.net application. |
-ptoken | Prototype token - anyone knowing this can update the given prototype. To revoke access you can change (or remove) prototype token in the Teatype.net application |
-basedir | If 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. |