1.0.9 • Published 7 months ago

rokka-stacks-generator v1.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Rokka Stacks Generator

This small cli tools generates rokka stacks and uploads them to rokka.io.

Installation

Run the following command in your project folder:

npm install rokka-stacks-generator

Then install it with: `npm install @ayalon/rokka-stacks-generator'

How to use it

Add a stacks.yml file to your component folder. The command will recursively search all yml files and create a json file that will be uploaded to rokka.io

npx rokka-stacks-generator --folder /your/folder --output /output/rokka.json --apikey your_api_key --organization your-rokka-organization

Example

name: slider_image
ratio:
  w: 4
  h: 3
pictures:
  mobile:
    width: 200
    height: 100
  tablet:
    width: 600
    height: 400
  desktop:
    width: 500
    height: 350
  widescreen:
    width: 800
    height: 600

Now you can run the cli command and search for the stacks.yml definitions. Provide a folder to look for.

1.0.9

7 months ago

1.0.8

7 months ago

1.0.7

7 months ago

1.0.6

7 months ago

1.0.5

3 years ago

1.0.3

3 years ago