0
Fork 0
mirror of https://github.com/penpot/penpot-export.git synced 2025-03-11 23:11:17 -05:00

feat(demos): share the Penpot file ID

This commit is contained in:
Roberto Redradix 2023-09-25 14:45:41 +02:00
parent f988d73655
commit 9d76f9b0e4
4 changed files with 19 additions and 3 deletions

View file

@ -2,6 +2,10 @@
# With scheme, optional port and path but without trailing slash
#PENPOT_BASE_URL="https://your.penpot.instance"
# CONFIG Identifier of the Penpot file to be used
# It must be a UUID
PENPOT_FILE_ID="<retrieve it from the URL>"
# SECRET Personal access token to access the internal Penpot API
# Generate a new one from the Penpot webapp at Your account -> Access Tokens
# It only needs read-only permissions

View file

@ -5,6 +5,10 @@ if (typeof process.env.PENPOT_ACCESS_TOKEN !== 'string') {
throw new Error('Missing PENPOT_ACCESS_TOKEN environment variable')
}
if (typeof process.env.PENPOT_FILE_ID !== 'string') {
throw new Error('Missing PENPOT_FILE_ID environment variable')
}
/**
* @type {import('@penpot-export/core').UserConfig}
*/
@ -13,7 +17,7 @@ const config = {
accessToken: process.env.PENPOT_ACCESS_TOKEN,
files: [
{
fileId: '4a499800-872e-80e1-8002-fc0b585dc061',
fileId: process.env.PENPOT_FILE_ID,
colors: [
{
format: 'css',

View file

@ -5,6 +5,10 @@ if (typeof process.env.PENPOT_ACCESS_TOKEN !== 'string') {
throw new Error('Missing PENPOT_ACCESS_TOKEN environment variable')
}
if (typeof process.env.PENPOT_FILE_ID !== 'string') {
throw new Error('Missing PENPOT_FILE_ID environment variable')
}
/**
* @type {import('@penpot-export/core').UserConfig}
*/
@ -13,7 +17,7 @@ const config = {
accessToken: process.env.PENPOT_ACCESS_TOKEN,
files: [
{
fileId: '4a499800-872e-80e1-8002-fc0b585dc061',
fileId: process.env.PENPOT_FILE_ID,
colors: [
{
format: 'json',

View file

@ -5,6 +5,10 @@ if (typeof process.env.PENPOT_ACCESS_TOKEN !== 'string') {
throw new Error('Missing PENPOT_ACCESS_TOKEN environment variable')
}
if (typeof process.env.PENPOT_FILE_ID !== 'string') {
throw new Error('Missing PENPOT_FILE_ID environment variable')
}
/**
* @type {import('@penpot-export/core').UserConfig}
*/
@ -13,7 +17,7 @@ const config = {
accessToken: process.env.PENPOT_ACCESS_TOKEN,
files: [
{
fileId: '4a499800-872e-80e1-8002-fc0b585dc061',
fileId: process.env.PENPOT_FILE_ID,
colors: [
{
format: 'scss',