import __SFrontspec from '@coffeekraken/s-frontspec'; import type { ISKitchenIngredient } from '../../SKitchen.js'; /** * @name frontspecIngredient * @namespace node.ingredients.frontspec * @type ISKitchenIngredient * @static * * This ingredient represent the "frontspec.json" file at the root of your project * * @since 2.0.0 * @author Olivier Bossel (https://coffeekraken.io) */ const frontspecIngredient: ISKitchenIngredient = { id: 'frontspec', description: 'Add the default frontspec.json file into your sugar project', projectTypes: ['unknown', 'sugar'], async add() { const frontspec = new __SFrontspec(); await frontspec.build(); console.verbose?.( `[frontspec] Default frontspec.json file addedd successfully`, ); return true; }, }; export default frontspecIngredient;