1.0.0 • Published 8 months ago

oats-docker v1.0.0

Weekly downloads
-
License
GPL-3.0
Repository
-
Last release
8 months ago

oats-docker

A runner of dockerized oats.

Dependencies

  • nodejs - see .node-version file (probably will work with many other versions)
  • pnpm - most likely works with other package managers too

Installation

pnpm i -D oats-docker

Setup

Put oats version into .oats-version file.

echo 1.4.1 > .oats-version

Usage

Add to scripts in your package.json something like this:

    "oats": "oats-docker"

or

    "gen-api": "oats-docker"

and then use as usual (depending on how you named the script):

pnpm oats

or

pnpm gen-api

Or in the case of npm probably something like this (not tested):

npm run oats

or

npm run gen-api

Development

pnpm i

For testing, you can navigate into your (typically front-end) project and use with relative path.

For example assuming your project is located at frontend in the same parent directory as oats-docker and you are currently in oats-docker directory:

cd ../frontend
node ../oats-docker/index.js

License

GPLv3