create-cedar-app 5.0.7-next.338 → 5.0.7
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/README.md +1 -1
- package/database-overlays/neon-postgres/api/package.json +2 -2
- package/database-overlays/pglite/api/package.json +2 -2
- package/dist/create-cedar-app.js +420 -395
- package/package.json +7 -7
- package/templates/esm-js/api/package.json +3 -9
- package/templates/esm-js/api/src/lib/logger.js +3 -3
- package/templates/esm-js/cedar.toml +0 -2
- package/templates/esm-js/package.json +7 -17
- package/templates/esm-js/vitest.config.mjs +1 -1
- package/templates/esm-js/web/package.json +5 -9
- package/templates/esm-js/web/src/App.jsx +5 -5
- package/templates/esm-js/web/vite.config.js +6 -0
- package/templates/esm-js/yarn.lock +19559 -0
- package/templates/esm-ts/api/package.json +3 -9
- package/templates/esm-ts/api/src/lib/logger.ts +3 -3
- package/templates/esm-ts/api/tsconfig.json +2 -2
- package/templates/esm-ts/cedar.toml +0 -2
- package/templates/esm-ts/package.json +7 -17
- package/templates/esm-ts/vitest.config.ts +1 -1
- package/templates/esm-ts/web/package.json +5 -9
- package/templates/esm-ts/web/src/App.tsx +5 -5
- package/templates/esm-ts/web/vite.config.ts +6 -0
- package/templates/esm-ts/yarn.lock +19559 -0
- package/templates/js/api/jsconfig.json +2 -2
- package/templates/js/api/package.json +3 -3
- package/templates/js/api/src/lib/logger.js +3 -3
- package/templates/js/cedar.toml +0 -2
- package/templates/js/package.json +5 -15
- package/templates/js/web/package.json +4 -4
- package/templates/js/web/src/App.jsx +5 -5
- package/templates/js/web/vite.config.js +6 -0
- package/templates/js/yarn.lock +19262 -0
- package/templates/overlays/cjs/npm/package-lock.json +29266 -0
- package/templates/overlays/cjs/npm/package.json +5 -15
- package/templates/overlays/cjs/pnpm/package.json +5 -15
- package/templates/overlays/cjs/pnpm/pnpm-lock.yaml +18580 -0
- package/templates/overlays/cjs/pnpm/pnpm-workspace.yaml +0 -2
- package/templates/overlays/cjs/yarn/package.json +5 -15
- package/templates/overlays/cjs/yarn/yarn.lock +19276 -0
- package/templates/overlays/esm/npm/package-lock.json +29266 -0
- package/templates/overlays/esm/npm/package.json +7 -19
- package/templates/overlays/esm/pnpm/package.json +6 -17
- package/templates/overlays/esm/pnpm/pnpm-lock.yaml +18580 -0
- package/templates/overlays/esm/pnpm/pnpm-workspace.yaml +0 -3
- package/templates/overlays/esm/yarn/package.json +7 -17
- package/templates/overlays/esm/yarn/yarn.lock +19587 -0
- package/templates/ts/api/package.json +3 -3
- package/templates/ts/api/src/lib/logger.ts +3 -3
- package/templates/ts/api/tsconfig.json +2 -2
- package/templates/ts/cedar.toml +0 -2
- package/templates/ts/package.json +5 -15
- package/templates/ts/web/package.json +4 -4
- package/templates/ts/web/src/App.tsx +5 -5
- package/templates/ts/web/vite.config.ts +6 -0
- package/templates/ts/yarn.lock +19262 -0
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
"version": "0.0.0",
|
|
5
5
|
"private": true,
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@cedarjs/api": "5.0.7
|
|
8
|
-
"@cedarjs/graphql-server": "5.0.7
|
|
7
|
+
"@cedarjs/api": "5.0.7",
|
|
8
|
+
"@cedarjs/graphql-server": "5.0.7",
|
|
9
9
|
"@prisma/adapter-better-sqlite3": "7.8.0",
|
|
10
10
|
"@prisma/client": "7.8.0",
|
|
11
|
-
"better-sqlite3": "12.
|
|
11
|
+
"better-sqlite3": "12.9.0"
|
|
12
12
|
}
|
|
13
13
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { createLogger } from '@cedarjs/api/logger'
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Creates a logger with
|
|
4
|
+
* Creates a logger with RedwoodLoggerOptions
|
|
5
5
|
*
|
|
6
6
|
* These extend and override default LoggerOptions,
|
|
7
7
|
* can define a destination like a file or other supported pino log transport stream,
|
|
8
8
|
* and sets whether or not to show the logger configuration settings (defaults to false)
|
|
9
9
|
*
|
|
10
|
-
* @param
|
|
10
|
+
* @param RedwoodLoggerOptions
|
|
11
11
|
*
|
|
12
|
-
*
|
|
12
|
+
* RedwoodLoggerOptions have
|
|
13
13
|
* @param {options} LoggerOptions - defines how to log, such as redaction and format
|
|
14
14
|
* @param {string | DestinationStream} destination - defines where to log, such as a transport stream or file
|
|
15
15
|
* @param {boolean} showConfig - whether to display logger configuration on initialization
|
package/templates/js/cedar.toml
CHANGED
|
@@ -5,24 +5,14 @@
|
|
|
5
5
|
"api",
|
|
6
6
|
"web"
|
|
7
7
|
],
|
|
8
|
-
"scripts": {
|
|
9
|
-
"build": "cedar build",
|
|
10
|
-
"dev": "cedar dev",
|
|
11
|
-
"start": "cedarjs-server",
|
|
12
|
-
"start:api": "cedarjs-server api",
|
|
13
|
-
"start:web": "cedarjs-server web"
|
|
14
|
-
},
|
|
15
|
-
"dependencies": {
|
|
16
|
-
"@cedarjs/api-server": "5.0.7-next.338"
|
|
17
|
-
},
|
|
18
8
|
"devDependencies": {
|
|
19
|
-
"@cedarjs/core": "5.0.7
|
|
20
|
-
"@cedarjs/eslint-config": "5.0.7
|
|
21
|
-
"@cedarjs/project-config": "5.0.7
|
|
22
|
-
"@cedarjs/testing": "5.0.7
|
|
9
|
+
"@cedarjs/core": "5.0.7",
|
|
10
|
+
"@cedarjs/eslint-config": "5.0.7",
|
|
11
|
+
"@cedarjs/project-config": "5.0.7",
|
|
12
|
+
"@cedarjs/testing": "5.0.7"
|
|
23
13
|
},
|
|
24
14
|
"engines": {
|
|
25
|
-
"node": "24.x"
|
|
15
|
+
"node": "=24.x"
|
|
26
16
|
},
|
|
27
17
|
"packageManager": "yarn@4.14.1"
|
|
28
18
|
}
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
]
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@cedarjs/forms": "5.0.7
|
|
16
|
-
"@cedarjs/router": "5.0.7
|
|
17
|
-
"@cedarjs/web": "5.0.7
|
|
15
|
+
"@cedarjs/forms": "5.0.7",
|
|
16
|
+
"@cedarjs/router": "5.0.7",
|
|
17
|
+
"@cedarjs/web": "5.0.7",
|
|
18
18
|
"react": "18.3.1",
|
|
19
19
|
"react-dom": "18.3.1"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@cedarjs/vite": "5.0.7
|
|
22
|
+
"@cedarjs/vite": "5.0.7",
|
|
23
23
|
"@types/react": "^18.2.55",
|
|
24
24
|
"@types/react-dom": "^18.2.19"
|
|
25
25
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { FatalErrorBoundary,
|
|
2
|
-
import {
|
|
1
|
+
import { FatalErrorBoundary, RedwoodProvider } from '@cedarjs/web'
|
|
2
|
+
import { RedwoodApolloProvider } from '@cedarjs/web/apollo'
|
|
3
3
|
|
|
4
4
|
import FatalErrorPage from 'src/pages/FatalErrorPage'
|
|
5
5
|
|
|
@@ -7,9 +7,9 @@ import './index.css'
|
|
|
7
7
|
|
|
8
8
|
const App = ({ children }) => (
|
|
9
9
|
<FatalErrorBoundary page={FatalErrorPage}>
|
|
10
|
-
<
|
|
11
|
-
<
|
|
12
|
-
</
|
|
10
|
+
<RedwoodProvider titleTemplate="%PageTitle | %AppTitle">
|
|
11
|
+
<RedwoodApolloProvider>{children}</RedwoodApolloProvider>
|
|
12
|
+
</RedwoodProvider>
|
|
13
13
|
</FatalErrorBoundary>
|
|
14
14
|
)
|
|
15
15
|
|
|
@@ -1,7 +1,13 @@
|
|
|
1
|
+
import dns from 'dns'
|
|
2
|
+
|
|
1
3
|
import { defineConfig } from 'vite'
|
|
2
4
|
|
|
3
5
|
import { cedar } from '@cedarjs/vite'
|
|
4
6
|
|
|
7
|
+
// So that Vite will load on localhost instead of `127.0.0.1`.
|
|
8
|
+
// See: https://vitejs.dev/config/server-options.html#server-host.
|
|
9
|
+
dns.setDefaultResultOrder('verbatim')
|
|
10
|
+
|
|
5
11
|
export default defineConfig({
|
|
6
12
|
plugins: [cedar()],
|
|
7
13
|
})
|