Skip to content
Source
Sign inSign up
TanStack/cli
Open History to see the last commit

index.ts

115 lines2.8 KB

1// Auto-register frameworks on import
2import { register as registerReact } from './frameworks/react/index.js'
3import { register as registerSolid } from './frameworks/solid/index.js'
4​
5registerReact()
6registerSolid()
7​
8export { createApp } from './create-app.js'
9export { computeAttribution } from './attribution.js'
10export { addToApp } from './add-to-app.js'
11​
12export {
13 finalizeAddOns,
14 getAllAddOns,
15 populateAddOnOptionsDefaults,
16} from './add-ons.js'
17​
18export { loadRemoteAddOn } from './custom-add-ons/add-on.js'
19export { loadStarter } from './custom-add-ons/starter.js'
20​
21export {
22 createMemoryEnvironment,
23 createDefaultEnvironment,
24} from './environment.js'
25​
26export { CONFIG_FILE } from './constants.js'
27​
28export {
29 DEFAULT_PACKAGE_MANAGER,
30 SUPPORTED_PACKAGE_MANAGERS,
31 getPackageManager,
32} from './package-manager.js'
33​
34export {
35 registerFramework,
36 getFrameworkById,
37 getFrameworkByName,
38 getFrameworks,
39 scanProjectDirectory,
40 scanAddOnDirectories,
41 __testRegisterFramework,
42 __testClearFrameworks,
43} from './frameworks.js'
44​
45export {
46 writeConfigFileToEnvironment,
47 readConfigFileFromEnvironment,
48 readConfigFile,
49} from './config-file.js'
50​
51export {
52 cleanUpFiles,
53 cleanUpFileArray,
54 readFileHelper,
55 getBinaryFile,
56 recursivelyGatherFiles,
57 relativePath,
58 toCleanPath,
59} from './file-helpers.js'
60​
61export { formatCommand, handleSpecialURL } from './utils.js'
62​
63export { initStarter, compileStarter } from './custom-add-ons/starter.js'
64export { initAddOn, compileAddOn, devAddOn } from './custom-add-ons/add-on.js'
65export {
66 createAppOptionsFromPersisted,
67 createSerializedOptionsFromPersisted,
68} from './custom-add-ons/shared.js'
69​
70export { createSerializedOptions } from './options.js'
71​
72export {
73 getRawRegistry,
74 getRegistry,
75 getRegistryAddOns,
76 getRegistryStarters,
77} from './registry.js'
78​
79export {
80 StarterCompiledSchema,
81 StatusEvent,
82 StatusStepType,
83 StopEvent,
84 AddOnCompiledSchema,
85 AddOnInfoSchema,
86 IntegrationSchema,
87} from './types.js'
88​
89export type {
90 AddOn,
91 AddOnOption,
92 AddOnOptions,
93 AddOnSelectOption,
94 AddOnSelection,
95 Environment,
96 FileBundleHandler,
97 Framework,
98 FrameworkDefinition,
99 Options,
100 SerializedOptions,
101 Starter,
102 StarterCompiled,
103 LineAttribution,
104 FileProvenance,
105 AttributedFile,
106 DependencyAttribution,
107} from './types.js'
108export type { AttributionInput, AttributionOutput } from './attribution.js'
109export type { MemoryEnvironmentOutput } from './environment.js'
110export type { PersistedOptions } from './config-file.js'
111export type { PackageManager } from './package-manager.js'
112​
113// Framework definition initializers (for dev-watch feature)
114export { createFrameworkDefinition as createReactFrameworkDefinition } from './frameworks/react/index.js'
115export { createFrameworkDefinition as createSolidFrameworkDefinition } from './frameworks/solid/index.js'