refactor: rename package scope from @sexy.pivoine.art to @sexy
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -126,7 +126,7 @@ pnpm dev:data
|
|||||||
pnpm dev:backend
|
pnpm dev:backend
|
||||||
|
|
||||||
# Start the frontend (port 3000, proxied to :4000)
|
# Start the frontend (port 3000, proxied to :4000)
|
||||||
pnpm --filter @sexy.pivoine.art/frontend dev
|
pnpm --filter @sexy/frontend dev
|
||||||
```
|
```
|
||||||
|
|
||||||
Visit `http://localhost:3000` and let the experience begin... 💋
|
Visit `http://localhost:3000` and let the experience begin... 💋
|
||||||
|
|||||||
@@ -51,7 +51,7 @@ services:
|
|||||||
COOKIE_SECRET: change-me-in-production
|
COOKIE_SECRET: change-me-in-production
|
||||||
SMTP_HOST: localhost
|
SMTP_HOST: localhost
|
||||||
SMTP_PORT: 587
|
SMTP_PORT: 587
|
||||||
EMAIL_FROM: noreply@sexy.pivoine.art
|
EMAIL_FROM: noreply@sexy
|
||||||
PUBLIC_URL: http://localhost:3000
|
PUBLIC_URL: http://localhost:3000
|
||||||
depends_on:
|
depends_on:
|
||||||
postgres:
|
postgres:
|
||||||
|
|||||||
10
package.json
10
package.json
@@ -5,12 +5,12 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"build:frontend": "pnpm --filter @sexy.pivoine.art/frontend build",
|
"build:frontend": "pnpm --filter @sexy/frontend build",
|
||||||
"build:backend": "pnpm --filter @sexy.pivoine.art/backend build",
|
"build:backend": "pnpm --filter @sexy/backend build",
|
||||||
"dev:buttplug": "pnpm --filter @sexy.pivoine.art/buttplug serve",
|
"dev:buttplug": "pnpm --filter @sexy/buttplug serve",
|
||||||
"dev:data": "docker compose up -d postgres redis",
|
"dev:data": "docker compose up -d postgres redis",
|
||||||
"dev:backend": "pnpm --filter @sexy.pivoine.art/backend dev",
|
"dev:backend": "pnpm --filter @sexy/backend dev",
|
||||||
"dev": "pnpm dev:data && pnpm dev:backend & pnpm dev:buttplug & pnpm --filter @sexy.pivoine.art/frontend dev",
|
"dev": "pnpm dev:data && pnpm dev:backend & pnpm dev:buttplug & pnpm --filter @sexy/frontend dev",
|
||||||
"lint": "eslint .",
|
"lint": "eslint .",
|
||||||
"lint:fix": "eslint . --fix",
|
"lint:fix": "eslint . --fix",
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@sexy.pivoine.art/backend",
|
"name": "@sexy/backend",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -20,8 +20,8 @@
|
|||||||
"@fastify/static": "^8.1.1",
|
"@fastify/static": "^8.1.1",
|
||||||
"@pothos/core": "^4.4.0",
|
"@pothos/core": "^4.4.0",
|
||||||
"@pothos/plugin-errors": "^4.2.0",
|
"@pothos/plugin-errors": "^4.2.0",
|
||||||
"@sexy.pivoine.art/email": "workspace:*",
|
"@sexy/email": "workspace:*",
|
||||||
"@sexy.pivoine.art/types": "workspace:*",
|
"@sexy/types": "workspace:*",
|
||||||
"argon2": "^0.43.0",
|
"argon2": "^0.43.0",
|
||||||
"bullmq": "^5.70.4",
|
"bullmq": "^5.70.4",
|
||||||
"drizzle-orm": "^0.44.1",
|
"drizzle-orm": "^0.44.1",
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ import type {
|
|||||||
RecentPoint,
|
RecentPoint,
|
||||||
UserGamification,
|
UserGamification,
|
||||||
Achievement,
|
Achievement,
|
||||||
} from "@sexy.pivoine.art/types";
|
} from "@sexy/types";
|
||||||
|
|
||||||
type AdminUserDetail = User & { photos: ModelPhoto[] };
|
type AdminUserDetail = User & { photos: ModelPhoto[] };
|
||||||
import { builder } from "../builder";
|
import { builder } from "../builder";
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import nodemailer from "nodemailer";
|
import nodemailer from "nodemailer";
|
||||||
import { renderVerification, renderPasswordReset } from "@sexy.pivoine.art/email";
|
import { renderVerification, renderPasswordReset } from "@sexy/email";
|
||||||
import { mailQueue } from "../queues/index.js";
|
import { mailQueue } from "../queues/index.js";
|
||||||
|
|
||||||
const transporter = nodemailer.createTransport({
|
const transporter = nodemailer.createTransport({
|
||||||
@@ -14,7 +14,7 @@ const transporter = nodemailer.createTransport({
|
|||||||
: undefined,
|
: undefined,
|
||||||
});
|
});
|
||||||
|
|
||||||
const FROM = process.env.EMAIL_FROM || "noreply@sexy.pivoine.art";
|
const FROM = process.env.EMAIL_FROM || "noreply@sexy";
|
||||||
|
|
||||||
export async function sendVerification(email: string, token: string): Promise<void> {
|
export async function sendVerification(email: string, token: string): Promise<void> {
|
||||||
const { subject, html } = await renderVerification({ token });
|
const { subject, html } = await renderVerification({ token });
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@sexy.pivoine.art/buttplug",
|
"name": "@sexy/buttplug",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@sexy.pivoine.art/email",
|
"name": "@sexy/email",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "./dist/index.js",
|
"main": "./dist/index.js",
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@sexy.pivoine.art/frontend",
|
"name": "@sexy/frontend",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"private": true,
|
"private": true,
|
||||||
@@ -11,7 +11,7 @@
|
|||||||
"check": "svelte-check --tsconfig ./tsconfig.json --threshold warning"
|
"check": "svelte-check --tsconfig ./tsconfig.json --threshold warning"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@sexy.pivoine.art/buttplug": "workspace:*",
|
"@sexy/buttplug": "workspace:*",
|
||||||
"@iconify-json/ri": "^1.2.10",
|
"@iconify-json/ri": "^1.2.10",
|
||||||
"@iconify/tailwind4": "^1.2.1",
|
"@iconify/tailwind4": "^1.2.1",
|
||||||
"@internationalized/date": "^3.12.0",
|
"@internationalized/date": "^3.12.0",
|
||||||
@@ -40,7 +40,7 @@
|
|||||||
"vite": "^7.3.1"
|
"vite": "^7.3.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@sexy.pivoine.art/types": "workspace:*",
|
"@sexy/types": "workspace:*",
|
||||||
"graphql": "^16.11.0",
|
"graphql": "^16.11.0",
|
||||||
"graphql-request": "^7.1.2",
|
"graphql-request": "^7.1.2",
|
||||||
"javascript-time-ago": "^2.6.4",
|
"javascript-time-ago": "^2.6.4",
|
||||||
|
|||||||
@@ -27,10 +27,10 @@ export type {
|
|||||||
RecentPoint,
|
RecentPoint,
|
||||||
UserGamification,
|
UserGamification,
|
||||||
Achievement,
|
Achievement,
|
||||||
} from "@sexy.pivoine.art/types";
|
} from "@sexy/types";
|
||||||
|
|
||||||
import type { CurrentUser } from "@sexy.pivoine.art/types";
|
import type { CurrentUser } from "@sexy/types";
|
||||||
import type { ButtplugClientDevice } from "@sexy.pivoine.art/buttplug";
|
import type { ButtplugClientDevice } from "@sexy/buttplug";
|
||||||
|
|
||||||
// ─── Frontend-only types ─────────────────────────────────────────────────────
|
// ─── Frontend-only types ─────────────────────────────────────────────────────
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { _ } from "svelte-i18n";
|
import { _ } from "svelte-i18n";
|
||||||
import Meta from "$lib/components/meta/meta.svelte";
|
import Meta from "$lib/components/meta/meta.svelte";
|
||||||
import type * as ButtplugTypes from "@sexy.pivoine.art/buttplug";
|
import type * as ButtplugTypes from "@sexy/buttplug";
|
||||||
import Button from "$lib/components/ui/button/button.svelte";
|
import Button from "$lib/components/ui/button/button.svelte";
|
||||||
import { onMount } from "svelte";
|
import { onMount } from "svelte";
|
||||||
import DeviceCard from "$lib/components/device-card/device-card.svelte";
|
import DeviceCard from "$lib/components/device-card/device-card.svelte";
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ export default defineConfig({
|
|||||||
},
|
},
|
||||||
build: {
|
build: {
|
||||||
rollupOptions: {
|
rollupOptions: {
|
||||||
external: ["@sexy.pivoine.art/buttplug"],
|
external: ["@sexy/buttplug"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
server: {
|
server: {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
{
|
{
|
||||||
"name": "@sexy.pivoine.art/types",
|
"name": "@sexy/types",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"private": true,
|
"private": true,
|
||||||
"types": "./src/index.ts",
|
"types": "./src/index.ts",
|
||||||
|
|||||||
8
pnpm-lock.yaml
generated
8
pnpm-lock.yaml
generated
@@ -53,10 +53,10 @@ importers:
|
|||||||
'@pothos/plugin-errors':
|
'@pothos/plugin-errors':
|
||||||
specifier: ^4.2.0
|
specifier: ^4.2.0
|
||||||
version: 4.9.0(@pothos/core@4.12.0(graphql@16.13.1))(graphql@16.13.1)
|
version: 4.9.0(@pothos/core@4.12.0(graphql@16.13.1))(graphql@16.13.1)
|
||||||
'@sexy.pivoine.art/email':
|
'@sexy/email':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../email
|
version: link:../email
|
||||||
'@sexy.pivoine.art/types':
|
'@sexy/types':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../types
|
version: link:../types
|
||||||
argon2:
|
argon2:
|
||||||
@@ -173,7 +173,7 @@ importers:
|
|||||||
|
|
||||||
packages/frontend:
|
packages/frontend:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@sexy.pivoine.art/types':
|
'@sexy/types':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../types
|
version: link:../types
|
||||||
graphql:
|
graphql:
|
||||||
@@ -207,7 +207,7 @@ importers:
|
|||||||
'@lucide/svelte':
|
'@lucide/svelte':
|
||||||
specifier: ^0.561.0
|
specifier: ^0.561.0
|
||||||
version: 0.561.0(svelte@5.53.7)
|
version: 0.561.0(svelte@5.53.7)
|
||||||
'@sexy.pivoine.art/buttplug':
|
'@sexy/buttplug':
|
||||||
specifier: workspace:*
|
specifier: workspace:*
|
||||||
version: link:../buttplug
|
version: link:../buttplug
|
||||||
'@sveltejs/adapter-node':
|
'@sveltejs/adapter-node':
|
||||||
|
|||||||
Reference in New Issue
Block a user