create-cedar-app 3.1.1 → 3.1.2-next.126
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/database-overlays/neon-postgres/.env +20 -0
- package/database-overlays/neon-postgres/api/db/schema.prisma +26 -0
- package/database-overlays/neon-postgres/api/package.json +12 -0
- package/database-overlays/neon-postgres/api/prisma.config.cjs +12 -0
- package/database-overlays/neon-postgres/api/src/lib/db.ts +32 -0
- package/database-overlays/pglite/.env.defaults +18 -0
- package/database-overlays/pglite/api/db/schema.prisma +26 -0
- package/database-overlays/pglite/api/package.json +14 -0
- package/database-overlays/pglite/api/prisma.config.mts +82 -0
- package/database-overlays/pglite/api/src/lib/db.ts +50 -0
- package/dist/create-cedar-app.js +411 -449
- package/package.json +6 -6
- package/templates/esm-js/{.redwood → .cedar}/README.md +4 -4
- package/templates/esm-js/.env.defaults +2 -2
- package/templates/esm-js/.env.example +1 -1
- package/templates/esm-js/.vscode/launch.json +3 -3
- package/templates/esm-js/README.md +2 -2
- package/templates/esm-js/api/jsconfig.json +4 -4
- package/templates/esm-js/api/package.json +3 -3
- package/templates/esm-js/gitignore.template +3 -2
- package/templates/esm-js/package.json +5 -5
- package/templates/esm-js/scripts/jsconfig.json +6 -6
- package/templates/esm-js/scripts/seed.js +3 -3
- package/templates/esm-js/web/jsconfig.json +6 -6
- package/templates/esm-js/web/package.json +4 -4
- package/templates/{js/.redwood → esm-ts/.cedar}/README.md +4 -4
- package/templates/esm-ts/.env.defaults +2 -2
- package/templates/esm-ts/.env.example +1 -1
- package/templates/esm-ts/.vscode/launch.json +3 -3
- package/templates/esm-ts/README.md +2 -2
- package/templates/esm-ts/api/package.json +3 -3
- package/templates/esm-ts/api/tsconfig.json +4 -4
- package/templates/esm-ts/gitignore.template +3 -2
- package/templates/esm-ts/package.json +5 -5
- package/templates/esm-ts/scripts/seed.ts +3 -3
- package/templates/esm-ts/scripts/tsconfig.json +6 -6
- package/templates/esm-ts/web/package.json +4 -4
- package/templates/esm-ts/web/tsconfig.json +6 -6
- package/templates/{ts/.redwood → js/.cedar}/README.md +4 -4
- package/templates/js/.env.defaults +2 -2
- package/templates/js/.env.example +1 -1
- package/templates/js/.vscode/launch.json +3 -3
- package/templates/js/README.md +2 -2
- package/templates/js/api/jsconfig.json +4 -4
- package/templates/js/api/package.json +4 -3
- package/templates/js/gitignore.template +3 -2
- package/templates/js/package.json +5 -4
- package/templates/js/scripts/jsconfig.json +6 -6
- package/templates/js/scripts/seed.js +3 -3
- package/templates/js/web/jsconfig.json +6 -6
- package/templates/js/web/package.json +5 -4
- package/templates/overlays/cjs/npm/package.json +20 -0
- package/templates/overlays/cjs/pnpm/package.json +19 -0
- package/templates/overlays/cjs/pnpm/pnpm-workspace.yaml +3 -0
- package/templates/overlays/cjs/yarn/package.json +21 -0
- package/templates/overlays/esm/npm/package.json +20 -0
- package/templates/overlays/esm/pnpm/package.json +19 -0
- package/templates/overlays/esm/pnpm/pnpm-workspace.yaml +3 -0
- package/templates/overlays/esm/yarn/package.json +21 -0
- package/templates/{esm-ts/.redwood → ts/.cedar}/README.md +4 -4
- package/templates/ts/.env.defaults +2 -2
- package/templates/ts/.env.example +1 -1
- package/templates/ts/.vscode/launch.json +3 -3
- package/templates/ts/README.md +2 -2
- package/templates/ts/api/package.json +4 -3
- package/templates/ts/api/tsconfig.json +4 -4
- package/templates/ts/gitignore.template +3 -2
- package/templates/ts/package.json +5 -4
- package/templates/ts/scripts/seed.ts +3 -3
- package/templates/ts/scripts/tsconfig.json +6 -6
- package/templates/ts/web/package.json +5 -4
- package/templates/ts/web/tsconfig.json +6 -6
- package/templates/esm-js/.yarn/install-state.gz +0 -0
- package/templates/esm-ts/.yarn/install-state.gz +0 -0
- package/templates/js/.yarnrc.yml +0 -15
- package/templates/ts/.yarnrc.yml +0 -15
- /package/templates/{esm-js → overlays/cjs/yarn}/.yarnrc.yml +0 -0
- /package/templates/{esm-ts → overlays/esm/yarn}/.yarnrc.yml +0 -0
package/templates/js/README.md
CHANGED
|
@@ -5,13 +5,13 @@ Welcome to your new [CedarJS](https://cedarjs.com) project!
|
|
|
5
5
|
Start by installing dependencies:
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
|
|
8
|
+
{{PM_INSTALL}}
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Then start the development server:
|
|
12
12
|
|
|
13
13
|
```
|
|
14
|
-
|
|
14
|
+
{{CEDAR_CLI}} dev
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Your browser should automatically open to [http://localhost:8910](http://localhost:8910) where you'll see the Welcome Page, which links out to many great resources.
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"skipLibCheck": false,
|
|
10
10
|
"rootDirs": [
|
|
11
11
|
"./src",
|
|
12
|
-
"../.
|
|
12
|
+
"../.cedar/types/mirror/api/src"
|
|
13
13
|
],
|
|
14
14
|
"paths": {
|
|
15
15
|
"src/*": [
|
|
16
16
|
"./src/*",
|
|
17
|
-
"../.
|
|
17
|
+
"../.cedar/types/mirror/api/src/*"
|
|
18
18
|
],
|
|
19
19
|
"types/*": [
|
|
20
20
|
"./types/*",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
},
|
|
36
36
|
"include": [
|
|
37
37
|
"src",
|
|
38
|
-
"../.
|
|
39
|
-
"../.
|
|
38
|
+
"../.cedar/types/includes/all-*",
|
|
39
|
+
"../.cedar/types/includes/api-*",
|
|
40
40
|
"../types"
|
|
41
41
|
]
|
|
42
42
|
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "api",
|
|
3
|
+
"type": "commonjs",
|
|
3
4
|
"version": "0.0.0",
|
|
4
5
|
"private": true,
|
|
5
6
|
"dependencies": {
|
|
6
|
-
"@cedarjs/api": "3.1.
|
|
7
|
-
"@cedarjs/graphql-server": "3.1.
|
|
8
|
-
"@prisma/adapter-better-sqlite3": "7.
|
|
7
|
+
"@cedarjs/api": "3.1.2-next.126",
|
|
8
|
+
"@cedarjs/graphql-server": "3.1.2-next.126",
|
|
9
|
+
"@prisma/adapter-better-sqlite3": "7.7.0",
|
|
9
10
|
"better-sqlite3": "12.8.0"
|
|
10
11
|
}
|
|
11
12
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": true,
|
|
3
|
+
"type": "commonjs",
|
|
3
4
|
"workspaces": [
|
|
4
5
|
"api",
|
|
5
6
|
"web"
|
|
6
7
|
],
|
|
7
8
|
"devDependencies": {
|
|
8
|
-
"@cedarjs/core": "3.1.
|
|
9
|
-
"@cedarjs/eslint-config": "3.1.
|
|
10
|
-
"@cedarjs/project-config": "3.1.
|
|
11
|
-
"@cedarjs/testing": "3.1.
|
|
9
|
+
"@cedarjs/core": "3.1.2-next.126",
|
|
10
|
+
"@cedarjs/eslint-config": "3.1.2-next.126",
|
|
11
|
+
"@cedarjs/project-config": "3.1.2-next.126",
|
|
12
|
+
"@cedarjs/testing": "3.1.2-next.126"
|
|
12
13
|
},
|
|
13
14
|
"engines": {
|
|
14
15
|
"node": "=24.x"
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
],
|
|
16
16
|
"$api/src/*": [
|
|
17
17
|
"../api/src/*",
|
|
18
|
-
"../.
|
|
18
|
+
"../.cedar/types/mirror/api/src/*"
|
|
19
19
|
],
|
|
20
20
|
"api/src/*": [
|
|
21
21
|
"../api/src/*",
|
|
22
|
-
"../.
|
|
22
|
+
"../.cedar/types/mirror/api/src/*"
|
|
23
23
|
],
|
|
24
24
|
"$web/*": [
|
|
25
25
|
"../web/*"
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
],
|
|
30
30
|
"$web/src/*": [
|
|
31
31
|
"../web/src/*",
|
|
32
|
-
"../.
|
|
32
|
+
"../.cedar/types/mirror/web/src/*"
|
|
33
33
|
],
|
|
34
34
|
"web/src/*": [
|
|
35
35
|
"../web/src/*",
|
|
36
|
-
"../.
|
|
36
|
+
"../.cedar/types/mirror/web/src/*"
|
|
37
37
|
],
|
|
38
38
|
"types/*": [
|
|
39
39
|
"../types/*",
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
},
|
|
49
49
|
"include": [
|
|
50
50
|
".",
|
|
51
|
-
"../.
|
|
52
|
-
"../.
|
|
51
|
+
"../.cedar/types/includes/all-*",
|
|
52
|
+
"../.cedar/types/includes/web-*",
|
|
53
53
|
"../types"
|
|
54
54
|
]
|
|
55
55
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// import { db } from 'api/src/lib/db.js'
|
|
2
2
|
|
|
3
|
-
// Manually apply seeds via the `
|
|
3
|
+
// Manually apply seeds via the `{{CEDAR_CLI}} prisma db seed` command.
|
|
4
4
|
//
|
|
5
|
-
// Seeds automatically run the first time you run the `
|
|
6
|
-
// command and every time you run the `
|
|
5
|
+
// Seeds automatically run the first time you run the `{{CEDAR_CLI}} prisma migrate dev`
|
|
6
|
+
// command and every time you run the `{{CEDAR_CLI}} prisma migrate reset` command.
|
|
7
7
|
//
|
|
8
8
|
// See https://cedarjs.com/docs/database-seeds for more info
|
|
9
9
|
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
"skipLibCheck": false,
|
|
10
10
|
"rootDirs": [
|
|
11
11
|
"./src",
|
|
12
|
-
"../.
|
|
12
|
+
"../.cedar/types/mirror/web/src",
|
|
13
13
|
"../api/src",
|
|
14
|
-
"../.
|
|
14
|
+
"../.cedar/types/mirror/api/src"
|
|
15
15
|
],
|
|
16
16
|
"paths": {
|
|
17
17
|
"src/*": [
|
|
18
18
|
"./src/*",
|
|
19
|
-
"../.
|
|
19
|
+
"../.cedar/types/mirror/web/src/*",
|
|
20
20
|
"../api/src/*",
|
|
21
|
-
"../.
|
|
21
|
+
"../.cedar/types/mirror/api/src/*"
|
|
22
22
|
],
|
|
23
23
|
"$api/*": [
|
|
24
24
|
"../api/*"
|
|
@@ -46,8 +46,8 @@
|
|
|
46
46
|
"src",
|
|
47
47
|
"config",
|
|
48
48
|
".storybook/**/*",
|
|
49
|
-
"../.
|
|
50
|
-
"../.
|
|
49
|
+
"../.cedar/types/includes/all-*",
|
|
50
|
+
"../.cedar/types/includes/web-*",
|
|
51
51
|
"../types",
|
|
52
52
|
"./types"
|
|
53
53
|
]
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web",
|
|
3
|
+
"type": "commonjs",
|
|
3
4
|
"version": "0.0.0",
|
|
4
5
|
"private": true,
|
|
5
6
|
"browserslist": {
|
|
@@ -11,14 +12,14 @@
|
|
|
11
12
|
]
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@cedarjs/forms": "3.1.
|
|
15
|
-
"@cedarjs/router": "3.1.
|
|
16
|
-
"@cedarjs/web": "3.1.
|
|
15
|
+
"@cedarjs/forms": "3.1.2-next.126",
|
|
16
|
+
"@cedarjs/router": "3.1.2-next.126",
|
|
17
|
+
"@cedarjs/web": "3.1.2-next.126",
|
|
17
18
|
"react": "18.3.1",
|
|
18
19
|
"react-dom": "18.3.1"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
|
-
"@cedarjs/vite": "3.1.
|
|
22
|
+
"@cedarjs/vite": "3.1.2-next.126",
|
|
22
23
|
"@types/react": "^18.2.55",
|
|
23
24
|
"@types/react-dom": "^18.2.19"
|
|
24
25
|
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"type": "commonjs",
|
|
4
|
+
"workspaces": [
|
|
5
|
+
"api",
|
|
6
|
+
"web"
|
|
7
|
+
],
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@cedarjs/core": "3.1.2-next.126",
|
|
10
|
+
"@cedarjs/eslint-config": "3.1.2-next.126",
|
|
11
|
+
"@cedarjs/project-config": "3.1.2-next.126",
|
|
12
|
+
"@cedarjs/testing": "3.1.2-next.126"
|
|
13
|
+
},
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": "=24.x"
|
|
16
|
+
},
|
|
17
|
+
"overrides": {
|
|
18
|
+
"react-is": "19.2.3"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"type": "commonjs",
|
|
4
|
+
"devDependencies": {
|
|
5
|
+
"@cedarjs/core": "3.1.2-next.126",
|
|
6
|
+
"@cedarjs/eslint-config": "3.1.2-next.126",
|
|
7
|
+
"@cedarjs/project-config": "3.1.2-next.126",
|
|
8
|
+
"@cedarjs/testing": "3.1.2-next.126"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": "=24.x"
|
|
12
|
+
},
|
|
13
|
+
"packageManager": "pnpm@10.33.0",
|
|
14
|
+
"pnpm": {
|
|
15
|
+
"overrides": {
|
|
16
|
+
"react-is": "19.2.3"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"type": "commonjs",
|
|
4
|
+
"workspaces": [
|
|
5
|
+
"api",
|
|
6
|
+
"web"
|
|
7
|
+
],
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@cedarjs/core": "3.1.2-next.126",
|
|
10
|
+
"@cedarjs/eslint-config": "3.1.2-next.126",
|
|
11
|
+
"@cedarjs/project-config": "3.1.2-next.126",
|
|
12
|
+
"@cedarjs/testing": "3.1.2-next.126"
|
|
13
|
+
},
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": "=24.x"
|
|
16
|
+
},
|
|
17
|
+
"packageManager": "yarn@4.13.0",
|
|
18
|
+
"resolutions": {
|
|
19
|
+
"react-is": "19.2.3"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"type": "module",
|
|
4
|
+
"workspaces": [
|
|
5
|
+
"api",
|
|
6
|
+
"web"
|
|
7
|
+
],
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@cedarjs/core": "3.1.2-next.126",
|
|
10
|
+
"@cedarjs/eslint-config": "3.1.2-next.126",
|
|
11
|
+
"@cedarjs/project-config": "3.1.2-next.126",
|
|
12
|
+
"@cedarjs/testing": "3.1.2-next.126"
|
|
13
|
+
},
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": "=24.x"
|
|
16
|
+
},
|
|
17
|
+
"overrides": {
|
|
18
|
+
"react-is": "19.2.3"
|
|
19
|
+
}
|
|
20
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"type": "module",
|
|
4
|
+
"devDependencies": {
|
|
5
|
+
"@cedarjs/core": "3.1.2-next.126",
|
|
6
|
+
"@cedarjs/eslint-config": "3.1.2-next.126",
|
|
7
|
+
"@cedarjs/project-config": "3.1.2-next.126",
|
|
8
|
+
"@cedarjs/testing": "3.1.2-next.126"
|
|
9
|
+
},
|
|
10
|
+
"engines": {
|
|
11
|
+
"node": "=24.x"
|
|
12
|
+
},
|
|
13
|
+
"packageManager": "pnpm@10.33.0",
|
|
14
|
+
"pnpm": {
|
|
15
|
+
"overrides": {
|
|
16
|
+
"react-is": "19.2.3"
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"private": true,
|
|
3
|
+
"type": "module",
|
|
4
|
+
"workspaces": [
|
|
5
|
+
"api",
|
|
6
|
+
"web"
|
|
7
|
+
],
|
|
8
|
+
"devDependencies": {
|
|
9
|
+
"@cedarjs/core": "3.1.2-next.126",
|
|
10
|
+
"@cedarjs/eslint-config": "3.1.2-next.126",
|
|
11
|
+
"@cedarjs/project-config": "3.1.2-next.126",
|
|
12
|
+
"@cedarjs/testing": "3.1.2-next.126"
|
|
13
|
+
},
|
|
14
|
+
"engines": {
|
|
15
|
+
"node": "=24.x"
|
|
16
|
+
},
|
|
17
|
+
"packageManager": "yarn@4.13.0",
|
|
18
|
+
"resolutions": {
|
|
19
|
+
"react-is": "19.2.3"
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
# .
|
|
1
|
+
# .cedar
|
|
2
2
|
|
|
3
3
|
## What is this directory?
|
|
4
4
|
|
|
5
|
-
Cedar uses this `.
|
|
5
|
+
Cedar uses this `.cedar` directory to store transitory data that aids in the smooth and convenient operation of your Cedar project.
|
|
6
6
|
|
|
7
7
|
## Do I need to do anything with this directory?
|
|
8
8
|
|
|
@@ -31,9 +31,9 @@ You don't need to commit any other contents of this directory to your version co
|
|
|
31
31
|
| telemetry | Stores the recent telemetry that the Cedar CLI has generated. You may inspect these files to see everything Cedar is anonymously collecting. |
|
|
32
32
|
| types | Stores the results of type generation. |
|
|
33
33
|
| updateCheck | Stores a file which contains the results of checking for Cedar updates. |
|
|
34
|
-
| studio | Used to store data for `
|
|
34
|
+
| studio | Used to store data for `cedar studio` |
|
|
35
35
|
|
|
36
|
-
We try to keep this README up to date but you may, from time to time, find other files or directories in this `.
|
|
36
|
+
We try to keep this README up to date but you may, from time to time, find other files or directories in this `.cedar` directory that have not yet been documented here. This is likely nothing to worry about but feel free to let us know and we'll update this list.
|
|
37
37
|
|
|
38
38
|
### Telemetry
|
|
39
39
|
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
# schema.prisma defaults
|
|
7
7
|
DATABASE_URL=file:./db/dev.db
|
|
8
8
|
|
|
9
|
-
# location of the test database for api service scenarios (defaults to ./.
|
|
10
|
-
# TEST_DATABASE_URL=file:./.
|
|
9
|
+
# location of the test database for api service scenarios (defaults to ./.cedar/test.db if not set)
|
|
10
|
+
# TEST_DATABASE_URL=file:./.cedar/test.db
|
|
11
11
|
|
|
12
12
|
# disables Prisma CLI update notifier
|
|
13
13
|
PRISMA_HIDE_UPDATE_MESSAGE=true
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"version": "0.3.0",
|
|
3
3
|
"configurations": [
|
|
4
4
|
{
|
|
5
|
-
"command": "
|
|
5
|
+
"command": "{{CEDAR_CLI}} dev --apiDebugPort 18911", // you can add --fwd='--open=false' to prevent the browser from opening
|
|
6
6
|
"name": "Run Dev Server",
|
|
7
7
|
"request": "launch",
|
|
8
8
|
"type": "node-terminal"
|
|
@@ -30,13 +30,13 @@
|
|
|
30
30
|
"preLaunchTask": "WaitForDevServer",
|
|
31
31
|
},
|
|
32
32
|
{
|
|
33
|
-
"command": "
|
|
33
|
+
"command": "{{CEDAR_CLI}} test api",
|
|
34
34
|
"name": "Test api",
|
|
35
35
|
"request": "launch",
|
|
36
36
|
"type": "node-terminal"
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
"command": "
|
|
39
|
+
"command": "{{CEDAR_CLI}} test web",
|
|
40
40
|
"name": "Test web",
|
|
41
41
|
"request": "launch",
|
|
42
42
|
"type": "node-terminal"
|
package/templates/ts/README.md
CHANGED
|
@@ -5,13 +5,13 @@ Welcome to your new [CedarJS](https://cedarjs.com) project!
|
|
|
5
5
|
Start by installing dependencies:
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
|
|
8
|
+
{{PM_INSTALL}}
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
Then start the development server:
|
|
12
12
|
|
|
13
13
|
```
|
|
14
|
-
|
|
14
|
+
{{CEDAR_CLI}} dev
|
|
15
15
|
```
|
|
16
16
|
|
|
17
17
|
Your browser should automatically open to [http://localhost:8910](http://localhost:8910) where you'll see the Welcome Page, which links out to many great resources.
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "api",
|
|
3
|
+
"type": "commonjs",
|
|
3
4
|
"version": "0.0.0",
|
|
4
5
|
"private": true,
|
|
5
6
|
"dependencies": {
|
|
6
|
-
"@cedarjs/api": "3.1.
|
|
7
|
-
"@cedarjs/graphql-server": "3.1.
|
|
8
|
-
"@prisma/adapter-better-sqlite3": "7.
|
|
7
|
+
"@cedarjs/api": "3.1.2-next.126",
|
|
8
|
+
"@cedarjs/graphql-server": "3.1.2-next.126",
|
|
9
|
+
"@prisma/adapter-better-sqlite3": "7.7.0",
|
|
9
10
|
"better-sqlite3": "12.8.0"
|
|
10
11
|
}
|
|
11
12
|
}
|
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
"moduleResolution": "node16",
|
|
9
9
|
"allowImportingTsExtensions": true,
|
|
10
10
|
"skipLibCheck": false,
|
|
11
|
-
"rootDirs": ["./src", "../.
|
|
11
|
+
"rootDirs": ["./src", "../.cedar/types/mirror/api/src"],
|
|
12
12
|
"paths": {
|
|
13
|
-
"src/*": ["./src/*", "../.
|
|
13
|
+
"src/*": ["./src/*", "../.cedar/types/mirror/api/src/*"],
|
|
14
14
|
"types/*": ["./types/*", "../types/*"],
|
|
15
15
|
"@cedarjs/testing": ["../node_modules/@cedarjs/testing/api"]
|
|
16
16
|
},
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
},
|
|
21
21
|
"include": [
|
|
22
22
|
"src",
|
|
23
|
-
"../.
|
|
24
|
-
"../.
|
|
23
|
+
"../.cedar/types/includes/all-*",
|
|
24
|
+
"../.cedar/types/includes/api-*",
|
|
25
25
|
"../types"
|
|
26
26
|
]
|
|
27
27
|
}
|
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"private": true,
|
|
3
|
+
"type": "commonjs",
|
|
3
4
|
"workspaces": [
|
|
4
5
|
"api",
|
|
5
6
|
"web"
|
|
6
7
|
],
|
|
7
8
|
"devDependencies": {
|
|
8
|
-
"@cedarjs/core": "3.1.
|
|
9
|
-
"@cedarjs/eslint-config": "3.1.
|
|
10
|
-
"@cedarjs/project-config": "3.1.
|
|
11
|
-
"@cedarjs/testing": "3.1.
|
|
9
|
+
"@cedarjs/core": "3.1.2-next.126",
|
|
10
|
+
"@cedarjs/eslint-config": "3.1.2-next.126",
|
|
11
|
+
"@cedarjs/project-config": "3.1.2-next.126",
|
|
12
|
+
"@cedarjs/testing": "3.1.2-next.126"
|
|
12
13
|
},
|
|
13
14
|
"engines": {
|
|
14
15
|
"node": "=24.x"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// import { db } from 'api/src/lib/db.js'
|
|
2
2
|
|
|
3
|
-
// Manually apply seeds via the `
|
|
3
|
+
// Manually apply seeds via the `{{CEDAR_CLI}} prisma db seed` command.
|
|
4
4
|
//
|
|
5
|
-
// Seeds automatically run the first time you run the `
|
|
6
|
-
// command and every time you run the `
|
|
5
|
+
// Seeds automatically run the first time you run the `{{CEDAR_CLI}} prisma migrate dev`
|
|
6
|
+
// command and every time you run the `{{CEDAR_CLI}} prisma migrate reset` command.
|
|
7
7
|
//
|
|
8
8
|
// See https://cedarjs.com/docs/database-seeds for more info
|
|
9
9
|
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
"paths": {
|
|
11
11
|
"$api/*": ["../api/*"],
|
|
12
12
|
"api/*": ["../api/*"],
|
|
13
|
-
"$api/src/*": ["../api/src/*", "../.
|
|
14
|
-
"api/src/*": ["../api/src/*", "../.
|
|
13
|
+
"$api/src/*": ["../api/src/*", "../.cedar/types/mirror/api/src/*"],
|
|
14
|
+
"api/src/*": ["../api/src/*", "../.cedar/types/mirror/api/src/*"],
|
|
15
15
|
"$web/*": ["../web/*"],
|
|
16
16
|
"web/*": ["../web/*"],
|
|
17
|
-
"$web/src/*": ["../web/src/*", "../.
|
|
18
|
-
"web/src/*": ["../web/src/*", "../.
|
|
17
|
+
"$web/src/*": ["../web/src/*", "../.cedar/types/mirror/web/src/*"],
|
|
18
|
+
"web/src/*": ["../web/src/*", "../.cedar/types/mirror/web/src/*"],
|
|
19
19
|
"types/*": ["../types/*", "../web/types/*", "../api/types/*"]
|
|
20
20
|
},
|
|
21
21
|
"typeRoots": ["../node_modules/@types"],
|
|
@@ -23,8 +23,8 @@
|
|
|
23
23
|
},
|
|
24
24
|
"include": [
|
|
25
25
|
".",
|
|
26
|
-
"../.
|
|
27
|
-
"../.
|
|
26
|
+
"../.cedar/types/includes/all-*",
|
|
27
|
+
"../.cedar/types/includes/web-*",
|
|
28
28
|
"../types"
|
|
29
29
|
]
|
|
30
30
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web",
|
|
3
|
+
"type": "commonjs",
|
|
3
4
|
"version": "0.0.0",
|
|
4
5
|
"private": true,
|
|
5
6
|
"browserslist": {
|
|
@@ -11,14 +12,14 @@
|
|
|
11
12
|
]
|
|
12
13
|
},
|
|
13
14
|
"dependencies": {
|
|
14
|
-
"@cedarjs/forms": "3.1.
|
|
15
|
-
"@cedarjs/router": "3.1.
|
|
16
|
-
"@cedarjs/web": "3.1.
|
|
15
|
+
"@cedarjs/forms": "3.1.2-next.126",
|
|
16
|
+
"@cedarjs/router": "3.1.2-next.126",
|
|
17
|
+
"@cedarjs/web": "3.1.2-next.126",
|
|
17
18
|
"react": "18.3.1",
|
|
18
19
|
"react-dom": "18.3.1"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
|
-
"@cedarjs/vite": "3.1.
|
|
22
|
+
"@cedarjs/vite": "3.1.2-next.126",
|
|
22
23
|
"@types/react": "^18.2.55",
|
|
23
24
|
"@types/react-dom": "^18.2.19"
|
|
24
25
|
}
|
|
@@ -10,16 +10,16 @@
|
|
|
10
10
|
"skipLibCheck": false,
|
|
11
11
|
"rootDirs": [
|
|
12
12
|
"./src",
|
|
13
|
-
"../.
|
|
13
|
+
"../.cedar/types/mirror/web/src",
|
|
14
14
|
"../api/src",
|
|
15
|
-
"../.
|
|
15
|
+
"../.cedar/types/mirror/api/src"
|
|
16
16
|
],
|
|
17
17
|
"paths": {
|
|
18
18
|
"src/*": [
|
|
19
19
|
"./src/*",
|
|
20
|
-
"../.
|
|
20
|
+
"../.cedar/types/mirror/web/src/*",
|
|
21
21
|
"../api/src/*",
|
|
22
|
-
"../.
|
|
22
|
+
"../.cedar/types/mirror/api/src/*"
|
|
23
23
|
],
|
|
24
24
|
"$api/*": ["../api/*"],
|
|
25
25
|
"types/*": ["./types/*", "../types/*"],
|
|
@@ -37,8 +37,8 @@
|
|
|
37
37
|
"src",
|
|
38
38
|
"config",
|
|
39
39
|
".storybook/**/*",
|
|
40
|
-
"../.
|
|
41
|
-
"../.
|
|
40
|
+
"../.cedar/types/includes/all-*",
|
|
41
|
+
"../.cedar/types/includes/web-*",
|
|
42
42
|
"../types",
|
|
43
43
|
"./types"
|
|
44
44
|
]
|
|
Binary file
|
|
Binary file
|
package/templates/js/.yarnrc.yml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Yarn's manifest file. You can configure yarn here.
|
|
2
|
-
# See https://yarnpkg.com/configuration/yarnrc.
|
|
3
|
-
|
|
4
|
-
# For `node_modules` (see `nodeLinker` below), this is almost always the preferred option.
|
|
5
|
-
compressionLevel: 0
|
|
6
|
-
|
|
7
|
-
enableGlobalCache: true
|
|
8
|
-
|
|
9
|
-
# Lets yarn use hardlinks inside `node_modules` to dedupe packages.
|
|
10
|
-
# For a more pnpm-like experience, consider `hardlinks-global` where hardlinks point to a global store.
|
|
11
|
-
nmMode: hardlinks-local
|
|
12
|
-
|
|
13
|
-
# How to install Node packages.
|
|
14
|
-
# Heads up: right now, Cedar expects this to be `node-modules`.
|
|
15
|
-
nodeLinker: node-modules
|
package/templates/ts/.yarnrc.yml
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
# Yarn's manifest file. You can configure yarn here.
|
|
2
|
-
# See https://yarnpkg.com/configuration/yarnrc.
|
|
3
|
-
|
|
4
|
-
# For `node_modules` (see `nodeLinker` below), this is almost always the preferred option.
|
|
5
|
-
compressionLevel: 0
|
|
6
|
-
|
|
7
|
-
enableGlobalCache: true
|
|
8
|
-
|
|
9
|
-
# Lets yarn use hardlinks inside `node_modules` to dedupe packages.
|
|
10
|
-
# For a more pnpm-like experience, consider `hardlinks-global` where hardlinks point to a global store.
|
|
11
|
-
nmMode: hardlinks-local
|
|
12
|
-
|
|
13
|
-
# How to install Node packages.
|
|
14
|
-
# Heads up: right now, Cedar expects this to be `node-modules`.
|
|
15
|
-
nodeLinker: node-modules
|