@formcentric/utils
TypeScript icon, indicating that this package has built-in type declarations

0.0.1 • Public • Published

Formcentric Utilities

A utility library for Formcentric applications, providing frontend tooling for applications using Formcentric forms.

Installation

npm install @formcentric/utils
# or
yarn add @formcentric/utils
# or
pnpm i @formcentric/utils

Features

Theme Management

The library provides a comprehensive theme management system for Formcentric themes.

CLI

The library provides a CLI tool for theme management:

# Create a new theme
pnpm fc-utils-themes create

# Update existing themes
pnpm fc-utils-themes update

# Reset themes to their default state
pnpm fc-utils-themes reset

# Generate theme list
pnpm fc-utils-themes list

# Show help
pnpm fc-utils-themes --help

API

You can also use the theme management library programmatically:

import { create, update, reset, generateThemeList, prebuild, ThemeType } from '@formcentric/utils/themes'

// Create a new theme
await create()

// Update existing themes
await update()

// Reset themes to their default state
await reset()

// Generate theme list
await generateThemeList()

// Prebuild themes for production
await prebuild()

Vite Plugins

The library provides Vite plugins for building and watching Formcentric Themes during local development:

import { fcThemeBuilder, fcThemeWatcher, fcIIFE } from '@formcentric/utils/themes'

// In your vite.config.ts
export default defineConfig({
    plugins: [fcThemeBuilder(), fcThemeWatcher(), fcIIFE()],
})

Configuration

The theme management system is configurable through a configuration file. The default configuration includes:

  • File paths for theme sources and outputs
  • Theme variant handling
  • Custom theme file templates
  • Reset paths

License

UNLICENSED - Proprietary software by Formcentric

Author

Formcentric

Readme

Keywords

none

Package Sidebar

Install

npm i @formcentric/utils

Weekly Downloads

0

Version

0.0.1

License

UNLICENSED

Unpacked Size

55.3 kB

Total Files

45

Last publish

Collaborators

  • fbaser
  • nmohr
  • nboehm