2023-06-27 05:59:03 +00:00
|
|
|
import type { PresetAsset } from "presetter-types";
|
|
|
|
import { PresetContext } from "presetter-types";
|
|
|
|
|
|
|
|
/**
|
|
|
|
* get the list of templates provided by this preset
|
|
|
|
* @returns list of preset templates
|
|
|
|
*/
|
|
|
|
export default async function (context: PresetContext): Promise<PresetAsset> {
|
|
|
|
const ignores = !context.custom.config?.official
|
|
|
|
? [".github/workflows/ci.yml"]
|
|
|
|
: [];
|
|
|
|
|
|
|
|
return {
|
2023-06-30 05:58:41 +00:00
|
|
|
extends: [
|
2023-06-30 07:00:44 +00:00
|
|
|
"@lumeweb/node-library-preset",
|
2023-06-30 07:47:00 +00:00
|
|
|
"@lumeweb/presetter-preset-rollup",
|
2023-06-30 05:58:41 +00:00
|
|
|
],
|
2023-06-27 05:59:03 +00:00
|
|
|
supplementaryIgnores: ignores,
|
2023-06-29 21:57:25 +00:00
|
|
|
supplementaryConfig: {
|
2023-06-30 09:27:18 +00:00
|
|
|
release: {
|
|
|
|
plugins: {
|
2023-06-30 10:07:28 +00:00
|
|
|
"3": ["@semantic-release/npm", { npmPublish: false }],
|
2023-06-30 09:27:18 +00:00
|
|
|
},
|
|
|
|
},
|
2023-07-03 08:27:55 +00:00
|
|
|
rollup: {
|
|
|
|
plugins: {
|
2023-07-03 09:14:05 +00:00
|
|
|
"1": {
|
|
|
|
"1": {
|
|
|
|
dedupe: [
|
|
|
|
"@lumeweb/libkernel",
|
|
|
|
"@lumeweb/libweb",
|
|
|
|
"@lumeweb/libportal",
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
2023-07-03 08:27:55 +00:00
|
|
|
},
|
|
|
|
},
|
2023-06-29 21:57:25 +00:00
|
|
|
},
|
2023-06-27 05:59:03 +00:00
|
|
|
};
|
|
|
|
}
|