### Install Build Awesome Kit dependencies Source: https://github.com/anyblades/buildawesome-kit/blob/main/README.md Install the core package and the configuration kit via npm. ```sh npm install @awesome.me/buildawesome @anyblades/buildawesome-kit-config ``` -------------------------------- ### Install Core Plugin Source: https://github.com/anyblades/buildawesome-kit/blob/main/README.md Install the core package via npm. ```sh npm install @anyblades/buildawesome-kit ``` -------------------------------- ### Configure package.json scripts Source: https://github.com/anyblades/buildawesome-kit/blob/main/README.md Add build and start scripts to package.json to avoid manual configuration flags. ```json "scripts": { "build": "buildawesome --config=node_modules/@anyblades/buildawesome-kit-config/buildawesome.config.js", "start": "npm run build -- --serve" } ``` -------------------------------- ### Initialize default layout Source: https://github.com/anyblades/buildawesome-kit/blob/main/README.md Create the necessary directory structure and default template file for the project. ```sh mkdir _includes cd _includes/ ln -s ../node_modules/@anyblades/blades/_includes/blades echo "{% extends 'blades/html.njk' %}{% set site = { styles: ['https://cdn.jsdelivr.net/npm/@anyblades/blades@2/css/blades.min.css'] } %}" > default.njk cd .. echo "Hello, world! 🎈" > index.md ``` -------------------------------- ### Run Build Awesome with custom config Source: https://github.com/anyblades/buildawesome-kit/blob/main/README.md Execute the build process using the kit's built-in configuration file. ```sh npx @awesome.me/buildawesome --serve --config=node_modules/@anyblades/buildawesome-kit-config/buildawesome.config.js ``` -------------------------------- ### Extend base configuration Source: https://github.com/anyblades/buildawesome-kit/blob/main/README.md Import the kit configuration into a custom buildawesome.config.js file to add plugins or further customizations. ```js import kitConfig from "@anyblades/buildawesome-kit-config"; export default async function ($config) { await kitConfig($config); // Customize $config further as you like: $config.addPlugin(...); } ``` -------------------------------- ### Register Plugin in Configuration Source: https://github.com/anyblades/buildawesome-kit/blob/main/README.md Add the kit plugin to your buildawesome.config.js file. ```js import kitPlugin from "@anyblades/buildawesome-kit"; export default function ($config) { $config.addPlugin(kitPlugin); } ``` -------------------------------- ### Configure Virtual Workspace Scripts Source: https://github.com/anyblades/buildawesome-kit/blob/main/README.md Register the scripts directory as a virtual workspace in your package.json. ```json "workspaces": ["scripts"], "scripts": { "scripts": "npm -w scripts run", "start": "npm run scripts -- start", "stage": "npm run scripts -- stage", "build": "npm run scripts -- build" }, ``` -------------------------------- ### Link Scripts for Virtual Workspace Source: https://github.com/anyblades/buildawesome-kit/blob/main/README.md Create a symbolic link to the scripts package within your project directory. ```sh mkdir scripts cd scripts/ ln -s ../node_modules/@anyblades/buildawesome-kit/packages/scripts/package.json cd .. ``` -------------------------------- ### Toggle Plugin Features Source: https://github.com/anyblades/buildawesome-kit/blob/main/README.md Customize enabled features by passing an options object to the plugin registration. ```js $config.addPlugin(kitPlugin, { autoLinkFavicons: false, mdAutoRawTags: true, }); ``` -------------------------------- ### Toggle Plugin Filters Source: https://github.com/anyblades/buildawesome-kit/blob/main/README.md Customize enabled filters by passing a filters object to the plugin registration. ```js $config.addPlugin(kitPlugin, { filters: { attr_set: false }, }); ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.