2022-06-18 17:31:29 -07:00
2022-06-13 11:46:57 -07:00
2022-06-13 11:34:46 -07:00
2022-06-18 17:31:29 -07:00
2022-06-13 11:34:46 -07:00
2022-06-18 17:31:29 -07:00
2022-03-30 14:05:15 -07:00
2022-06-13 11:34:46 -07:00
2022-03-07 21:55:31 -08:00
2022-06-04 00:46:23 -07:00
2022-06-13 11:46:57 -07:00
2022-06-17 19:58:01 -07:00
2022-06-18 22:41:11 +00:00
2022-06-13 11:34:46 -07:00
2022-06-17 19:58:01 -07:00
2022-06-18 15:40:17 -07:00
2022-06-17 19:58:01 -07:00
2022-06-17 19:58:01 -07:00

Omorphia

The Modrinth component library, in Svelte


Read the documentation at omorphia.modrinth.com.

Requires Node v16.5+.

Developing

The library lives in the package/ folder, and the documentation lives in the docs/ folder.

pnpm install # Install dependencies
pnpm dev # Run dev server

Adding new components

Replace ComponentName with your component name in the steps below

  1. Create a ComponentName.svelte file in src/components

  2. Add an export for your component in ./src/index.ts

    export { default as ComponentName } from './components/ComponentName.svelte'
    
  3. Create a ComponentName.md file for documentation in docs/routes/components

  4. Add an example of your component in your ComponentName.md file, like so:

    ```svelte example raised
    <script lang="ts">
    	import { ComponentName } from 'omorphia'
    </script>
    
    <ComponentName />
    ```
    

Packaging

pnpm package

Building

To build the documentation site, run:

pnpm build
Description
The Modrinth monorepo containing all code which powers Modrinth!
Readme 122 MiB
Languages
Rust 44.6%
Vue 38.6%
TypeScript 8.2%
HTML 5.1%
JavaScript 1.9%
Other 1.5%