ProzillaOS/packages/shared
2024-08-08 10:38:46 +02:00
..
src feat: Added script for creating GH releases 2024-07-23 15:33:34 +02:00
CHANGELOG.md Changed license to MIT 2024-08-08 10:38:46 +02:00
package.json Changed license to MIT 2024-08-08 10:38:46 +02:00
README.md Docs: Added separate packages pages 2024-07-17 20:13:17 +02:00
tsconfig.json Updated app build process + updated docs 2024-06-23 15:12:54 +02:00
vite.config.ts Updated app build process + updated docs 2024-06-23 15:12:54 +02:00


ProzillaOS

License Stars Forks NPM Version

About

@prozilla-os/shared is a library of shared utility functions for ProzillaOS packages.

Installation

$ npm install @prozilla-os/shared
$ yarn add @prozilla-os/shared
$ pnpm add @prozilla-os/shared

Usage

appViteConfig(basePath, entryPath)

Helper function for creating Vite configurations for ProzillaOS apps.

Params

  • basePath (string) - Path of base directory
  • entryPath (string) - Path of library entry

Example

// vite.config.ts

import { defineConfig } from "vite";
import { appViteConfig } from "@prozilla-os/shared";

export default defineConfig({
	...appViteConfig(__dirname, "src/main.ts")
});
  • Demo
  • [Docs][docs]
  • [GitHub][github]
  • [npm][npm]
  • [Discord][discord]
  • [Ko-fi][ko-fi]

[docs]: [docs]: https://os.prozilla.dev/docs/reference/shared [github]: https://github.com/prozilla-os/ProzillaOS/tree/main/packages/shared [npm]: https://www.npmjs.com/package/@prozilla-os/shared [discord]: https://discord.gg/JwbyQP4tdz [ko-fi]: https://ko-fi.com/prozilla