1.2.0 • Published 2 years ago

@outfit.io/template-api-node-client v1.2.0

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@outfit.io/template-api-node-client

Zips build up and deploys to Outfit.io

Usage

Add two npm scripts to zip and deploy your build.

  "scripts": {
        "deploy": "outfit-deploy",
        "zip": "outfit-zip"
    }

Zip

The Zip script take files from .outfit/config.json. Structure your config.json with a files array of objects, like the following:

{
    "files" : [
        {
            "src": "dist/",
            "directory": true
        },
        {
            "src": "public/importmap.json",
            "dist": "importmap.json"
        },
        {
            "src": "public/index.html",
            "dist": "index.html"
        },
        {
            "src": "public/templates.js",
            "dist": "templates.js"
        },
        {
            "src": "README.md",
            "dist": "README.md"
        }
    ]
}

Deploy

The Deploy script takes a .outfit/.env file into account for the required secrets

API_BASE_URL=
APP_ID=
USER_EMAIL=
USER_TOKEN=
TEMPLATE_NAME=
TEMPLATE_ID=
1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago