Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite6618a8

Browse files
added shared folder
Signed-off-by: Benjamin Strasser <bp.strasser@gmail.com>
1 parent1fb9150 commite6618a8

File tree

13 files changed

+35
-11
lines changed

13 files changed

+35
-11
lines changed

‎pnpm-lock.yaml‎

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more aboutcustomizing how changed files appear on GitHub.

‎pnpm-workspace.yaml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
packages:
22
-"services"
3+
-"shared"

‎services/src/project/project-service.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
importtype{CreateProjectFormSchema}from'$components/container/projects/create-project-schema'
2-
import{createSlug}from'../util/slug/slug-service'
2+
import{createSlug}from'shared/slug/slug-service'
33
import{CreateProjectNameNotUniqueError}from'../error'
44
import*asrepositoryfrom'./project-repository'
55
import{SqliteError}from'better-sqlite3'

‎services/src/project/project-service.unit.test.ts‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import * as repository from './project-repository'
44
import{CreateProjectNameNotUniqueError}from'../error'
55
import{SqliteError}from'better-sqlite3'
66
importtype{CreateProjectFormSchema}from'$components/container/projects/create-project-schema'
7-
import{createSlug}from'../util/slug/slug-service'
7+
import{createSlug}from'shared/slug/slug-service'
88

99
vi.mock('./project-repository',()=>({
1010
createProject:vi.fn(),
1111
getAllProjects:vi.fn()
1212
}))
1313

14-
vi.mock('../util/slug/slug-service',()=>({
14+
vi.mock('shared/slug/slug-service',()=>({
1515
createSlug:vi.fn()
1616
}))
1717

‎shared/package.json‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"name":"shared",
3+
"dependencies": {},
4+
"devDependencies": {
5+
"vite":"^5.2.11",
6+
"vitest":"^2.0.0"
7+
},
8+
"type":"module"
9+
}
File renamed without changes.

‎src/components/container/projects/create-project-schema.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import{createSlug}from'services/util/slug/slug-service'
1+
import{createSlug}from'shared/slug/slug-service'
22
import{z}from'zod'
33

44
exportconstbaseCreateProjectSchema=z.object({

‎src/components/container/projects/slug-display.svelte‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<scriptlang="ts">
2-
import {createSlug }from'services/util/slug/slug-service'
2+
import {createSlug }from'shared/slug/slug-service'
33
44
exportlet name:string
55
</script>

‎svelte.config.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ const config = {
1616
$components:'src/components',
1717
$models:'src/models',
1818
$utils:'src/utils',
19-
services:'services/src'
19+
services:'services/src',
20+
shared:'shared/src'
2021
}
2122
}
2223
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp