2023-05-07 17:42:05 -05:00
|
|
|
import { version } from '../data.mjs'
|
2023-09-29 16:16:56 +02:00
|
|
|
import { downloads } from './download-list.mjs'
|
2023-05-07 17:42:05 -05:00
|
|
|
|
2022-06-20 18:31:22 +02:00
|
|
|
export const config = {
|
2022-10-06 15:45:13 +02:00
|
|
|
// Whether we're publishing next or latest tags
|
|
|
|
tag: 'next',
|
2022-10-06 14:15:13 +02:00
|
|
|
// Minimum node version
|
2023-09-29 09:47:54 +02:00
|
|
|
node: 18,
|
2022-10-06 14:15:13 +02:00
|
|
|
// Site to download from
|
2022-06-23 10:18:52 +02:00
|
|
|
fileUri: 'https://raw.githubusercontent.com',
|
2022-10-06 14:15:13 +02:00
|
|
|
// Repository to download from
|
|
|
|
repo: process.env.FS_REPO || 'freesewing/freesewing',
|
|
|
|
// Branch to download from
|
2023-05-19 17:24:22 +02:00
|
|
|
branch: process.env.FS_BRANCH || `v${version}`,
|
2022-06-20 18:31:22 +02:00
|
|
|
i18n: [
|
|
|
|
'account',
|
|
|
|
'common',
|
|
|
|
'patrons',
|
|
|
|
'themes',
|
|
|
|
'workbench',
|
|
|
|
'errors',
|
|
|
|
'i18n',
|
2023-09-29 09:47:54 +02:00
|
|
|
'sde',
|
2022-06-20 18:31:22 +02:00
|
|
|
'measurements',
|
|
|
|
'optiongroups',
|
|
|
|
'o_bella',
|
|
|
|
'o_bent',
|
|
|
|
'o_breanna',
|
|
|
|
'o_brian',
|
|
|
|
'o_titan',
|
|
|
|
'parts',
|
|
|
|
'plugin',
|
|
|
|
'settings',
|
|
|
|
'welcome',
|
|
|
|
],
|
2022-06-23 15:17:18 +02:00
|
|
|
gitignore: `
|
|
|
|
# See https://help.github.com/ignore-files/ for more about ignoring files.
|
|
|
|
|
|
|
|
# dependencies
|
|
|
|
node_modules
|
|
|
|
|
|
|
|
# builds
|
|
|
|
dist
|
|
|
|
.next
|
|
|
|
|
|
|
|
# misc
|
|
|
|
.DS_Store
|
|
|
|
.env
|
|
|
|
.env.local
|
|
|
|
.env.development.local
|
|
|
|
.env.test.local
|
|
|
|
.env.production.local
|
|
|
|
|
|
|
|
npm-debug.log*
|
|
|
|
yarn-debug.log*
|
|
|
|
yarn-error.log*
|
2023-04-24 21:46:35 -04:00
|
|
|
|
2022-06-23 15:17:18 +02:00
|
|
|
`,
|
2022-10-06 14:15:13 +02:00
|
|
|
fetch: {
|
2023-09-29 17:35:08 +02:00
|
|
|
// account:
|
|
|
|
// sets
|
|
|
|
// shared
|
|
|
|
// control
|
2022-10-06 14:15:13 +02:00
|
|
|
config: [
|
|
|
|
{
|
|
|
|
from: 'measurements.mjs',
|
|
|
|
to: 'shared/config/measurements.mjs',
|
|
|
|
},
|
2023-09-29 16:01:27 +02:00
|
|
|
{
|
|
|
|
from: 'social.mjs',
|
|
|
|
to: 'shared/config/social.mjs',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
from: 'roles.mjs',
|
|
|
|
to: 'shared/config/roles.mjs',
|
|
|
|
},
|
2022-10-06 14:15:13 +02:00
|
|
|
],
|
|
|
|
sites: [
|
2023-09-29 16:33:20 +02:00
|
|
|
// Mock MDX components
|
2023-09-29 17:35:08 +02:00
|
|
|
...[
|
|
|
|
'highlight',
|
|
|
|
'youtube',
|
|
|
|
'read-more',
|
|
|
|
'tabbed-example',
|
|
|
|
'http',
|
|
|
|
'legend',
|
|
|
|
'docs-helpers',
|
|
|
|
].map((file) => ({
|
2023-09-29 16:47:30 +02:00
|
|
|
from: `sde/mock/${file}.mjs`,
|
|
|
|
to: `shared/components/mdx/${file}.mjs`,
|
|
|
|
})),
|
2023-09-29 16:33:20 +02:00
|
|
|
// .env file
|
2023-09-29 09:47:54 +02:00
|
|
|
{
|
|
|
|
from: 'sde/env.local',
|
|
|
|
to: 'sde/.env.local',
|
|
|
|
},
|
2023-09-29 16:16:56 +02:00
|
|
|
...downloads,
|
2022-10-06 14:15:13 +02:00
|
|
|
],
|
|
|
|
},
|
2022-06-20 18:31:22 +02:00
|
|
|
}
|