mirror of
https://github.com/djdevin/recflare.git
synced 2026-09-09 15:11:29 -07:00
Initial commit
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# @repo/{{ slug name }}
|
||||
|
||||
A shared package that can be used from other apps / packages.
|
||||
|
||||
To add it as as a dependency in another package, run:
|
||||
|
||||
```sh
|
||||
cd apps/example-worker-echoback # or whatever app/package you want to add it to
|
||||
pnpm add '@repo/{{ slug name }}@workspace:*'
|
||||
```
|
||||
@@ -0,0 +1,21 @@
|
||||
{
|
||||
"name": "@repo/{{ slug name }}",
|
||||
"version": "0.1.0",
|
||||
"private": true,
|
||||
"sideEffects": false,
|
||||
"type": "module",
|
||||
"main": "src/index.ts",
|
||||
"scripts": {
|
||||
"check:lint": "run-oxlint",
|
||||
"check:types": "run-tsc",
|
||||
"test": "run-vitest"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"@repo/tools": "workspace:*",
|
||||
"@repo/typescript-config": "workspace:*",
|
||||
"vitest": "3.1.3"{{#if usedInWorkers}},
|
||||
"@cloudflare/vitest-pool-workers": "0.8.24",
|
||||
"@cloudflare/workers-types": "4.20250503.0"{{/if}}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
/**
|
||||
* Example function.
|
||||
*
|
||||
* @example
|
||||
*
|
||||
* Use from other apps/packages:
|
||||
*
|
||||
* ```ts
|
||||
* import { hello } from '@repo/{{ slug name }}'
|
||||
*
|
||||
* hello()
|
||||
* ```
|
||||
*/
|
||||
export function hello() {
|
||||
return 'Hello, world!'
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "@repo/typescript-config/{{ tsconfigType }}"
|
||||
}
|
||||
Reference in New Issue
Block a user