2022-06-16 17:11:31 +02:00
|
|
|
import { designs, plugins, packages, software } from './software/index.mjs'
|
|
|
|
|
|
|
|
/*
|
|
|
|
* As this monorepo has interlocking dependencies
|
|
|
|
* we need to ensure things get built in the correct
|
|
|
|
* order. This file takes care of that
|
|
|
|
*/
|
|
|
|
|
|
|
|
const first = [ 'core', 'config-helpers', 'remark-jargon' ]
|
|
|
|
const blocks = [ 'brian', 'titan', 'bella', 'breanna', 'bent' ]
|
2022-06-16 17:34:18 +02:00
|
|
|
const extend = [ 'carlita', 'simone', 'unice' ]
|
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
|
|
|
|
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-06-16 17:11:31 +02:00
|
|
|
[ 'plugin-bundle' ],
|
|
|
|
|
|
|
|
// Then build all FreeSewing designs that are blocks
|
|
|
|
blocks,
|
|
|
|
|
2022-06-16 17:34:18 +02:00
|
|
|
// Then build all designs, but not the ones that extend a non-block
|
|
|
|
Object.keys(designs).filter(id => [...blocks, ...extend].indexOf(id) === -1),
|
2022-06-16 17:11:31 +02:00
|
|
|
|
2022-06-16 17:34:18 +02:00
|
|
|
// Finally build the rest and designs that extend other non-block designs
|
|
|
|
[
|
|
|
|
...extend,
|
|
|
|
...Object.keys(packages).filter(id => first.indexOf(id) === -1),
|
|
|
|
]
|
2022-06-16 17:11:31 +02:00
|
|
|
]
|
|
|
|
|