outfit-scripts
v0.4.0
Published
A set of scripts used by Outfit templates.
Downloads
10
Readme
outfit-scripts
A set of scripts used by Outfit templates.
Usage
Add two npm scripts to zip and deploy your build.
"scripts": {
"deploy": "outfit-scripts deploy",
"zip": "outfit-scripts 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=