create-cedar-app 7.0.0 → 7.0.1-next.305
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/api/package.json +3 -3
- package/database-overlays/pglite/api/package.json +3 -3
- package/dist/create-cedar-app.js +366 -368
- package/package.json +5 -7
- package/templates/js/api/jsconfig.json +2 -2
- package/templates/js/api/package.json +12 -6
- package/templates/js/api/src/directives/requireAuth/requireAuth.js +1 -1
- package/templates/js/api/src/directives/skipAuth/skipAuth.js +1 -1
- package/templates/js/api/src/lib/auth.js +2 -2
- package/templates/js/api/src/lib/db.js +3 -1
- package/templates/js/package.json +12 -7
- package/templates/js/scripts/jsconfig.json +1 -2
- package/templates/js/web/jsconfig.json +1 -2
- package/templates/js/web/package.json +13 -9
- package/templates/js/web/src/pages/FatalErrorPage/FatalErrorPage.jsx +0 -1
- package/templates/js/web/src/pages/NotFoundPage/NotFoundPage.jsx +0 -1
- package/templates/js/web/vite.config.js +11 -3
- package/templates/overlays/{esm/npm → npm}/package.json +8 -8
- package/templates/overlays/{esm/pnpm → pnpm}/package.json +7 -7
- package/templates/overlays/{esm/pnpm → pnpm}/pnpm-workspace.yaml +1 -1
- package/templates/overlays/{esm/yarn → yarn}/package.json +8 -8
- package/templates/ts/api/package.json +12 -6
- package/templates/ts/api/src/directives/requireAuth/requireAuth.ts +1 -1
- package/templates/ts/api/src/directives/skipAuth/skipAuth.ts +1 -1
- package/templates/ts/api/src/lib/auth.ts +2 -2
- package/templates/ts/api/src/lib/db.ts +3 -1
- package/templates/ts/api/tsconfig.json +1 -0
- package/templates/ts/eslint.config.js +11 -0
- package/templates/ts/package.json +12 -7
- package/templates/ts/scripts/tsconfig.json +0 -1
- package/templates/ts/web/package.json +13 -9
- package/templates/ts/web/vite.config.ts +11 -3
- package/templates/esm-js/.cedar/README.md +0 -44
- package/templates/esm-js/.editorconfig +0 -10
- package/templates/esm-js/.env +0 -15
- package/templates/esm-js/.env.defaults +0 -19
- package/templates/esm-js/.env.example +0 -4
- package/templates/esm-js/.vscode/extensions.json +0 -14
- package/templates/esm-js/.vscode/launch.json +0 -56
- package/templates/esm-js/.vscode/settings.json +0 -11
- package/templates/esm-js/.vscode/tasks.json +0 -29
- package/templates/esm-js/README.md +0 -17
- package/templates/esm-js/api/db/schema.prisma +0 -29
- package/templates/esm-js/api/jsconfig.json +0 -41
- package/templates/esm-js/api/package.json +0 -19
- package/templates/esm-js/api/prisma.config.cjs +0 -12
- package/templates/esm-js/api/src/directives/requireAuth/requireAuth.js +0 -22
- package/templates/esm-js/api/src/directives/requireAuth/requireAuth.test.js +0 -18
- package/templates/esm-js/api/src/directives/skipAuth/skipAuth.js +0 -16
- package/templates/esm-js/api/src/directives/skipAuth/skipAuth.test.js +0 -10
- package/templates/esm-js/api/src/functions/graphql.js +0 -19
- package/templates/esm-js/api/src/graphql/.keep +0 -0
- package/templates/esm-js/api/src/lib/auth.js +0 -32
- package/templates/esm-js/api/src/lib/db.js +0 -46
- package/templates/esm-js/api/src/lib/logger.js +0 -17
- package/templates/esm-js/api/src/services/.keep +0 -0
- package/templates/esm-js/cedar.toml +0 -26
- package/templates/esm-js/gitignore.template +0 -27
- package/templates/esm-js/graphql.config.cjs +0 -11
- package/templates/esm-js/package.json +0 -33
- package/templates/esm-js/prettier.config.cjs +0 -18
- package/templates/esm-js/scripts/.keep +0 -0
- package/templates/esm-js/scripts/jsconfig.json +0 -60
- package/templates/esm-js/scripts/seed.js +0 -27
- package/templates/esm-js/web/index.html +0 -15
- package/templates/esm-js/web/jsconfig.json +0 -53
- package/templates/esm-js/web/package.json +0 -30
- package/templates/esm-js/web/public/README.md +0 -43
- package/templates/esm-js/web/public/favicon.png +0 -0
- package/templates/esm-js/web/public/robots.txt +0 -2
- package/templates/esm-js/web/src/App.jsx +0 -16
- package/templates/esm-js/web/src/Routes.jsx +0 -20
- package/templates/esm-js/web/src/components/.keep +0 -0
- package/templates/esm-js/web/src/entry.client.jsx +0 -35
- package/templates/esm-js/web/src/index.css +0 -0
- package/templates/esm-js/web/src/layouts/.keep +0 -0
- package/templates/esm-js/web/src/pages/FatalErrorPage/FatalErrorPage.jsx +0 -58
- package/templates/esm-js/web/src/pages/NotFoundPage/NotFoundPage.jsx +0 -45
- package/templates/esm-js/web/vite.config.js +0 -15
- package/templates/esm-ts/.cedar/README.md +0 -44
- package/templates/esm-ts/.editorconfig +0 -10
- package/templates/esm-ts/.env +0 -15
- package/templates/esm-ts/.env.defaults +0 -19
- package/templates/esm-ts/.env.example +0 -4
- package/templates/esm-ts/.vscode/extensions.json +0 -14
- package/templates/esm-ts/.vscode/launch.json +0 -56
- package/templates/esm-ts/.vscode/settings.json +0 -11
- package/templates/esm-ts/.vscode/tasks.json +0 -29
- package/templates/esm-ts/README.md +0 -17
- package/templates/esm-ts/api/db/schema.prisma +0 -29
- package/templates/esm-ts/api/package.json +0 -19
- package/templates/esm-ts/api/prisma.config.cjs +0 -12
- package/templates/esm-ts/api/src/directives/requireAuth/requireAuth.test.ts +0 -18
- package/templates/esm-ts/api/src/directives/requireAuth/requireAuth.ts +0 -25
- package/templates/esm-ts/api/src/directives/skipAuth/skipAuth.test.ts +0 -10
- package/templates/esm-ts/api/src/directives/skipAuth/skipAuth.ts +0 -16
- package/templates/esm-ts/api/src/functions/graphql.ts +0 -19
- package/templates/esm-ts/api/src/graphql/.keep +0 -0
- package/templates/esm-ts/api/src/lib/auth.ts +0 -32
- package/templates/esm-ts/api/src/lib/db.ts +0 -46
- package/templates/esm-ts/api/src/lib/logger.ts +0 -17
- package/templates/esm-ts/api/src/services/.keep +0 -0
- package/templates/esm-ts/api/tsconfig.json +0 -27
- package/templates/esm-ts/cedar.toml +0 -26
- package/templates/esm-ts/eslint.config.js +0 -3
- package/templates/esm-ts/gitignore.template +0 -27
- package/templates/esm-ts/graphql.config.cjs +0 -11
- package/templates/esm-ts/package.json +0 -33
- package/templates/esm-ts/prettier.config.cjs +0 -18
- package/templates/esm-ts/scripts/.keep +0 -0
- package/templates/esm-ts/scripts/seed.ts +0 -27
- package/templates/esm-ts/scripts/tsconfig.json +0 -35
- package/templates/esm-ts/web/index.html +0 -15
- package/templates/esm-ts/web/package.json +0 -30
- package/templates/esm-ts/web/public/README.md +0 -43
- package/templates/esm-ts/web/public/favicon.png +0 -0
- package/templates/esm-ts/web/public/robots.txt +0 -2
- package/templates/esm-ts/web/src/App.tsx +0 -22
- package/templates/esm-ts/web/src/Routes.tsx +0 -20
- package/templates/esm-ts/web/src/components/.keep +0 -0
- package/templates/esm-ts/web/src/entry.client.tsx +0 -35
- package/templates/esm-ts/web/src/index.css +0 -0
- package/templates/esm-ts/web/src/layouts/.keep +0 -0
- package/templates/esm-ts/web/src/pages/FatalErrorPage/FatalErrorPage.tsx +0 -57
- package/templates/esm-ts/web/src/pages/NotFoundPage/NotFoundPage.tsx +0 -44
- package/templates/esm-ts/web/tsconfig.json +0 -45
- package/templates/esm-ts/web/vite.config.ts +0 -15
- package/templates/js/api/jest.config.js +0 -8
- package/templates/js/eslint.config.mjs +0 -3
- package/templates/js/jest.config.js +0 -8
- package/templates/js/web/jest.config.js +0 -8
- package/templates/overlays/cjs/npm/package-lock.json +0 -28868
- package/templates/overlays/cjs/npm/package.json +0 -31
- package/templates/overlays/cjs/pnpm/package.json +0 -32
- package/templates/overlays/cjs/pnpm/pnpm-lock.yaml +0 -18204
- package/templates/overlays/cjs/pnpm/pnpm-workspace.yaml +0 -23
- package/templates/overlays/cjs/yarn/package.json +0 -73
- package/templates/overlays/cjs/yarn/yarn.lock +0 -18896
- package/templates/overlays/esm/npm/package-lock.json +0 -29256
- package/templates/overlays/esm/pnpm/pnpm-lock.yaml +0 -18683
- package/templates/overlays/esm/yarn/.yarnrc.yml +0 -17
- package/templates/overlays/esm/yarn/yarn.lock +0 -19181
- package/templates/ts/api/jest.config.js +0 -8
- package/templates/ts/eslint.config.mjs +0 -3
- package/templates/ts/jest.config.js +0 -8
- package/templates/ts/web/jest.config.js +0 -8
- /package/templates/{esm-js → js}/api/vitest.config.js +0 -0
- /package/templates/{esm-js → js}/eslint.config.js +0 -0
- /package/templates/{esm-js → js}/vitest.config.mjs +0 -0
- /package/templates/{esm-js → js}/web/vitest.setup.js +0 -0
- /package/templates/overlays/{cjs/yarn → yarn}/.yarnrc.yml +0 -0
- /package/templates/{esm-ts → ts}/api/vitest.config.ts +0 -0
- /package/templates/{esm-ts → ts}/vitest.config.ts +0 -0
- /package/templates/{esm-ts → ts}/web/vitest.setup.ts +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export default () => (
|
|
2
|
-
<main>
|
|
3
|
-
<style
|
|
4
|
-
dangerouslySetInnerHTML={{
|
|
5
|
-
__html: `
|
|
6
|
-
html, body {
|
|
7
|
-
margin: 0;
|
|
8
|
-
}
|
|
9
|
-
html * {
|
|
10
|
-
box-sizing: border-box;
|
|
11
|
-
}
|
|
12
|
-
main {
|
|
13
|
-
display: flex;
|
|
14
|
-
align-items: center;
|
|
15
|
-
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
|
|
16
|
-
text-align: center;
|
|
17
|
-
background-color: #E2E8F0;
|
|
18
|
-
height: 100vh;
|
|
19
|
-
}
|
|
20
|
-
section {
|
|
21
|
-
background-color: white;
|
|
22
|
-
border-radius: 0.25rem;
|
|
23
|
-
width: 32rem;
|
|
24
|
-
padding: 1rem;
|
|
25
|
-
margin: 0 auto;
|
|
26
|
-
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
|
|
27
|
-
}
|
|
28
|
-
h1 {
|
|
29
|
-
font-size: 2rem;
|
|
30
|
-
margin: 0;
|
|
31
|
-
font-weight: 500;
|
|
32
|
-
line-height: 1;
|
|
33
|
-
color: #2D3748;
|
|
34
|
-
}
|
|
35
|
-
`,
|
|
36
|
-
}}
|
|
37
|
-
/>
|
|
38
|
-
<section>
|
|
39
|
-
<h1>
|
|
40
|
-
<span>404 Page Not Found</span>
|
|
41
|
-
</h1>
|
|
42
|
-
</section>
|
|
43
|
-
</main>
|
|
44
|
-
)
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"noEmit": true,
|
|
4
|
-
"allowJs": true,
|
|
5
|
-
"esModuleInterop": true,
|
|
6
|
-
"target": "ES2022",
|
|
7
|
-
"module": "ESNext",
|
|
8
|
-
"moduleResolution": "Bundler",
|
|
9
|
-
"allowImportingTsExtensions": true,
|
|
10
|
-
"skipLibCheck": false,
|
|
11
|
-
"rootDirs": [
|
|
12
|
-
"./src",
|
|
13
|
-
"../.cedar/types/mirror/web/src",
|
|
14
|
-
"../api/src",
|
|
15
|
-
"../.cedar/types/mirror/api/src"
|
|
16
|
-
],
|
|
17
|
-
"paths": {
|
|
18
|
-
"src/*": [
|
|
19
|
-
"./src/*",
|
|
20
|
-
"../.cedar/types/mirror/web/src/*",
|
|
21
|
-
"../api/src/*",
|
|
22
|
-
"../.cedar/types/mirror/api/src/*"
|
|
23
|
-
],
|
|
24
|
-
"$api/*": ["../api/*"],
|
|
25
|
-
"types/*": ["./types/*", "../types/*"],
|
|
26
|
-
"@cedarjs/testing": ["../node_modules/@cedarjs/testing/web"]
|
|
27
|
-
},
|
|
28
|
-
"typeRoots": [
|
|
29
|
-
"../node_modules/@types",
|
|
30
|
-
"./node_modules/@types",
|
|
31
|
-
"../node_modules/@testing-library"
|
|
32
|
-
],
|
|
33
|
-
"types": ["jest", "jest-dom"],
|
|
34
|
-
"jsx": "preserve"
|
|
35
|
-
},
|
|
36
|
-
"include": [
|
|
37
|
-
"src",
|
|
38
|
-
"config",
|
|
39
|
-
".storybook/**/*",
|
|
40
|
-
"../.cedar/types/includes/all-*",
|
|
41
|
-
"../.cedar/types/includes/web-*",
|
|
42
|
-
"../types",
|
|
43
|
-
"./types"
|
|
44
|
-
]
|
|
45
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/// <reference types="vitest/config" />
|
|
2
|
-
|
|
3
|
-
import { defineConfig } from 'vite'
|
|
4
|
-
|
|
5
|
-
import { cedar } from '@cedarjs/vite'
|
|
6
|
-
|
|
7
|
-
export default defineConfig(({ mode }) => ({
|
|
8
|
-
plugins: [cedar({ mode })],
|
|
9
|
-
test: {
|
|
10
|
-
environment: 'jsdom',
|
|
11
|
-
setupFiles: ['./vitest.setup.ts'],
|
|
12
|
-
// Enables global test APIs like describe, it, expect
|
|
13
|
-
globals: true,
|
|
14
|
-
},
|
|
15
|
-
}))
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// This the Cedar root jest config
|
|
2
|
-
// Each side, e.g. ./web/ and ./api/ has specific config that references this root
|
|
3
|
-
// More info at https://cedarjs.com/docs/project-configuration-dev-test-build
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
rootDir: '.',
|
|
7
|
-
projects: ['<rootDir>/{*,!(node_modules)/**/}/jest.config.js'],
|
|
8
|
-
}
|