ProzillaOS/packages/shared
2024-06-28 17:54:19 +02:00
..
src Updated app build process + updated docs 2024-06-23 15:12:54 +02:00
CHANGELOG.md Updated versions and changelogs 2024-06-28 17:54:19 +02:00
package.json Updated versions and changelogs 2024-06-28 17:54:19 +02:00
README.md Added media viewer app 2024-06-28 15:26:58 +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")
});