-
Notifications
You must be signed in to change notification settings - Fork 14
/
package.json
87 lines (87 loc) · 3.39 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"name": "bookish-press",
"private": false,
"version": "0.6.54",
"type": "module",
"description": "A platform for reading and writing readable, accessible, beautiful online books.",
"license": "MIT",
"repository": "https://github.com/amyjko/bookish.git",
"scripts": {
"prepare": "svelte-kit sync",
"//dev": "echo 'Run the Svelte/Vite local server to test locally. Use in combination with run emu to run locally.'",
"dev": "vite dev",
"preview": "npm run build && vite preview",
"build": "npm run env && vite build",
"//emu": "echo 'This copies the local .env file and starts the emulator'",
"emu": "firebase use dev && npm run env && firebase emulators:start",
"package": "svelte-package --watch",
"test": "vitest",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
"//env": "echo 'This copies the .env file corresponding to the current Firebase project specified with firebase use, defaulting to local'",
"env": "cp .env.${GCLOUD_PROJECT:-example} .env",
"//stage": "echo 'switch to the dev project, deploy, relying on Firebase's predeploy hook to run the build script above before release'",
"stage": "firebase use dev && cp .env.bookish-dev-21ac3 .env && firebase deploy",
"//release": "echo 'switch to the prod project, deploy, relying on Firebase's predeploy hook to run the build script above before release'",
"release": "firebase use prod && cp .env.bookish-prod .env && firebase deploy",
"//merge": "merge dev into main, push to remote",
"merge": "git checkout main && git merge dev && git push origin main && git checkout dev"
},
"devDependencies": {
"@eslint/js": "^9.3.0",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/adapter-static": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/package": "^2.2",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/prismjs": "^1.26",
"@types/smoothscroll-polyfill": "^0",
"@types/uuid": "^9.0",
"chalk": "^5.3.0",
"eslint": "^9.3.0",
"globals": "^15.3.0",
"prettier": "^3",
"prettier-plugin-svelte": "^3",
"svelte-check": "^3.6",
"svelte-preprocess": "^5.1",
"tslib": "^2",
"typescript": "^5",
"uuid": "^9.0.1",
"vite": "^5.0.0",
"vitest": "^1.0.0"
},
"dependencies": {
"@sveltejs/kit": "^2.0.0",
"ajv": "^8",
"ajv-formats": "^3",
"firebase": "^10.8.1",
"firebase-functions": "^5",
"prismjs": "^1.29",
"smoothscroll-polyfill": "^0.4",
"svelte": "^4.2"
},
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"exports": {
"./package.json": "./package.json",
".": {
"types": "./dist/index.d.ts",
"main": "./dist/index.js",
"svelte": "./dist/index.js",
"default": "./dist/index.js"
},
"./Schema": {
"types": "./dist/models/book/Schema.d.ts",
"default": "./dist/models/book/Schema.js"
},
"./Chapter": {
"types": "./dist/models/book/Chapter.d.ts"
},
"./Edition": {
"types": "./dist/models/book/Edition.d.ts"
}
},
"files": [
"dist"
],
"svelte": "./dist/index.js"
}