create-absolutejs 0.15.1 → 0.15.3
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/dist/prompt.js +18 -9
- package/dist/utils/parseCommandLineOptions.js +3 -1
- package/dist/versions.d.ts +1 -1
- package/dist/versions.js +1 -1
- package/package.json +1 -1
package/dist/prompt.js
CHANGED
|
@@ -19,11 +19,14 @@ import { getUseTailwind } from './questions/useTailwind';
|
|
|
19
19
|
import { orPrompt } from './utils/interactive';
|
|
20
20
|
export const prompt = async (argumentConfiguration) => {
|
|
21
21
|
// 1. Project name
|
|
22
|
-
const projectName = argumentConfiguration.projectName ??
|
|
22
|
+
const projectName = argumentConfiguration.projectName ??
|
|
23
|
+
(await orPrompt('a project name', getProjectName));
|
|
23
24
|
// 2. Linting/formatting tool
|
|
24
|
-
const codeQualityTool = argumentConfiguration.codeQualityTool ??
|
|
25
|
+
const codeQualityTool = argumentConfiguration.codeQualityTool ??
|
|
26
|
+
(await orPrompt('--eslint+prettier/--biome', getCodeQualityTool));
|
|
25
27
|
// 3. Tailwind support?
|
|
26
|
-
const useTailwind = argumentConfiguration.useTailwind ??
|
|
28
|
+
const useTailwind = argumentConfiguration.useTailwind ??
|
|
29
|
+
(await orPrompt('--tailwind/--no-tailwind', getUseTailwind));
|
|
27
30
|
// 4. Frontend(s)
|
|
28
31
|
const frontends = argumentConfiguration.frontends?.filter((frontend) => frontend !== undefined) ?? (await orPrompt('--react/--vue/--svelte/…', getFrontends));
|
|
29
32
|
// 5. HTML scripting option (if HTML was selected)
|
|
@@ -32,18 +35,22 @@ export const prompt = async (argumentConfiguration) => {
|
|
|
32
35
|
(await orPrompt('--html-scripts/--no-html-scripts', getHtmlScriptingOption)))
|
|
33
36
|
: false;
|
|
34
37
|
// 5b. Include example pages/components, or generate a bare skeleton
|
|
35
|
-
const includeExamples = argumentConfiguration.includeExamples ??
|
|
38
|
+
const includeExamples = argumentConfiguration.includeExamples ??
|
|
39
|
+
(await orPrompt('--examples/--no-examples', getIncludeExamples));
|
|
36
40
|
// 6. Database engine
|
|
37
|
-
const databaseEngine = argumentConfiguration.databaseEngine ??
|
|
41
|
+
const databaseEngine = argumentConfiguration.databaseEngine ??
|
|
42
|
+
(await orPrompt('--db', getDatabaseEngine));
|
|
38
43
|
// 7. Database host
|
|
39
44
|
const databaseHost = argumentConfiguration.databaseHost ??
|
|
40
45
|
(await orPrompt('--db-host', () => getDatabaseHost(databaseEngine)));
|
|
41
46
|
// 8. ORM choice
|
|
42
47
|
const orm = databaseEngine !== undefined && databaseEngine !== 'none'
|
|
43
|
-
? (argumentConfiguration.orm ??
|
|
48
|
+
? (argumentConfiguration.orm ??
|
|
49
|
+
(await orPrompt('--orm', () => getORM(databaseEngine))))
|
|
44
50
|
: undefined;
|
|
45
51
|
// 9. Configuration type
|
|
46
|
-
let directoryConfig = argumentConfiguration.directoryConfig ??
|
|
52
|
+
let directoryConfig = argumentConfiguration.directoryConfig ??
|
|
53
|
+
(await orPrompt('--directory', getConfigurationType));
|
|
47
54
|
// 10. Directory configurations
|
|
48
55
|
const { buildDirectory, assetsDirectory, tailwind, databaseDirectory } = await getDirectoryConfiguration({
|
|
49
56
|
argumentConfiguration,
|
|
@@ -57,14 +64,16 @@ export const prompt = async (argumentConfiguration) => {
|
|
|
57
64
|
if (argumentConfiguration.frontendDirectories !== undefined)
|
|
58
65
|
directoryConfig = 'custom';
|
|
59
66
|
// 12. Auth provider
|
|
60
|
-
const authOption = argumentConfiguration.authOption ??
|
|
67
|
+
const authOption = argumentConfiguration.authOption ??
|
|
68
|
+
(await orPrompt('--auth', getAuthOption));
|
|
61
69
|
// 12b. Agent-first action/auth/MCP/wallet/credential stack
|
|
62
70
|
const agentic = argumentConfiguration.agentic ??
|
|
63
71
|
(await orPrompt('--agentic/--no-agentic', getAgentic));
|
|
64
72
|
// 13. Additional plugins
|
|
65
73
|
const plugins = argumentConfiguration.plugins?.filter((plugin) => plugin !== undefined) ?? (await orPrompt('--plugin', getPlugins));
|
|
66
74
|
// 14. Initialize Git repository
|
|
67
|
-
const initializeGitNow = argumentConfiguration.initializeGitNow ??
|
|
75
|
+
const initializeGitNow = argumentConfiguration.initializeGitNow ??
|
|
76
|
+
(await orPrompt('--git/--no-git', getInitializeGit));
|
|
68
77
|
// 14b. Optionally connect the new project to GitHub
|
|
69
78
|
const resolveGithubLink = async () => {
|
|
70
79
|
if (!initializeGitNow) {
|
|
@@ -132,7 +132,9 @@ export const parseCommandLineOptions = () => {
|
|
|
132
132
|
? values.directory
|
|
133
133
|
: // --skip defaults every prompted axis (headless callers hang on
|
|
134
134
|
// missing ones).
|
|
135
|
-
|
|
135
|
+
values.skip
|
|
136
|
+
? 'default'
|
|
137
|
+
: undefined;
|
|
136
138
|
if (values.directory !== undefined && directoryConfig === undefined) {
|
|
137
139
|
errors.push(`Invalid directory configuration: "${values.directory}". Expected: [ ${availableDirectoryConfigurations.join(', ')} ]`);
|
|
138
140
|
}
|
package/dist/versions.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Run `bun run check-versions` to compare against latest npm versions.
|
|
5
5
|
*/
|
|
6
6
|
export declare const versions: {
|
|
7
|
-
readonly '@absolutejs/absolute': "0.19.0-beta.
|
|
7
|
+
readonly '@absolutejs/absolute': "0.19.0-beta.1099";
|
|
8
8
|
readonly '@absolutejs/a2a': "0.1.0";
|
|
9
9
|
readonly '@absolutejs/agency': "0.4.0";
|
|
10
10
|
readonly '@absolutejs/agent-conformance': "0.3.0";
|
package/dist/versions.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export const versions = {
|
|
7
7
|
/* ── Core ─────────────────────────────────────────────── */
|
|
8
|
-
'@absolutejs/absolute': '0.19.0-beta.
|
|
8
|
+
'@absolutejs/absolute': '0.19.0-beta.1099',
|
|
9
9
|
'@absolutejs/a2a': '0.1.0',
|
|
10
10
|
'@absolutejs/agency': '0.4.0',
|
|
11
11
|
'@absolutejs/agent-conformance': '0.3.0',
|
package/package.json
CHANGED