{"repo":"ophidian-lib/build","free":true,"listed":false,"github":"https://github.com/ophidian-lib/build","clone":"git clone https://github.com/ophidian-lib/build.git","description":"Build and publish Obsidian plugins with minimal configuration","language":"JavaScript","stars":20,"topics":["github-actions","obsidian-md","obsidian-plugins","obsidian-plugin-development"],"license":"ISC","category":"workflow-automation","readme_excerpt":"@ophidian/build: A Build & Publish System for Obsidian Plugins This module provides a complete build system for Obsidian plugins including a Github action for publishing them, without needing to duplicate large amounts of code and configuration between plugins. (The build and publish parts are actually independent: you don't have to use the builder to use the publisher or vice-versa, but they are combined in one repository for ease of use.) Building Plugins with the Builder To build your plugin, you'll need a small file like this (named ophidian.config.mjs by convention, but anything ending in .mjs will work): This is the entire build configuration. You can do more complex things with it, but the basics are: 1. You create the builder with the path of your plugin's main module (the one exporting the plugin class) 2. You indicate whether you're using Sass, CSS, or neither. (For Sass, you'll import .css or .scss files in your code; for CSS you'll just put a styles.css in your repository root.) 3. You indicate whether you want builds to be copied to the correct directory under your OBSIDIAN TEST VAULT environment variable and hot-reloaded (if you have the hot-reload plugin installed in that vault). (Note: if you don't want to set the environment variable by hand, you can use an .envrc file with direnv to set it automatically, or you can just symlink the plugin directory in your test vault to ./dist (or vice versa) and make sure there's a .hotreload file in it.) 4. You tell it to ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ophidian-lib","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ophidian-lib/build/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}