mirror of
https://github.com/hugo-fixit/FixIt.git
synced 2026-08-24 15:28:57 +00:00
chore(packages): replace helpers with standalone chroma-lexers and enrich shared
- Replace helpers dispatcher pattern with standalone chroma-lexers package - Add runCommand, fromRoot, consola re-export to shared - Update versioning and integration to use shared utilities - Shorten dev version format: base36 timestamp, no hash - Rename eslint.config.js to eslint.config.ts (add jiti) - Add README.md to each package
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# @hugo-fixit/integration
|
||||
|
||||
Post-build script that merges `apps/demo` and `apps/test` build outputs into a unified `public/` directory.
|
||||
|
||||
## Usage
|
||||
|
||||
```bash
|
||||
pnpm -F integration start
|
||||
```
|
||||
|
||||
## How it works
|
||||
|
||||
1. Removes the existing `public/` directory
|
||||
2. Copies `apps/demo/public/` into `public/`
|
||||
3. Copies `apps/test/public/` into `public/test/`
|
||||
@@ -1,9 +1,8 @@
|
||||
import path from 'node:path'
|
||||
import { workspaceRoot } from '@hugo-fixit/shared'
|
||||
import { fromRoot } from '@hugo-fixit/shared'
|
||||
import fsExtra from 'fs-extra'
|
||||
|
||||
const { copySync, removeSync } = fsExtra
|
||||
|
||||
removeSync(path.join(workspaceRoot, 'public'))
|
||||
copySync(path.join(workspaceRoot, 'apps/demo/public'), path.join(workspaceRoot, 'public'), { overwrite: true })
|
||||
copySync(path.join(workspaceRoot, 'apps/test/public'), path.join(workspaceRoot, 'public/test'), { overwrite: true })
|
||||
removeSync(fromRoot('public'))
|
||||
copySync(fromRoot('apps/demo/public'), fromRoot('public'), { overwrite: true })
|
||||
copySync(fromRoot('apps/test/public'), fromRoot('public/test'), { overwrite: true })
|
||||
|
||||
Reference in New Issue
Block a user