0.1.14 • Published 9 months ago

@kontrapunkt/shared v0.1.14

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

@kontrapunkt/shared

A collection of shared configuration files, directories, and utilities for Kontrapunkt projects. Built with cross-platform JavaScript APIs for maximum compatibility.

Installation

npm

npm install @kontrapunkt/shared

Bun

bun add @kontrapunkt/shared

Usage

Copying shared files and directories

You can copy shared configuration files and directories to your project in several ways:

Option 1: Using the CLI

# Copy all shared files and directories
npx @kontrapunkt/shared

# Copy specific files or directories
npx @kontrapunkt/shared .prettierrc components

Option 2: Using the API in your scripts

// ES Modules
import { copySharedFiles } from "@kontrapunkt/shared";

// Copy all shared files and directories
await copySharedFiles();

// Copy specific files or directories
await copySharedFiles([".prettierrc", "components"]);

// Copy to a specific directory
await copySharedFiles([], "/path/to/your/project");

// Copy without interactive prompts
await copySharedFiles([], "/path/to/your/project", false);

Available shared resources

The following configuration files and directories are available in this package:

  • Configuration files:

    • .prettierrc - Prettier configuration
    • .eslintrc - ESLint configuration
    • .cursorrules - Cursor editor configuration
    • tsconfig.json - TypeScript configuration
    • .nvmrc - Node version configuration
    • biome.json - Biome configuration
  • Directories:

    • Any directories uploaded to the shared folder will be copied with their entire structure

Development

# Install dependencies
npm install

# Build the package
npm run build

Technical Details

This package is built using cross-platform JavaScript APIs:

  • Uses Node.js fs module for file operations
  • Uses Node.js path module for path manipulations
  • Compatible with Node.js and Bun runtimes

Publishing

To publish a new version of the package:

# Run tests, build, and publish to npm
npm run publish

License

MIT

0.1.14

9 months ago

0.1.13

9 months ago

0.1.12

9 months ago

0.1.11

9 months ago

0.1.7

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago