0
Fork 0
mirror of https://github.com/penpot/penpot-export.git synced 2025-01-21 22:22:32 -05:00
penpot-export/packages/demos/demo-scss/penpot-export.config.js

38 lines
947 B
JavaScript
Raw Permalink Normal View History

// @ts-check
require('dotenv').config({ path: '../.env' })
if (typeof process.env.PENPOT_ACCESS_TOKEN !== 'string') {
throw new Error('Missing PENPOT_ACCESS_TOKEN environment variable')
}
2023-09-25 14:45:41 +02:00
if (typeof process.env.PENPOT_FILE_ID !== 'string') {
throw new Error('Missing PENPOT_FILE_ID environment variable')
}
/**
* @type {import('@penpot-export/core').UserConfig}
*/
const config = {
instance: process.env.PENPOT_BASE_URL || undefined,
accessToken: process.env.PENPOT_ACCESS_TOKEN,
files: [
{
2023-09-25 14:45:41 +02:00
fileId: process.env.PENPOT_FILE_ID,
colors: [
{
format: 'scss',
output: './variables/colors.scss', // 👈 Path where your SCSS file should be generated.
},
],
typographies: [
{
format: 'scss',
output: './variables/typographies.scss', // 👈 Path where your SCSS file should be generated.
},
],
},
],
}
module.exports = config