@blinkk/root-cms 1.0.1-alpha.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,31 +1,136 @@
1
1
  {
2
2
  "name": "@blinkk/root-cms",
3
- "version": "1.0.1-alpha.0",
3
+ "version": "1.0.1",
4
4
  "author": "s@blinkk.com",
5
5
  "license": "MIT",
6
- "main": "index.js",
7
- "type": "module",
8
6
  "engines": {
9
7
  "node": ">=16.0.0"
10
8
  },
9
+ "repository": {
10
+ "type": "git",
11
+ "url": "git+https://github.com/blinkk/rootjs.git",
12
+ "directory": "packages/root-cms"
13
+ },
11
14
  "files": [
12
- "bin/*",
13
15
  "dist/**/*"
14
16
  ],
17
+ "bin": {
18
+ "root-cms": "./bin/root-cms.js"
19
+ },
20
+ "type": "module",
21
+ "module": "./dist/index.js",
22
+ "types": "./dist/index.d.ts",
15
23
  "exports": {
16
- "./schema": {
17
- "default": "./dist/schema.js",
18
- "import": "./dist/schema.js",
19
- "types": "./dist/schema.d.ts"
24
+ ".": {
25
+ "types": "./dist/core.d.ts",
26
+ "import": "./dist/core.js"
27
+ },
28
+ "./client": {
29
+ "types": "./dist/client.d.ts",
30
+ "import": "./dist/client.js"
31
+ },
32
+ "./core": {
33
+ "types": "./dist/core.d.ts",
34
+ "import": "./dist/core.js"
35
+ },
36
+ "./functions": {
37
+ "types": "./dist/functions.d.ts",
38
+ "import": "./dist/functions.js"
39
+ },
40
+ "./plugin": {
41
+ "types": "./dist/plugin.d.ts",
42
+ "import": "./dist/plugin.js"
43
+ },
44
+ "./project": {
45
+ "types": "./dist/project.d.ts",
46
+ "import": "./dist/project.js"
47
+ },
48
+ "./richtext": {
49
+ "types": "./dist/richtext.d.ts",
50
+ "import": "./dist/richtext.js"
20
51
  }
21
52
  },
53
+ "dependencies": {
54
+ "body-parser": "1.20.2",
55
+ "commander": "11.0.0",
56
+ "csv-parse": "5.5.2",
57
+ "csv-stringify": "6.4.4",
58
+ "dts-dom": "3.7.0",
59
+ "jsonwebtoken": "9.0.2",
60
+ "kleur": "4.1.5",
61
+ "sirv": "2.0.3",
62
+ "tiny-glob": "0.2.9"
63
+ },
64
+ "//": "NOTE(stevenle): due to compat issues with mantine and preact, mantine is pinned to v4.2.12",
22
65
  "devDependencies": {
23
- "tsup": "^6.3.0",
24
- "vitest": "^0.18.1"
66
+ "@babel/core": "7.17.9",
67
+ "@editorjs/editorjs": "2.28.2",
68
+ "@editorjs/header": "2.8.1",
69
+ "@editorjs/image": "2.9.0",
70
+ "@editorjs/list": "1.9.0",
71
+ "@editorjs/nested-list": "1.4.2",
72
+ "@editorjs/raw": "2.5.0",
73
+ "@editorjs/table": "2.3.0",
74
+ "@editorjs/underline": "1.1.0",
75
+ "@emotion/react": "11.10.5",
76
+ "@firebase/app-compat": "0.2.19",
77
+ "@firebase/app-types": "0.9.0",
78
+ "@firebase/rules-unit-testing": "3.0.1",
79
+ "@mantine/core": "4.2.12",
80
+ "@mantine/hooks": "4.2.12",
81
+ "@mantine/modals": "4.2.12",
82
+ "@mantine/notifications": "4.2.12",
83
+ "@mantine/spotlight": "4.2.12",
84
+ "@preact/compat": "17.1.2",
85
+ "@tabler/icons-preact": "2.39.0",
86
+ "@types/body-parser": "1.19.3",
87
+ "@types/gapi": "0.0.47",
88
+ "@types/gapi.client.drive-v3": "0.0.4",
89
+ "@types/gapi.client.sheets-v4": "0.0.4",
90
+ "@types/google.accounts": "0.0.14",
91
+ "@types/jsonwebtoken": "9.0.1",
92
+ "@types/node": "18.11.8",
93
+ "concurrently": "7.6.0",
94
+ "esbuild": "0.19.9",
95
+ "firebase": "10.5.2",
96
+ "firebase-admin": "11.11.1",
97
+ "firebase-functions": "4.8.0",
98
+ "firebase-tools": "12.9.1",
99
+ "marked": "9.1.1",
100
+ "preact": "10.19.3",
101
+ "preact-render-to-string": "6.3.1",
102
+ "preact-router": "4.1.2",
103
+ "react": "npm:@preact/compat@^17.1.2",
104
+ "react-dom": "npm:@preact/compat@^17.1.2",
105
+ "tsup": "8.0.1",
106
+ "typescript": "5.2.2",
107
+ "vite": "5.0.8",
108
+ "vitest": "0.34.6",
109
+ "@blinkk/root": "1.0.1"
110
+ },
111
+ "peerDependencies": {
112
+ "@blinkk/root": "1.0.1",
113
+ "firebase-admin": ">=11",
114
+ "firebase-functions": ">=4",
115
+ "preact": ">=10",
116
+ "preact-render-to-string": ">=5"
117
+ },
118
+ "peerDependenciesMeta": {
119
+ "firebase-functions": {
120
+ "optional": true
121
+ }
25
122
  },
26
123
  "scripts": {
27
- "build": "rm -rf dist && tsup",
28
- "test": "vitest run",
29
- "test:watch": "vitest"
124
+ "build": "rm -rf dist && concurrently -n \"core,signin,ui\" npm:build:core npm:build:signin npm:build:ui",
125
+ "build:core": "tsup-node --config=./core/tsup.config.ts",
126
+ "//": "NOTE: esbuild is used here because tsup doesn't currently support aliases.",
127
+ "build:ui": "esbuild ui/ui.tsx --bundle --alias:react=@preact/compat --alias:react-dom=@preact/compat --tsconfig=ui/tsconfig.json --sourcemap=inline --outdir=dist/ui",
128
+ "build:signin": "esbuild signin/signin.tsx --bundle --tsconfig=signin/tsconfig.json --sourcemap=inline --outdir=dist/ui",
129
+ "dev": "rm -rf dist && concurrently -k -n \"core,ui\" npm:dev:core npm:dev:signin npm:dev:ui",
130
+ "dev:core": "pnpm build:core --watch",
131
+ "dev:signin": "pnpm build:signin --watch",
132
+ "dev:ui": "pnpm build:ui --watch",
133
+ "test": "pnpm build && firebase emulators:exec 'vitest run'",
134
+ "test:watch": "pnpm build && firebase emulators:exec 'vitest'"
30
135
  }
31
136
  }