create-absolutejs 0.2.2 → 0.3.1
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/commands/formatProject.d.ts +6 -0
- package/dist/commands/installDependencies.d.ts +6 -0
- package/dist/constants.d.ts +4 -0
- package/dist/data.d.ts +15 -0
- package/dist/generators/configurations/addConfigurationFiles.d.ts +7 -0
- package/dist/generators/configurations/generateDrizzleConfig.d.ts +7 -0
- package/dist/generators/configurations/generatePackageJson.d.ts +7 -0
- package/dist/generators/configurations/generatePrettierrc.d.ts +2 -0
- package/dist/generators/configurations/initializeRoot.d.ts +5 -0
- package/dist/generators/db/scaffoldDatabase.d.ts +9 -0
- package/dist/generators/html/scaffoldHTML.d.ts +6 -0
- package/dist/generators/htmx/scaffoldHTMX.d.ts +2 -0
- package/dist/generators/project/generateMarkupCSS.d.ts +1 -0
- package/dist/generators/project/generateServer.d.ts +7 -0
- package/dist/generators/project/scaffoldFrontends.d.ts +8 -0
- package/dist/generators/react/scaffoldReact.d.ts +2 -0
- package/dist/generators/svelte/scaffoldSvelte.d.ts +2 -0
- package/dist/generators/vue/scaffoldVue.d.ts +4 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +390 -447
- package/dist/messages.d.ts +14 -0
- package/dist/prompt.d.ts +2 -0
- package/dist/questions/authProvider.d.ts +1 -0
- package/dist/questions/codeQualityTool.d.ts +1 -0
- package/dist/questions/configurationType.d.ts +1 -0
- package/dist/questions/databaseEngine.d.ts +1 -0
- package/dist/questions/databaseHost.d.ts +2 -0
- package/dist/questions/directoryConfiguration.d.ts +14 -0
- package/dist/questions/frontendDirectoryConfigurations.d.ts +2 -0
- package/dist/questions/frontends.d.ts +1 -0
- package/dist/questions/htmlScriptingOption.d.ts +1 -0
- package/dist/questions/initializeGitNow.d.ts +1 -0
- package/dist/questions/installDependenciesNow.d.ts +1 -0
- package/dist/questions/orm.d.ts +1 -0
- package/dist/questions/plugins.d.ts +1 -0
- package/dist/questions/projectName.d.ts +1 -0
- package/dist/questions/useTailwind.d.ts +1 -0
- package/dist/scaffold.d.ts +8 -0
- package/dist/templates/assets/ico/favicon.ico +0 -0
- package/dist/templates/assets/png/absolutejs-temp.png +0 -0
- package/dist/templates/assets/svg/HTML5_Badge.svg +7 -0
- package/dist/templates/assets/svg/htmx-logo-black.svg +9 -0
- package/dist/templates/assets/svg/htmx-logo-white.svg +9 -0
- package/dist/templates/assets/svg/svelte-logo.svg +1 -0
- package/dist/templates/assets/svg/vue-logo.svg +4 -0
- package/dist/templates/html/pages/HTMLExample.html +66 -0
- package/dist/templates/html/scripts/typescript-example.ts +21 -0
- package/dist/templates/htmx/pages/HTMXExample.html +92 -0
- package/dist/templates/react/components/App.tsx +52 -0
- package/dist/templates/react/components/Dropdown.tsx +23 -0
- package/dist/templates/react/components/Head.tsx +34 -0
- package/dist/templates/react/pages/ReactExample.tsx +18 -0
- package/dist/templates/styles/colors.ts +11 -0
- package/dist/templates/styles/reset.css +84 -0
- package/dist/templates/svelte/components/Counter.svelte +19 -0
- package/dist/templates/svelte/composables/counter.svelte.ts +14 -0
- package/dist/templates/svelte/pages/SvelteExample.svelte +215 -0
- package/dist/templates/vue/components/CountButton.vue +39 -0
- package/dist/templates/vue/composables/useCount.ts +14 -0
- package/dist/templates/vue/pages/VueExample.vue +266 -0
- package/dist/typeGuards.d.ts +8 -0
- package/dist/types.d.ts +128 -0
- package/dist/utils/abort.d.ts +1 -0
- package/dist/utils/commandMaps.d.ts +2 -0
- package/dist/utils/getPackageVersion.d.ts +1 -0
- package/dist/utils/parseCommandLineOptions.d.ts +7 -0
- package/dist/utils/t3-utils.d.ts +7 -0
- package/package.json +7 -6
- package/dist/templates/react/hooks/useMediaQuery.ts +0 -54
- package/dist/templates/react/styles/defaultStyles.ts +0 -28
package/dist/data.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { FrontendLabels, AvailableDependency } from './types';
|
|
2
|
+
export declare const availableFrontends: readonly ["react", "html", "svelte", "vue", "htmx"];
|
|
3
|
+
export declare const availableAuthProviders: readonly ["absoluteAuth", "none"];
|
|
4
|
+
export declare const availableDatabaseEngines: readonly ["postgresql", "mysql", "sqlite", "mongodb", "redis", "singlestore", "cockroachdb", "mssql", "none"];
|
|
5
|
+
export declare const availableDirectoryConfigurations: readonly ["default", "custom"];
|
|
6
|
+
export declare const availableORMs: readonly ["drizzle", "prisma", "none"];
|
|
7
|
+
export declare const availableDatabaseHosts: readonly ["neon", "planetscale", "supabase", "turso", "vercel", "upstash", "atlas", "none"];
|
|
8
|
+
export declare const availableCodeQualityTools: readonly ["eslint+prettier", "biome"];
|
|
9
|
+
export declare const frontendLabels: FrontendLabels;
|
|
10
|
+
export declare const availablePlugins: AvailableDependency[];
|
|
11
|
+
export declare const absoluteAuthPlugin: AvailableDependency;
|
|
12
|
+
export declare const scopedStatePlugin: AvailableDependency;
|
|
13
|
+
export declare const eslintAndPrettierDependencies: AvailableDependency[];
|
|
14
|
+
export declare const defaultDependencies: AvailableDependency[];
|
|
15
|
+
export declare const defaultPlugins: AvailableDependency[];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CreateConfiguration } from '../../types';
|
|
2
|
+
type AddConfigurationProps = Pick<CreateConfiguration, 'tailwind' | 'initializeGitNow' | 'codeQualityTool' | 'frontends'> & {
|
|
3
|
+
templatesDirectory: string;
|
|
4
|
+
projectName: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const addConfigurationFiles: ({ tailwind, templatesDirectory, codeQualityTool, frontends, initializeGitNow, projectName }: AddConfigurationProps) => void;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { DatabaseEngine } from '../../types';
|
|
2
|
+
type CreateDrizzleConfigProps = {
|
|
3
|
+
projectName: string;
|
|
4
|
+
databaseEngine: DatabaseEngine;
|
|
5
|
+
};
|
|
6
|
+
export declare const createDrizzleConfig: ({ projectName, databaseEngine }: CreateDrizzleConfigProps) => void;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CreateConfiguration } from '../../types';
|
|
2
|
+
type CreatePackageJsonProps = Pick<CreateConfiguration, 'authProvider' | 'useTailwind' | 'plugins' | 'frontendDirectories' | 'codeQualityTool'> & {
|
|
3
|
+
projectName: string;
|
|
4
|
+
latest: boolean;
|
|
5
|
+
};
|
|
6
|
+
export declare const createPackageJson: ({ projectName, authProvider, plugins, useTailwind, latest, frontendDirectories, codeQualityTool }: CreatePackageJsonProps) => void;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { DatabaseEngine, ORM } from '../../types';
|
|
2
|
+
type ScaffoldDatabaseProps = {
|
|
3
|
+
projectName: string;
|
|
4
|
+
orm: ORM;
|
|
5
|
+
databaseEngine: DatabaseEngine;
|
|
6
|
+
databaseDirectory: string;
|
|
7
|
+
};
|
|
8
|
+
export declare const scaffoldDatabase: ({ projectName, databaseEngine, databaseDirectory, orm }: ScaffoldDatabaseProps) => void;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ScaffoldFrontendProps } from '../../types';
|
|
2
|
+
type ScaffoldHTMLProps = ScaffoldFrontendProps & {
|
|
3
|
+
useHTMLScripts: boolean;
|
|
4
|
+
};
|
|
5
|
+
export declare const scaffoldHTML: ({ isSingleFrontend, targetDirectory, useHTMLScripts, templatesDirectory, projectAssetsDirectory }: ScaffoldHTMLProps) => void;
|
|
6
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const generateMarkupCSS: (isSingleFrontend: boolean) => string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { AvailableDependency, CreateConfiguration } from '../../types';
|
|
2
|
+
type CreateServerFileProps = Pick<CreateConfiguration, 'tailwind' | 'authProvider' | 'plugins' | 'buildDirectory' | 'assetsDirectory' | 'frontendDirectories'> & {
|
|
3
|
+
availablePlugins: AvailableDependency[];
|
|
4
|
+
serverFilePath: string;
|
|
5
|
+
};
|
|
6
|
+
export declare const createServerFile: ({ tailwind, frontendDirectories, serverFilePath, authProvider, availablePlugins, buildDirectory, assetsDirectory, plugins }: CreateServerFileProps) => void;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { CreateConfiguration } from '../../types';
|
|
2
|
+
type ScaffoldFrontendsProps = Pick<CreateConfiguration, 'useHTMLScripts' | 'frontendDirectories'> & {
|
|
3
|
+
frontendDirectory: string;
|
|
4
|
+
templatesDirectory: string;
|
|
5
|
+
projectAssetsDirectory: string;
|
|
6
|
+
};
|
|
7
|
+
export declare const scaffoldFrontends: ({ frontendDirectory, templatesDirectory, projectAssetsDirectory, useHTMLScripts, frontendDirectories }: ScaffoldFrontendsProps) => void;
|
|
8
|
+
export {};
|
package/dist/index.d.ts
ADDED