@c15t/cli 1.5.0 → 1.6.0
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 +97 -74
- package/dist/commands/generate/index.d.ts +6 -0
- package/dist/commands/generate/index.d.ts.map +1 -0
- package/dist/{onboarding/storage-modes → commands/generate/options}/c15t-mode.d.ts +5 -10
- package/dist/commands/generate/options/c15t-mode.d.ts.map +1 -0
- package/dist/{onboarding/storage-modes → commands/generate/options}/custom-mode.d.ts +5 -7
- package/dist/commands/generate/options/custom-mode.d.ts.map +1 -0
- package/dist/{onboarding/storage-modes → commands/generate/options}/offline-mode.d.ts +5 -7
- package/dist/commands/generate/options/offline-mode.d.ts.map +1 -0
- package/dist/commands/generate/options/self-hosted-mode.d.ts +19 -0
- package/dist/commands/generate/options/self-hosted-mode.d.ts.map +1 -0
- package/dist/commands/generate/options/types.d.ts +12 -0
- package/dist/commands/generate/options/types.d.ts.map +1 -0
- package/dist/{onboarding → commands/generate/options/utils}/dependencies.d.ts +12 -0
- package/dist/commands/generate/options/utils/dependencies.d.ts.map +1 -0
- package/dist/{onboarding → commands/generate/options/utils}/generate-files.d.ts +4 -8
- package/dist/commands/generate/options/utils/generate-files.d.ts.map +1 -0
- package/dist/commands/generate/options/utils/shared-frontend.d.ts +13 -0
- package/dist/commands/generate/options/utils/shared-frontend.d.ts.map +1 -0
- package/dist/commands/generate/templates/backend.d.ts.map +1 -0
- package/dist/{onboarding → commands/generate}/templates/config.d.ts +1 -1
- package/dist/commands/generate/templates/config.d.ts.map +1 -0
- package/dist/{onboarding → commands/generate}/templates/env.d.ts +1 -1
- package/dist/commands/generate/templates/env.d.ts.map +1 -0
- package/dist/{onboarding → commands/generate}/templates/index.d.ts +1 -1
- package/dist/commands/generate/templates/index.d.ts.map +1 -0
- package/dist/{onboarding → commands/generate}/templates/layout.d.ts +1 -1
- package/dist/commands/generate/templates/layout.d.ts.map +1 -0
- package/dist/{onboarding → commands/generate}/templates/next/app/layout.d.ts +1 -1
- package/dist/commands/generate/templates/next/app/layout.d.ts.map +1 -0
- package/dist/{onboarding → commands/generate}/templates/next/index.d.ts +1 -1
- package/dist/commands/generate/templates/next/index.d.ts.map +1 -0
- package/dist/{onboarding → commands/generate}/templates/next/pages/layout.d.ts +1 -1
- package/dist/commands/generate/templates/next/pages/layout.d.ts.map +1 -0
- package/dist/commands/generate/templates/next-config.d.ts.map +1 -0
- package/dist/commands/generate/templates/shared/options.d.ts.map +1 -0
- package/dist/commands/self-host/index.d.ts +6 -0
- package/dist/commands/self-host/index.d.ts.map +1 -0
- package/dist/commands/self-host/migrate/ensure-backend-config.d.ts +7 -0
- package/dist/commands/self-host/migrate/ensure-backend-config.d.ts.map +1 -0
- package/dist/commands/self-host/migrate/ensure-backend-config.test.d.ts +2 -0
- package/dist/commands/self-host/migrate/ensure-backend-config.test.d.ts.map +1 -0
- package/dist/commands/self-host/migrate/index.d.ts +3 -0
- package/dist/commands/self-host/migrate/index.d.ts.map +1 -0
- package/dist/commands/self-host/migrate/index.test.d.ts +2 -0
- package/dist/commands/self-host/migrate/index.test.d.ts.map +1 -0
- package/dist/commands/self-host/migrate/migrator-result.d.ts +4 -0
- package/dist/commands/self-host/migrate/migrator-result.d.ts.map +1 -0
- package/dist/commands/self-host/migrate/migrator-result.test.d.ts +2 -0
- package/dist/commands/self-host/migrate/migrator-result.test.d.ts.map +1 -0
- package/dist/commands/self-host/migrate/orm-result.d.ts +4 -0
- package/dist/commands/self-host/migrate/orm-result.d.ts.map +1 -0
- package/dist/commands/self-host/migrate/orm-result.test.d.ts +2 -0
- package/dist/commands/self-host/migrate/orm-result.test.d.ts.map +1 -0
- package/dist/commands/self-host/migrate/read-config.d.ts +6 -0
- package/dist/commands/self-host/migrate/read-config.d.ts.map +1 -0
- package/dist/commands/self-host/migrate/read-config.test.d.ts +2 -0
- package/dist/commands/self-host/migrate/read-config.test.d.ts.map +1 -0
- package/dist/context/creator.d.ts.map +1 -1
- package/dist/context/framework-detection.d.ts +1 -1
- package/dist/context/framework-detection.d.ts.map +1 -1
- package/dist/context/types.d.ts +1 -0
- package/dist/context/types.d.ts.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +760 -940
- package/dist/utils/logger.d.ts.map +1 -1
- package/dist/utils/telemetry.d.ts +3 -0
- package/dist/utils/telemetry.d.ts.map +1 -1
- package/package.json +12 -5
- package/readme.json +70 -0
- package/dist/actions/get-config/config-extraction.d.ts +0 -37
- package/dist/actions/get-config/config-extraction.d.ts.map +0 -1
- package/dist/actions/get-config/config-validation.d.ts +0 -7
- package/dist/actions/get-config/config-validation.d.ts.map +0 -1
- package/dist/actions/get-config/constants.d.ts +0 -13
- package/dist/actions/get-config/constants.d.ts.map +0 -1
- package/dist/actions/get-config/directory-search.d.ts +0 -6
- package/dist/actions/get-config/directory-search.d.ts.map +0 -1
- package/dist/actions/get-config/jiti-options.d.ts +0 -9
- package/dist/actions/get-config/jiti-options.d.ts.map +0 -1
- package/dist/actions/get-config.d.ts +0 -13
- package/dist/actions/get-config.d.ts.map +0 -1
- package/dist/actions/load-config-and-onboard.d.ts +0 -9
- package/dist/actions/load-config-and-onboard.d.ts.map +0 -1
- package/dist/commands/generate/actions/handle-existing-file.d.ts +0 -7
- package/dist/commands/generate/actions/handle-existing-file.d.ts.map +0 -1
- package/dist/commands/generate/actions/handle-new-file.d.ts +0 -7
- package/dist/commands/generate/actions/handle-new-file.d.ts.map +0 -1
- package/dist/commands/generate/actions/perform-write-action.d.ts +0 -6
- package/dist/commands/generate/actions/perform-write-action.d.ts.map +0 -1
- package/dist/commands/generate/generators/drizzle.d.ts +0 -4
- package/dist/commands/generate/generators/drizzle.d.ts.map +0 -1
- package/dist/commands/generate/generators/index.d.ts +0 -19
- package/dist/commands/generate/generators/index.d.ts.map +0 -1
- package/dist/commands/generate/generators/kysely.d.ts +0 -11
- package/dist/commands/generate/generators/kysely.d.ts.map +0 -1
- package/dist/commands/generate/generators/prisma.d.ts +0 -3
- package/dist/commands/generate/generators/prisma.d.ts.map +0 -1
- package/dist/commands/generate/generators/types.d.ts +0 -13
- package/dist/commands/generate/generators/types.d.ts.map +0 -1
- package/dist/commands/generate/schema.d.ts +0 -10
- package/dist/commands/generate/schema.d.ts.map +0 -1
- package/dist/commands/generate/setup.d.ts +0 -13
- package/dist/commands/generate/setup.d.ts.map +0 -1
- package/dist/commands/generate/write.d.ts +0 -8
- package/dist/commands/generate/write.d.ts.map +0 -1
- package/dist/commands/generate.d.ts +0 -6
- package/dist/commands/generate.d.ts.map +0 -1
- package/dist/commands/migrate/execute.d.ts +0 -7
- package/dist/commands/migrate/execute.d.ts.map +0 -1
- package/dist/commands/migrate/plan.d.ts +0 -12
- package/dist/commands/migrate/plan.d.ts.map +0 -1
- package/dist/commands/migrate/setup.d.ts +0 -12
- package/dist/commands/migrate/setup.d.ts.map +0 -1
- package/dist/commands/migrate.d.ts +0 -3
- package/dist/commands/migrate.d.ts.map +0 -1
- package/dist/context/config-management.d.ts +0 -20
- package/dist/context/config-management.d.ts.map +0 -1
- package/dist/onboarding/dependencies.d.ts.map +0 -1
- package/dist/onboarding/generate-files.d.ts.map +0 -1
- package/dist/onboarding/index.d.ts +0 -11
- package/dist/onboarding/index.d.ts.map +0 -1
- package/dist/onboarding/storage-modes/c15t-mode.d.ts.map +0 -1
- package/dist/onboarding/storage-modes/custom-mode.d.ts.map +0 -1
- package/dist/onboarding/storage-modes/index.d.ts +0 -5
- package/dist/onboarding/storage-modes/index.d.ts.map +0 -1
- package/dist/onboarding/storage-modes/offline-mode.d.ts.map +0 -1
- package/dist/onboarding/storage-modes/self-hosted-mode.d.ts +0 -22
- package/dist/onboarding/storage-modes/self-hosted-mode.d.ts.map +0 -1
- package/dist/onboarding/templates/backend.d.ts.map +0 -1
- package/dist/onboarding/templates/config.d.ts.map +0 -1
- package/dist/onboarding/templates/env.d.ts.map +0 -1
- package/dist/onboarding/templates/index.d.ts.map +0 -1
- package/dist/onboarding/templates/layout.d.ts.map +0 -1
- package/dist/onboarding/templates/next/app/layout.d.ts.map +0 -1
- package/dist/onboarding/templates/next/index.d.ts.map +0 -1
- package/dist/onboarding/templates/next/pages/layout.d.ts.map +0 -1
- package/dist/onboarding/templates/next-config.d.ts.map +0 -1
- package/dist/onboarding/templates/shared/options.d.ts.map +0 -1
- package/dist/onboarding.d.ts +0 -15
- package/dist/onboarding.d.ts.map +0 -1
- /package/dist/{onboarding → commands/generate}/templates/backend.d.ts +0 -0
- /package/dist/{onboarding → commands/generate}/templates/next-config.d.ts +0 -0
- /package/dist/{onboarding → commands/generate}/templates/shared/options.d.ts +0 -0
package/README.md
CHANGED
|
@@ -1,106 +1,129 @@
|
|
|
1
|
-
<
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
</
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://c15t.com?utm_source=github&utm_medium=repopage_%40c15t%2Fcli" target="_blank" rel="noopener noreferrer">
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="../../docs/assets/c15t-banner-readme-dark.svg" type="image/svg+xml">
|
|
5
|
+
<img src="../../docs/assets/c15t-banner-readme-light.svg" alt="c15t Banner" type="image/svg+xml">
|
|
6
|
+
</picture>
|
|
7
|
+
</a>
|
|
8
|
+
<br />
|
|
9
|
+
<h1 align="center">@c15t/cli: c15t's CLI</h1>
|
|
10
|
+
</p>
|
|
11
|
+
|
|
12
|
+
[](https://github.com/c15t/c15t)
|
|
13
|
+
[](https://github.com/c15t/c15t/actions/workflows/ci.yml)
|
|
14
|
+
[](https://github.com/c15t/c15t/blob/main/LICENSE.md)
|
|
15
|
+
[](https://c15t.com/discord)
|
|
16
|
+
[](https://www.npmjs.com/package/@c15t/cli)
|
|
17
|
+
[](https://github.com/c15t/c15t)
|
|
18
|
+
[](https://github.com/c15t/c15t/commits/main)
|
|
19
|
+
[](https://github.com/c15t/c15t/issues)
|
|
20
|
+
|
|
21
|
+
CLI for rapid c15t setup. Scaffold React and Next.js cookie banners and a preferences centre, generate types and config, and run migration tooling for self-hosted deployments.
|
|
22
|
+
|
|
23
|
+
## Key Features
|
|
24
|
+
|
|
25
|
+
- Configuration Generation: Automatically generate schema and code for consent management
|
|
26
|
+
- Database Migrations: Simplified database schema updates
|
|
27
|
+
- Multi-Framework Support: Works seamlessly across different web frameworks
|
|
28
|
+
- Interactive CLI: User-friendly command-line interface with guided workflows
|
|
29
|
+
- GitHub Integration: Easy way to star and support the project
|
|
30
|
+
- Documentation Access: Quick access to project documentation
|
|
31
|
+
|
|
32
|
+
## Prerequisites
|
|
33
|
+
|
|
34
|
+
- Node.js 18.17.0 or later
|
|
35
|
+
- npm, pnpm, or yarn package manager
|
|
36
|
+
|
|
37
|
+
## Quick Start
|
|
38
|
+
|
|
39
|
+
Easiest setup with @c15t/cli:
|
|
13
40
|
|
|
14
41
|
```bash
|
|
15
|
-
|
|
42
|
+
# Generate schema and code
|
|
43
|
+
pnpm dlx @c15t/cli generate
|
|
44
|
+
# Alternatives:
|
|
45
|
+
# npx @c15t/cli generate
|
|
46
|
+
# bunx --bun @c15t/cli generate
|
|
16
47
|
```
|
|
17
48
|
|
|
18
|
-
|
|
49
|
+
The CLI will:
|
|
19
50
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
51
|
+
- Install necessary packages
|
|
52
|
+
- Configure your c15t instance
|
|
53
|
+
- Set up environment variables
|
|
54
|
+
- Add consent management components to your app
|
|
23
55
|
|
|
24
56
|
## Usage
|
|
25
57
|
|
|
26
|
-
|
|
58
|
+
1. Run `@c15t/cli generate` to create initial configuration
|
|
59
|
+
2. Customize consent settings in generated files
|
|
60
|
+
3. Integrate with your web application
|
|
61
|
+
4. Use `@c15t/cli migrate` for database schema updates
|
|
27
62
|
|
|
28
|
-
|
|
29
|
-
c15t [command] [options]
|
|
30
|
-
```
|
|
63
|
+
## Available Commands
|
|
31
64
|
|
|
32
|
-
|
|
65
|
+
- `generate`: Generate schema/code based on your c15t config
|
|
66
|
+
- `migrate`: Run database migrations based on your c15t config
|
|
67
|
+
- `github`: Open the project's GitHub repository to star the project
|
|
68
|
+
- `docs`: Open the c15t documentation in your browser
|
|
33
69
|
|
|
34
|
-
|
|
35
|
-
npx @c15t/cli [command] [options]
|
|
36
|
-
```
|
|
70
|
+
## Global Flags
|
|
37
71
|
|
|
38
|
-
|
|
72
|
+
- `--help`: Display help menu
|
|
73
|
+
- `--version`: Show CLI version
|
|
74
|
+
- `--no-telemetry`: Disable anonymous usage data collection
|
|
39
75
|
|
|
40
|
-
|
|
41
|
-
- `migrate` - Run database migrations based on your c15t config
|
|
42
|
-
- `github` - Open the c15t GitHub repository
|
|
43
|
-
- `docs` - Open the c15t documentation in your browser
|
|
76
|
+
## Telemetry
|
|
44
77
|
|
|
45
|
-
|
|
78
|
+
Anonymous usage data collection to help improve the CLI
|
|
46
79
|
|
|
47
|
-
-
|
|
48
|
-
-
|
|
49
|
-
-
|
|
50
|
-
- `--config` - Specify path to configuration file
|
|
51
|
-
- `-y` - Skip confirmation prompts (use with caution)
|
|
52
|
-
- `--no-telemetry` - Disable telemetry data collection
|
|
80
|
+
- Not personally identifiable
|
|
81
|
+
- Used to prioritize features and improvements
|
|
82
|
+
- Completely optional
|
|
53
83
|
|
|
54
|
-
|
|
84
|
+
Disable telemetry by:
|
|
55
85
|
|
|
56
|
-
|
|
86
|
+
- Use the `--no-telemetry` flag
|
|
87
|
+
- Set `C15T_TELEMETRY_DISABLED=1` in your environment
|
|
57
88
|
|
|
58
|
-
|
|
89
|
+
## Documentation
|
|
59
90
|
|
|
60
|
-
|
|
91
|
+
For further information, guides, and examples visit the [reference documentation](https://c15t.com/docs/cli/overview).
|
|
61
92
|
|
|
62
|
-
|
|
63
|
-
- **Command events**: `command.executed`, `command.succeeded`, `command.failed`, `command.unknown`
|
|
64
|
-
- **UI events**: `ui.menu.opened`, `ui.menu.exited`
|
|
65
|
-
- **Configuration events**: `config.loaded`, `config.error`
|
|
66
|
-
- **Help and version events**: `help.displayed`, `version.displayed`
|
|
67
|
-
- **Onboarding events**: `onboarding.started`, `onboarding.completed`
|
|
68
|
-
- **Error events**: `error.occurred`
|
|
93
|
+
## Support
|
|
69
94
|
|
|
70
|
-
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
-
|
|
74
|
-
- Project-specific data
|
|
95
|
+
- Join our [Discord community](https://c15t.com/discord)
|
|
96
|
+
- Open an issue on our [GitHub repository](https://github.com/c15t/c15t/issues)
|
|
97
|
+
- Visit [consent.io](https://consent.io) and use the chat widget
|
|
98
|
+
- Contact our support team via email [support@consent.io](mailto:support@consent.io)
|
|
75
99
|
|
|
76
|
-
|
|
100
|
+
## Contributing
|
|
77
101
|
|
|
78
|
-
|
|
102
|
+
- We're open to all community contributions!
|
|
103
|
+
- Read our [Contribution Guidelines](https://c15t.com/docs/oss/contributing)
|
|
104
|
+
- Review our [Code of Conduct](https://c15t.com/docs/oss/code-of-conduct)
|
|
105
|
+
- Fork the repository
|
|
106
|
+
- Create a new branch for your feature
|
|
107
|
+
- Submit a pull request
|
|
108
|
+
- **All contributions, big or small, are welcome and appreciated!**
|
|
79
109
|
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
c15t generate --no-telemetry
|
|
83
|
-
```
|
|
110
|
+
## Security
|
|
84
111
|
|
|
85
|
-
|
|
86
|
-
```bash
|
|
87
|
-
# In your shell
|
|
88
|
-
export C15T_TELEMETRY_DISABLED=1
|
|
89
|
-
|
|
90
|
-
# Or for a single command
|
|
91
|
-
C15T_TELEMETRY_DISABLED=1 c15t generate
|
|
92
|
-
```
|
|
112
|
+
If you believe you have found a security vulnerability in c15t, we encourage you to **_responsibly disclose this and NOT open a public issue_**. We will investigate all legitimate reports.
|
|
93
113
|
|
|
94
|
-
|
|
114
|
+
Our preference is that you make use of GitHub's private vulnerability reporting feature to disclose potential security vulnerabilities in our Open Source Software. To do this, please visit [https://github.com/c15t/c15t/security](https://github.com/c15t/c15t/security) and click the "Report a vulnerability" button.
|
|
115
|
+
|
|
116
|
+
### Security Policy
|
|
95
117
|
|
|
96
|
-
|
|
118
|
+
- Please do not share security vulnerabilities in public forums, issues, or pull requests
|
|
119
|
+
- Provide detailed information about the potential vulnerability
|
|
120
|
+
- Allow reasonable time for us to address the issue before any public disclosure
|
|
121
|
+
- We are committed to addressing security concerns promptly and transparently
|
|
97
122
|
|
|
98
|
-
##
|
|
123
|
+
## License
|
|
99
124
|
|
|
100
|
-
[GNU General Public License v3.0](https://github.com/c15t/c15t/blob/main/LICENSE.md)
|
|
125
|
+
[GNU General Public License v3.0](https://github.com/c15t/c15t/blob/main/LICENSE.md)
|
|
101
126
|
|
|
102
127
|
---
|
|
103
128
|
|
|
104
|
-
|
|
105
|
-
<strong>Built with ❤️ by the <a href="www.consent.io"/>consent.io</a> team</strong>
|
|
106
|
-
</div>
|
|
129
|
+
**Built with ❤️ by the [consent.io](https://www.consent.io?utm_source=github&utm_medium=repopage_%40c15t%2Fcli) team**
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CliContext } from '../../context/types';
|
|
2
|
+
/**
|
|
3
|
+
* Generate command - loads config, allows updating via onboarding, then generates artifacts.
|
|
4
|
+
*/
|
|
5
|
+
export declare function generate(context: CliContext, mode?: string): Promise<void>;
|
|
6
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/generate/index.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAYlD;;GAEG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,iBAoChE"}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import type {
|
|
3
|
-
import type { CliContext } from '../../context/types';
|
|
1
|
+
import type { CliContext } from '../../../context/types';
|
|
2
|
+
import type { BaseOptions, BaseResult } from './types';
|
|
4
3
|
/**
|
|
5
4
|
* Result of c15t mode setup
|
|
6
5
|
*/
|
|
7
|
-
export interface C15TModeResult {
|
|
6
|
+
export interface C15TModeResult extends BaseResult {
|
|
8
7
|
backendURL: string | undefined;
|
|
9
8
|
usingEnvFile: boolean;
|
|
10
9
|
proxyNextjs?: boolean;
|
|
11
10
|
}
|
|
12
|
-
interface C15TModeOptions {
|
|
11
|
+
interface C15TModeOptions extends BaseOptions {
|
|
13
12
|
context: CliContext;
|
|
14
|
-
projectRoot: string;
|
|
15
|
-
spinner: ReturnType<typeof p.spinner>;
|
|
16
|
-
packageName: AvailablePackages;
|
|
17
13
|
initialBackendURL?: string;
|
|
18
|
-
handleCancel?: (value: unknown) => boolean;
|
|
19
14
|
}
|
|
20
15
|
/**
|
|
21
16
|
* Handles the setup process for the Hosted c15t (consent.io) mode
|
|
@@ -27,6 +22,6 @@ interface C15TModeOptions {
|
|
|
27
22
|
* @param handleCancel - Function to handle prompt cancellations
|
|
28
23
|
* @returns Configuration data for the c15t mode
|
|
29
24
|
*/
|
|
30
|
-
export declare function setupC15tMode({ context,
|
|
25
|
+
export declare function setupC15tMode({ context, spinner, initialBackendURL, handleCancel, }: C15TModeOptions): Promise<C15TModeResult>;
|
|
31
26
|
export {};
|
|
32
27
|
//# sourceMappingURL=c15t-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"c15t-mode.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/options/c15t-mode.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAKvD;;GAEG;AACH,MAAM,WAAW,cAAe,SAAQ,UAAU;IACjD,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,UAAU,eAAgB,SAAQ,WAAW;IAC5C,OAAO,EAAE,UAAU,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC3B;AA8GD;;;;;;;;;GASG;AACH,wBAAsB,aAAa,CAAC,EACnC,OAAO,EACP,OAAO,EACP,iBAAiB,EACjB,YAAY,GACZ,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAqC3C"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import type * as p from '@clack/prompts';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { CliContext } from '../../../context/types';
|
|
3
|
+
import type { BaseOptions, BaseResult } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Result of custom mode setup
|
|
6
6
|
*/
|
|
7
|
-
export interface CustomModeResult {
|
|
7
|
+
export interface CustomModeResult extends BaseResult {
|
|
8
8
|
clientConfigContent: string;
|
|
9
9
|
}
|
|
10
|
-
interface CustomModeOptions {
|
|
10
|
+
interface CustomModeOptions extends BaseOptions {
|
|
11
11
|
context: CliContext;
|
|
12
|
-
projectRoot: string;
|
|
13
12
|
spinner: ReturnType<typeof p.spinner>;
|
|
14
|
-
pkg: AvailablePackages;
|
|
15
13
|
}
|
|
16
14
|
/**
|
|
17
15
|
* Handles the setup process for custom implementation mode
|
|
@@ -21,6 +19,6 @@ interface CustomModeOptions {
|
|
|
21
19
|
* @param spinner - Spinner for loading indicators
|
|
22
20
|
* @returns Configuration data for the custom mode
|
|
23
21
|
*/
|
|
24
|
-
export declare function setupCustomMode({ context,
|
|
22
|
+
export declare function setupCustomMode({ context, spinner, }: CustomModeOptions): Promise<CustomModeResult>;
|
|
25
23
|
export {};
|
|
26
24
|
//# sourceMappingURL=custom-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"custom-mode.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/options/custom-mode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,CAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIvD;;GAEG;AACH,MAAM,WAAW,gBAAiB,SAAQ,UAAU;IACnD,mBAAmB,EAAE,MAAM,CAAC;CAC5B;AAED,UAAU,iBAAkB,SAAQ,WAAW;IAC9C,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;CACtC;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CAAC,EACrC,OAAO,EACP,OAAO,GACP,EAAE,iBAAiB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CA+B/C"}
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
import type * as p from '@clack/prompts';
|
|
2
|
-
import type {
|
|
3
|
-
import type {
|
|
2
|
+
import type { CliContext } from '../../../context/types';
|
|
3
|
+
import type { BaseOptions, BaseResult } from './types';
|
|
4
4
|
/**
|
|
5
5
|
* Result of offline mode setup
|
|
6
6
|
*/
|
|
7
|
-
export interface OfflineModeResult {
|
|
7
|
+
export interface OfflineModeResult extends BaseResult {
|
|
8
8
|
clientConfigContent: string;
|
|
9
9
|
}
|
|
10
|
-
interface OfflineModeOptions {
|
|
10
|
+
interface OfflineModeOptions extends BaseOptions {
|
|
11
11
|
context: CliContext;
|
|
12
|
-
projectRoot: string;
|
|
13
12
|
spinner: ReturnType<typeof p.spinner>;
|
|
14
|
-
pkg: AvailablePackages;
|
|
15
13
|
}
|
|
16
14
|
/**
|
|
17
15
|
* Handles the setup process for offline mode (browser storage)
|
|
@@ -22,6 +20,6 @@ interface OfflineModeOptions {
|
|
|
22
20
|
* @param handleCancel - Function to handle prompt cancellations
|
|
23
21
|
* @returns Configuration data for the offline mode
|
|
24
22
|
*/
|
|
25
|
-
export declare function setupOfflineMode({ context,
|
|
23
|
+
export declare function setupOfflineMode({ context, spinner, }: OfflineModeOptions): Promise<OfflineModeResult>;
|
|
26
24
|
export {};
|
|
27
25
|
//# sourceMappingURL=offline-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"offline-mode.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/options/offline-mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIvD;;GAEG;AACH,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACpD,mBAAmB,EAAE,MAAM,CAAC;CAC5B;AAED,UAAU,kBAAmB,SAAQ,WAAW;IAC/C,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;CACtC;AAED;;;;;;;;GAQG;AACH,wBAAsB,gBAAgB,CAAC,EACtC,OAAO,EACP,OAAO,GACP,EAAE,kBAAkB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAiBjD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import * as p from '@clack/prompts';
|
|
2
|
+
import type { CliContext } from '../../../context/types';
|
|
3
|
+
import type { BaseOptions, BaseResult } from './types';
|
|
4
|
+
export interface SelfHostModeResult extends BaseResult {
|
|
5
|
+
backendURL: string | undefined;
|
|
6
|
+
usingEnvFile: boolean;
|
|
7
|
+
proxyNextjs?: boolean;
|
|
8
|
+
createBackendConfig: boolean;
|
|
9
|
+
runMigrations: boolean;
|
|
10
|
+
}
|
|
11
|
+
interface SelfHostModeOptions extends BaseOptions {
|
|
12
|
+
context: CliContext;
|
|
13
|
+
spinner: ReturnType<typeof p.spinner>;
|
|
14
|
+
initialBackendURL?: string;
|
|
15
|
+
handleCancel?: (value: unknown) => boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare function setupSelfHostedMode({ context, spinner, handleCancel, }: SelfHostModeOptions): Promise<SelfHostModeResult>;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=self-hosted-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"self-hosted-mode.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/options/self-hosted-mode.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,CAAC,MAAM,gBAAgB,CAAC;AACpC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAMzD,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAIvD,MAAM,WAAW,kBAAmB,SAAQ,UAAU;IACrD,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,YAAY,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;CACvB;AAED,UAAU,mBAAoB,SAAQ,WAAW;IAChD,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;IACtC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;CAC3C;AAED,wBAAsB,mBAAmB,CAAC,EACzC,OAAO,EACP,OAAO,EACP,YAAY,GACZ,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CAuEnD"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type * as p from '@clack/prompts';
|
|
2
|
+
import type { CliContext } from '../../../context/types';
|
|
3
|
+
export interface BaseResult {
|
|
4
|
+
installDepsConfirmed: boolean;
|
|
5
|
+
ranInstall: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface BaseOptions {
|
|
8
|
+
context: CliContext;
|
|
9
|
+
handleCancel?: (value: unknown) => boolean;
|
|
10
|
+
spinner: ReturnType<typeof p.spinner>;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/options/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,CAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,UAAU;IAC1B,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,WAAW;IAC3B,OAAO,EAAE,UAAU,CAAC;IACpB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;IAC3C,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,CAAC;CACtC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import type { CliContext } from '../../../../context/types';
|
|
1
2
|
export type PackageManager = 'npm' | 'yarn' | 'pnpm';
|
|
2
3
|
/**
|
|
3
4
|
* Installs dependencies using the detected package manager
|
|
@@ -17,4 +18,15 @@ export declare function addAndInstallDependenciesViaPM(projectRoot: string, depe
|
|
|
17
18
|
* @returns The command string to run for manual installation
|
|
18
19
|
*/
|
|
19
20
|
export declare function getManualInstallCommand(dependencies: string[], packageManager: PackageManager): string;
|
|
21
|
+
interface InstallDependenciesOptions {
|
|
22
|
+
context: CliContext;
|
|
23
|
+
dependenciesToAdd: string[];
|
|
24
|
+
handleCancel?: (value: unknown) => boolean;
|
|
25
|
+
autoInstall?: boolean;
|
|
26
|
+
}
|
|
27
|
+
export declare function installDependencies({ context, dependenciesToAdd, handleCancel, autoInstall, }: InstallDependenciesOptions): Promise<{
|
|
28
|
+
installDepsConfirmed: boolean;
|
|
29
|
+
ranInstall: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
export {};
|
|
20
32
|
//# sourceMappingURL=dependencies.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/options/utils/dependencies.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAIlD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,CAAC;AAErD;;;;;;;GAOG;AACH,wBAAsB,8BAA8B,CACnD,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EAAE,EACtB,cAAc,EAAE,cAAc,GAC5B,OAAO,CAAC,IAAI,CAAC,CAsCf;AAED;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACtC,YAAY,EAAE,MAAM,EAAE,EACtB,cAAc,EAAE,cAAc,GAC5B,MAAM,CAWR;AAED,UAAU,0BAA0B;IACnC,OAAO,EAAE,UAAU,CAAC;IACpB,iBAAiB,EAAE,MAAM,EAAE,CAAC;IAC5B,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAsB,mBAAmB,CAAC,EACzC,OAAO,EACP,iBAAiB,EACjB,YAAY,EACZ,WAAmB,GACnB,EAAE,0BAA0B;;;GAiE5B"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
export interface GenerateFilesOptions {
|
|
1
|
+
import type { CliContext } from '../../../../context/types';
|
|
2
|
+
import type { BaseOptions } from '../types';
|
|
3
|
+
export interface GenerateFilesOptions extends BaseOptions {
|
|
5
4
|
context: CliContext;
|
|
6
|
-
projectRoot: string;
|
|
7
5
|
mode: 'c15t' | 'offline' | 'custom';
|
|
8
|
-
pkg: AvailablePackages;
|
|
9
6
|
proxyNextjs?: boolean;
|
|
10
7
|
backendURL?: string;
|
|
11
8
|
useEnvFile?: boolean;
|
|
12
|
-
spinner: ReturnType<typeof p.spinner>;
|
|
13
9
|
}
|
|
14
10
|
export interface GenerateFilesResult {
|
|
15
11
|
configContent?: string;
|
|
@@ -26,5 +22,5 @@ export interface GenerateFilesResult {
|
|
|
26
22
|
* @param options - Configuration options for file generation
|
|
27
23
|
* @returns Information about generated/updated files
|
|
28
24
|
*/
|
|
29
|
-
export declare function generateFiles({ context,
|
|
25
|
+
export declare function generateFiles({ context, mode, spinner, useEnvFile, proxyNextjs, backendURL, }: GenerateFilesOptions): Promise<GenerateFilesResult>;
|
|
30
26
|
//# sourceMappingURL=generate-files.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-files.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/options/utils/generate-files.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAUlD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C,MAAM,WAAW,oBAAqB,SAAQ,WAAW;IACxD,OAAO,EAAE,UAAU,CAAC;IACpB,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;IACpC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,MAAM,WAAW,mBAAmB;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,aAAa,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B;AAgMD;;;;;GAKG;AACH,wBAAsB,aAAa,CAAC,EACnC,OAAO,EACP,IAAI,EACJ,OAAO,EACP,UAAU,EACV,WAAW,EACX,UAAU,GACV,EAAE,oBAAoB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAgErD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { CliContext } from '../../../../context/types';
|
|
2
|
+
interface SharedFrontendOptions {
|
|
3
|
+
backendURL: string | undefined;
|
|
4
|
+
context: CliContext;
|
|
5
|
+
handleCancel?: (value: unknown) => boolean;
|
|
6
|
+
}
|
|
7
|
+
interface SharedFrontendResult {
|
|
8
|
+
proxyNextjs?: boolean;
|
|
9
|
+
useEnvFile?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function getSharedFrontendOptions({ backendURL, context, handleCancel, }: SharedFrontendOptions): Promise<SharedFrontendResult>;
|
|
12
|
+
export {};
|
|
13
|
+
//# sourceMappingURL=shared-frontend.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-frontend.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/options/utils/shared-frontend.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,UAAU,qBAAqB;IAC9B,UAAU,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,OAAO,EAAE,UAAU,CAAC;IACpB,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO,CAAC;CAC3C;AAED,UAAU,oBAAoB;IAC7B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED,wBAAsB,wBAAwB,CAAC,EAC9C,UAAU,EACV,OAAO,EACP,YAAY,GACZ,EAAE,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CAAC,CAmDvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"backend.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/templates/backend.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,wBAAgB,4BAA4B,CAC3C,aAAa,EAAE,MAAM,EACrB,gBAAgB,CAAC,EAAE,MAAM,EACzB,QAAQ,CAAC,EAAE,MAAM,GACf,MAAM,CAmDR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/templates/config.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;;;;;;;GAQG;AACH,wBAAgB,2BAA2B,CAC1C,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,MAAM,EACnB,UAAU,CAAC,EAAE,OAAO,EACpB,MAAM,CAAC,EAAE,SAAS,GAChB,MAAM,CAiGR"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"env.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/templates/env.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAEvE;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,CAE5D;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACrC,UAAU,EAAE,MAAM,EAClB,GAAG,EAAE,iBAAiB,GACpB,MAAM,CAGR;AAED;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,CAGxE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
export type { AvailablePackages } from '../../../context/framework-detection';
|
|
1
2
|
export { updateReactLayout } from './layout';
|
|
2
3
|
export { updateNextLayout } from './next';
|
|
3
4
|
export { updateAppLayout } from './next/app/layout';
|
|
4
5
|
export { updatePagesLayout } from './next/pages/layout';
|
|
5
6
|
export { generateOptionsText, getBaseImports, getCustomModeImports, } from './shared/options';
|
|
6
|
-
export type { AvailablePackages } from '../../context/framework-detection';
|
|
7
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/templates/index.ts"],"names":[],"mappings":"AAEA,YAAY,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EACN,mBAAmB,EACnB,cAAc,EACd,oBAAoB,GACpB,MAAM,kBAAkB,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This module now serves as a wrapper that routes to the appropriate implementation
|
|
4
4
|
* based on the detected project structure (App Directory vs Pages Directory)
|
|
5
5
|
*/
|
|
6
|
-
import type { AvailablePackages } from '
|
|
6
|
+
import type { AvailablePackages } from '../../../context/framework-detection';
|
|
7
7
|
interface UpdateReactLayoutOptions {
|
|
8
8
|
projectRoot: string;
|
|
9
9
|
mode: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/templates/layout.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAQH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAQvE,UAAU,wBAAwB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,EAAE,iBAAiB,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAwQD,wBAAsB,iBAAiB,CACtC,OAAO,EAAE,wBAAwB,GAC/B,OAAO,CAAC;IACV,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;CACzB,CAAC,CAiBD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* App Directory layout template generator
|
|
3
3
|
* Handles updating Next.js App Directory layout files with ConsentManagerProvider
|
|
4
4
|
*/
|
|
5
|
-
import type { AvailablePackages } from '
|
|
5
|
+
import type { AvailablePackages } from '../../../../../context/framework-detection';
|
|
6
6
|
interface UpdateAppLayoutOptions {
|
|
7
7
|
projectRoot: string;
|
|
8
8
|
mode: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/generate/templates/next/app/layout.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAYvE,UAAU,sBAAsB;IAC/B,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,EAAE,iBAAiB,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAkHD,wBAAsB,eAAe,CAAC,EACrC,WAAW,EACX,IAAI,EACJ,GAAG,EACH,UAAU,EACV,UAAU,EACV,WAAW,GACX,EAAE,sBAAsB,GAAG,OAAO,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;CACzB,CAAC,CA2DD"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Detects whether the project uses App Directory or Pages Directory
|
|
4
4
|
* and routes to the appropriate implementation
|
|
5
5
|
*/
|
|
6
|
-
import type { AvailablePackages } from '
|
|
6
|
+
import type { AvailablePackages } from '../../../../context/framework-detection';
|
|
7
7
|
interface UpdateNextLayoutOptions {
|
|
8
8
|
projectRoot: string;
|
|
9
9
|
mode: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/templates/next/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAIvE,UAAU,uBAAuB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,EAAE,iBAAiB,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,KAAK,aAAa,GAAG,KAAK,GAAG,OAAO,GAAG,IAAI,CAAC;AAsC5C,wBAAsB,gBAAgB,CACrC,OAAO,EAAE,uBAAuB,GAC9B,OAAO,CAAC;IACV,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,aAAa,EAAE,aAAa,CAAC;CAC7B,CAAC,CA4BD"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Pages Directory layout template generator
|
|
3
3
|
* Handles updating Next.js Pages Directory _app.tsx files with ConsentManagerProvider
|
|
4
4
|
*/
|
|
5
|
-
import type { AvailablePackages } from '
|
|
5
|
+
import type { AvailablePackages } from '../../../../../context/framework-detection';
|
|
6
6
|
interface UpdatePagesLayoutOptions {
|
|
7
7
|
projectRoot: string;
|
|
8
8
|
mode: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout.d.ts","sourceRoot":"","sources":["../../../../../../src/commands/generate/templates/next/pages/layout.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAOvE,UAAU,wBAAwB;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,GAAG,EAAE,iBAAiB,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;CACtB;AAyJD,wBAAsB,iBAAiB,CAAC,EACvC,WAAW,EACX,IAAI,EACJ,GAAG,EACH,UAAU,EACV,UAAU,EACV,WAAW,GACX,EAAE,wBAAwB,GAAG,OAAO,CAAC;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;CACzB,CAAC,CAgED"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"next-config.d.ts","sourceRoot":"","sources":["../../../../src/commands/generate/templates/next-config.ts"],"names":[],"mappings":"AAWA,UAAU,uBAAuB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,gBAAgB,CAAC,EACtC,WAAW,EACX,UAAU,EACV,UAAU,GACV,EAAE,uBAAuB,GAAG,OAAO,CAAC;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,eAAe,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,OAAO,CAAC;CACjB,CAAC,CA8CD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.ts","sourceRoot":"","sources":["../../../../../src/commands/generate/templates/shared/options.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,mBAAmB,CAClC,IAAI,EAAE,MAAM,EACZ,UAAU,CAAC,EAAE,MAAM,EACnB,UAAU,CAAC,EAAE,OAAO,EACpB,WAAW,CAAC,EAAE,OAAO,GACnB,MAAM,CAuCR;AAED;;;;GAIG;AACH,wBAAgB,cAAc,IAAI,MAAM,EAAE,CAEzC;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,IAAI,KAAK,CAAC;IAC7C,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,EAAE,MAAM,CAAC;CACxB,CAAC,CAOD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/self-host/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAsBlD;;GAEG;AACH,wBAAsB,QAAQ,CAAC,OAAO,EAAE,UAAU,iBA6FjD"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CliContext } from '../../../context/types';
|
|
2
|
+
export declare function pathExists(filePath: string): Promise<boolean>;
|
|
3
|
+
export declare function ensureBackendConfig(context: CliContext): Promise<{
|
|
4
|
+
path: string;
|
|
5
|
+
dependencies: string[];
|
|
6
|
+
} | null>;
|
|
7
|
+
//# sourceMappingURL=ensure-backend-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-backend-config.d.ts","sourceRoot":"","sources":["../../../../src/commands/self-host/migrate/ensure-backend-config.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAoHlD,wBAAsB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAOnE;AAkRD,wBAAsB,mBAAmB,CACxC,OAAO,EAAE,UAAU,GACjB,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,GAAG,IAAI,CAAC,CAyE1D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ensure-backend-config.test.d.ts","sourceRoot":"","sources":["../../../../src/commands/self-host/migrate/ensure-backend-config.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/commands/self-host/migrate/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,wBAAsB,OAAO,CAAC,OAAO,EAAE,UAAU,iBAiChD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../../src/commands/self-host/migrate/index.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { MigrationResult } from '@c15t/backend/v2/db/migrator';
|
|
2
|
+
import type { CliContext } from '../../../context/types';
|
|
3
|
+
export declare function handleMigrationResult(context: CliContext, result: MigrationResult): Promise<void>;
|
|
4
|
+
//# sourceMappingURL=migrator-result.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"migrator-result.d.ts","sourceRoot":"","sources":["../../../../src/commands/self-host/migrate/migrator-result.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AAEpE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAGlD,wBAAsB,qBAAqB,CAC1C,OAAO,EAAE,UAAU,EACnB,MAAM,EAAE,eAAe,iBA2CvB"}
|