2022-10-13 16:19:36 +02:00
|
|
|
import { designs, plugins, packages } from './software/index.mjs'
|
2022-06-16 17:11:31 +02:00
|
|
|
|
|
|
|
/*
|
|
|
|
* As this monorepo has interlocking dependencies
|
|
|
|
* we need to ensure things get built in the correct
|
|
|
|
* order. This file takes care of that
|
|
|
|
*/
|
|
|
|
|
2022-11-13 14:10:28 -08:00
|
|
|
const first = ['core', 'remark-jargon', 'snapseries']
|
2022-10-13 16:19:36 +02:00
|
|
|
const blocks = ['brian', 'titan', 'bella', 'breanna']
|
2023-07-21 14:40:17 +02:00
|
|
|
const extended = ['bent', 'simon', 'carlton']
|
2022-06-16 17:11:31 +02:00
|
|
|
|
|
|
|
export const buildOrder = [
|
|
|
|
// First build FreeSewing core library and config-helpers
|
|
|
|
first,
|
|
|
|
|
2022-06-16 17:34:18 +02:00
|
|
|
// Then build all FreeSewing plugins, but not the bundle
|
2022-10-13 16:19:36 +02:00
|
|
|
Object.keys(plugins).filter((id) => id !== 'plugin-bundle'),
|
2022-06-16 17:11:31 +02:00
|
|
|
|
2022-06-16 17:34:18 +02:00
|
|
|
// Then build the plugin bundle
|
2022-10-13 16:19:36 +02:00
|
|
|
['plugin-bundle'],
|
2022-06-16 17:11:31 +02:00
|
|
|
|
|
|
|
// Then build all FreeSewing designs that are blocks
|
|
|
|
blocks,
|
|
|
|
|
2022-06-16 18:05:44 +02:00
|
|
|
// Then build all FreeSewing designs that are further extended
|
|
|
|
extended,
|
2022-06-16 17:11:31 +02:00
|
|
|
|
2022-06-16 18:05:44 +02:00
|
|
|
// Then build all remaining designs
|
2022-10-13 16:19:36 +02:00
|
|
|
Object.keys(designs).filter((id) => [...blocks, ...extended].indexOf(id) === -1),
|
2022-06-16 18:05:44 +02:00
|
|
|
|
|
|
|
// Finally build the rest of the packages
|
2023-07-04 21:14:09 +02:00
|
|
|
Object.keys(packages).filter((id) => first.indexOf(id) === -1),
|
2022-06-16 17:11:31 +02:00
|
|
|
]
|