attio 0.0.1-experimental.20240606 → 0.0.1-experimental.20240614.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/lib/attio.d.ts +3 -0
- package/lib/attio.d.ts.map +1 -0
- package/lib/attio.js +10 -0
- package/lib/attio.js.map +1 -0
- package/lib/build.d.ts +0 -2
- package/lib/build.d.ts.map +1 -1
- package/lib/build.js +0 -8
- package/lib/build.js.map +1 -1
- package/lib/commands/build.d.ts +0 -1
- package/lib/commands/build.d.ts.map +1 -1
- package/lib/commands/build.js +23 -19
- package/lib/commands/build.js.map +1 -1
- package/lib/commands/dev.d.ts.map +1 -1
- package/lib/commands/dev.js +37 -24
- package/lib/commands/dev.js.map +1 -1
- package/lib/commands/index.d.ts +30 -0
- package/lib/commands/index.d.ts.map +1 -0
- package/lib/commands/{scaffold.js → index.js} +42 -11
- package/lib/commands/index.js.map +1 -0
- package/lib/components/Disclaimer.d.ts +3 -0
- package/lib/components/Disclaimer.d.ts.map +1 -0
- package/lib/components/Disclaimer.js +10 -0
- package/lib/components/Disclaimer.js.map +1 -0
- package/lib/components/InitialInstructions.d.ts +5 -0
- package/lib/components/InitialInstructions.d.ts.map +1 -0
- package/lib/components/InitialInstructions.js +59 -0
- package/lib/components/InitialInstructions.js.map +1 -0
- package/lib/components/Logo.d.ts +3 -0
- package/lib/components/Logo.d.ts.map +1 -0
- package/lib/components/Logo.js +11 -0
- package/lib/components/Logo.js.map +1 -0
- package/lib/components/Select.d.ts +2 -1
- package/lib/components/Select.d.ts.map +1 -1
- package/lib/components/Select.js +2 -2
- package/lib/components/Select.js.map +1 -1
- package/lib/components/{TypeScriptError.d.ts → TypeScriptErrors.d.ts} +1 -1
- package/lib/components/TypeScriptErrors.d.ts.map +1 -0
- package/lib/components/{TypeScriptError.js → TypeScriptErrors.js} +1 -1
- package/lib/components/TypeScriptErrors.js.map +1 -0
- package/lib/hooks/useFullScreen.d.ts.map +1 -1
- package/lib/hooks/useFullScreen.js +5 -5
- package/lib/hooks/useFullScreen.js.map +1 -1
- package/lib/machines/build-machine.d.ts +1694 -32
- package/lib/machines/build-machine.d.ts.map +1 -1
- package/lib/machines/build-machine.js +107 -53
- package/lib/machines/build-machine.js.map +1 -1
- package/lib/machines/build-orchestrator.d.ts +16 -0
- package/lib/machines/build-orchestrator.d.ts.map +1 -0
- package/lib/machines/build-orchestrator.js +2 -0
- package/lib/machines/build-orchestrator.js.map +1 -0
- package/lib/machines/dev-machine.d.ts +2002 -125
- package/lib/machines/dev-machine.d.ts.map +1 -1
- package/lib/machines/dev-machine.js +161 -177
- package/lib/machines/dev-machine.js.map +1 -1
- package/lib/machines/js-machine.d.ts +240 -0
- package/lib/machines/js-machine.d.ts.map +1 -0
- package/lib/machines/js-machine.js +166 -0
- package/lib/machines/js-machine.js.map +1 -0
- package/lib/machines/scaffold-machine.d.ts +76 -46
- package/lib/machines/scaffold-machine.d.ts.map +1 -1
- package/lib/machines/scaffold-machine.js +52 -12
- package/lib/machines/scaffold-machine.js.map +1 -1
- package/lib/machines/ts-machine.d.ts +149 -0
- package/lib/machines/ts-machine.d.ts.map +1 -0
- package/lib/machines/ts-machine.js +103 -0
- package/lib/machines/ts-machine.js.map +1 -0
- package/lib/templates/javascript/eslint.config.js +1 -1
- package/lib/templates/typescript/eslint.config.js +1 -1
- package/lib/templates/typescript/package.json +1 -1
- package/lib/util/upload-bundle.d.ts +61 -1
- package/lib/util/upload-bundle.d.ts.map +1 -1
- package/lib/util/upload-bundle.js +41 -46
- package/lib/util/upload-bundle.js.map +1 -1
- package/package.json +4 -3
- package/lib/cli.d.ts +0 -3
- package/lib/cli.d.ts.map +0 -1
- package/lib/cli.js +0 -5
- package/lib/cli.js.map +0 -1
- package/lib/commands/scaffold.d.ts +0 -10
- package/lib/commands/scaffold.d.ts.map +0 -1
- package/lib/commands/scaffold.js.map +0 -1
- package/lib/components/TypeScriptError.d.ts.map +0 -1
- package/lib/components/TypeScriptError.js.map +0 -1
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
import * as esbuild from "esbuild";
|
|
2
|
+
import { BuildError } from "../build.js";
|
|
3
|
+
import { JavaScriptOrchestrator } from "./build-orchestrator.js";
|
|
4
|
+
export interface Context {
|
|
5
|
+
buildContexts: Array<esbuild.BuildContext>;
|
|
6
|
+
error?: BuildError;
|
|
7
|
+
parentRef: JavaScriptOrchestrator;
|
|
8
|
+
time?: Date;
|
|
9
|
+
write: boolean;
|
|
10
|
+
}
|
|
11
|
+
type Event = {
|
|
12
|
+
type: "Build Contexts Prepared";
|
|
13
|
+
buildContexts: Array<esbuild.BuildContext>;
|
|
14
|
+
} | {
|
|
15
|
+
type: "Change";
|
|
16
|
+
} | {
|
|
17
|
+
type: "Result";
|
|
18
|
+
contents: [string, string];
|
|
19
|
+
error?: never;
|
|
20
|
+
time: Date;
|
|
21
|
+
} | {
|
|
22
|
+
type: "Result";
|
|
23
|
+
contents?: never;
|
|
24
|
+
error: BuildError;
|
|
25
|
+
time: Date;
|
|
26
|
+
} | {
|
|
27
|
+
type: "Log";
|
|
28
|
+
message: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const jsMachine: import("xstate").StateMachine<Context, {
|
|
31
|
+
type: "Build Contexts Prepared";
|
|
32
|
+
buildContexts: Array<esbuild.BuildContext>;
|
|
33
|
+
} | {
|
|
34
|
+
type: "Change";
|
|
35
|
+
} | {
|
|
36
|
+
type: "Result";
|
|
37
|
+
contents: [string, string];
|
|
38
|
+
error?: undefined;
|
|
39
|
+
time: Date;
|
|
40
|
+
} | {
|
|
41
|
+
type: "Result";
|
|
42
|
+
contents?: undefined;
|
|
43
|
+
error: BuildError;
|
|
44
|
+
time: Date;
|
|
45
|
+
} | {
|
|
46
|
+
type: "Log";
|
|
47
|
+
message: string;
|
|
48
|
+
}, {
|
|
49
|
+
[x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
|
|
50
|
+
write: boolean;
|
|
51
|
+
}>, Event, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
|
|
52
|
+
buildContexts: Array<esbuild.BuildContext>;
|
|
53
|
+
write: boolean;
|
|
54
|
+
}>, Event, import("xstate").EventObject> | undefined;
|
|
55
|
+
}, import("xstate").Values<{
|
|
56
|
+
prepareBuildContext: {
|
|
57
|
+
src: "prepareBuildContext";
|
|
58
|
+
logic: import("xstate").CallbackActorLogic<Event, {
|
|
59
|
+
write: boolean;
|
|
60
|
+
}>;
|
|
61
|
+
id: string | undefined;
|
|
62
|
+
};
|
|
63
|
+
build: {
|
|
64
|
+
src: "build";
|
|
65
|
+
logic: import("xstate").CallbackActorLogic<Event, {
|
|
66
|
+
buildContexts: Array<esbuild.BuildContext>;
|
|
67
|
+
write: boolean;
|
|
68
|
+
}>;
|
|
69
|
+
id: string | undefined;
|
|
70
|
+
};
|
|
71
|
+
}>, import("xstate").Values<{
|
|
72
|
+
clearError: {
|
|
73
|
+
type: "clearError";
|
|
74
|
+
params: import("xstate").NonReducibleUnknown;
|
|
75
|
+
};
|
|
76
|
+
raiseErrored: {
|
|
77
|
+
type: "raiseErrored";
|
|
78
|
+
params: import("xstate").NonReducibleUnknown;
|
|
79
|
+
};
|
|
80
|
+
raiseSuccess: {
|
|
81
|
+
type: "raiseSuccess";
|
|
82
|
+
params: {
|
|
83
|
+
contents: [string, string];
|
|
84
|
+
time: Date;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
setBuildContexts: {
|
|
88
|
+
type: "setBuildContexts";
|
|
89
|
+
params: {
|
|
90
|
+
buildContexts: Array<esbuild.BuildContext>;
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
setError: {
|
|
94
|
+
type: "setError";
|
|
95
|
+
params: {
|
|
96
|
+
error: BuildError;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
setTime: {
|
|
100
|
+
type: "setTime";
|
|
101
|
+
params: {
|
|
102
|
+
time: Date;
|
|
103
|
+
};
|
|
104
|
+
};
|
|
105
|
+
}>, {
|
|
106
|
+
type: "has errors";
|
|
107
|
+
params: {
|
|
108
|
+
error?: {
|
|
109
|
+
errors: {
|
|
110
|
+
text: string;
|
|
111
|
+
location: {
|
|
112
|
+
length: number;
|
|
113
|
+
column: number;
|
|
114
|
+
file: string;
|
|
115
|
+
line: number;
|
|
116
|
+
lineText: string;
|
|
117
|
+
namespace: string;
|
|
118
|
+
suggestion: string;
|
|
119
|
+
};
|
|
120
|
+
}[];
|
|
121
|
+
warnings: {
|
|
122
|
+
text: string;
|
|
123
|
+
location: {
|
|
124
|
+
length: number;
|
|
125
|
+
column: number;
|
|
126
|
+
file: string;
|
|
127
|
+
line: number;
|
|
128
|
+
lineText: string;
|
|
129
|
+
namespace: string;
|
|
130
|
+
suggestion: string;
|
|
131
|
+
};
|
|
132
|
+
}[];
|
|
133
|
+
} | undefined;
|
|
134
|
+
};
|
|
135
|
+
}, never, "Preparing" | {
|
|
136
|
+
Watching?: "Success" | "Building" | "Errored" | undefined;
|
|
137
|
+
}, string, {
|
|
138
|
+
parentRef: JavaScriptOrchestrator;
|
|
139
|
+
write: boolean;
|
|
140
|
+
}, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
|
|
141
|
+
type: "Build Contexts Prepared";
|
|
142
|
+
buildContexts: Array<esbuild.BuildContext>;
|
|
143
|
+
} | {
|
|
144
|
+
type: "Change";
|
|
145
|
+
} | {
|
|
146
|
+
type: "Result";
|
|
147
|
+
contents: [string, string];
|
|
148
|
+
error?: undefined;
|
|
149
|
+
time: Date;
|
|
150
|
+
} | {
|
|
151
|
+
type: "Result";
|
|
152
|
+
contents?: undefined;
|
|
153
|
+
error: BuildError;
|
|
154
|
+
time: Date;
|
|
155
|
+
} | {
|
|
156
|
+
type: "Log";
|
|
157
|
+
message: string;
|
|
158
|
+
}, import("xstate").Values<{
|
|
159
|
+
prepareBuildContext: {
|
|
160
|
+
src: "prepareBuildContext";
|
|
161
|
+
logic: import("xstate").CallbackActorLogic<Event, {
|
|
162
|
+
write: boolean;
|
|
163
|
+
}>;
|
|
164
|
+
id: string | undefined;
|
|
165
|
+
};
|
|
166
|
+
build: {
|
|
167
|
+
src: "build";
|
|
168
|
+
logic: import("xstate").CallbackActorLogic<Event, {
|
|
169
|
+
buildContexts: Array<esbuild.BuildContext>;
|
|
170
|
+
write: boolean;
|
|
171
|
+
}>;
|
|
172
|
+
id: string | undefined;
|
|
173
|
+
};
|
|
174
|
+
}>, import("xstate").Values<{
|
|
175
|
+
clearError: {
|
|
176
|
+
type: "clearError";
|
|
177
|
+
params: import("xstate").NonReducibleUnknown;
|
|
178
|
+
};
|
|
179
|
+
raiseErrored: {
|
|
180
|
+
type: "raiseErrored";
|
|
181
|
+
params: import("xstate").NonReducibleUnknown;
|
|
182
|
+
};
|
|
183
|
+
raiseSuccess: {
|
|
184
|
+
type: "raiseSuccess";
|
|
185
|
+
params: {
|
|
186
|
+
contents: [string, string];
|
|
187
|
+
time: Date;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
setBuildContexts: {
|
|
191
|
+
type: "setBuildContexts";
|
|
192
|
+
params: {
|
|
193
|
+
buildContexts: Array<esbuild.BuildContext>;
|
|
194
|
+
};
|
|
195
|
+
};
|
|
196
|
+
setError: {
|
|
197
|
+
type: "setError";
|
|
198
|
+
params: {
|
|
199
|
+
error: BuildError;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
setTime: {
|
|
203
|
+
type: "setTime";
|
|
204
|
+
params: {
|
|
205
|
+
time: Date;
|
|
206
|
+
};
|
|
207
|
+
};
|
|
208
|
+
}>, {
|
|
209
|
+
type: "has errors";
|
|
210
|
+
params: {
|
|
211
|
+
error?: {
|
|
212
|
+
errors: {
|
|
213
|
+
text: string;
|
|
214
|
+
location: {
|
|
215
|
+
length: number;
|
|
216
|
+
column: number;
|
|
217
|
+
file: string;
|
|
218
|
+
line: number;
|
|
219
|
+
lineText: string;
|
|
220
|
+
namespace: string;
|
|
221
|
+
suggestion: string;
|
|
222
|
+
};
|
|
223
|
+
}[];
|
|
224
|
+
warnings: {
|
|
225
|
+
text: string;
|
|
226
|
+
location: {
|
|
227
|
+
length: number;
|
|
228
|
+
column: number;
|
|
229
|
+
file: string;
|
|
230
|
+
line: number;
|
|
231
|
+
lineText: string;
|
|
232
|
+
namespace: string;
|
|
233
|
+
suggestion: string;
|
|
234
|
+
};
|
|
235
|
+
}[];
|
|
236
|
+
} | undefined;
|
|
237
|
+
};
|
|
238
|
+
}, never, string, import("xstate").EventObject>>;
|
|
239
|
+
export {};
|
|
240
|
+
//# sourceMappingURL=js-machine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"js-machine.d.ts","sourceRoot":"","sources":["../../src/machines/js-machine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAIlC,OAAO,EAAC,UAAU,EAAiC,MAAM,aAAa,CAAA;AAKtE,OAAO,EAAC,sBAAsB,EAAC,MAAM,yBAAyB,CAAA;AAG9D,MAAM,WAAW,OAAO;IACpB,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;IAC1C,KAAK,CAAC,EAAE,UAAU,CAAA;IAClB,SAAS,EAAE,sBAAsB,CAAA;IACjC,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,KAAK,EAAE,OAAO,CAAA;CACjB;AAED,KAAK,KAAK,GACJ;IACI,IAAI,EAAE,yBAAyB,CAAA;IAC/B,aAAa,EAAE,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,CAAA;CAC7C,GACD;IAAC,IAAI,EAAE,QAAQ,CAAA;CAAC,GAChB;IAAC,IAAI,EAAE,QAAQ,CAAC;IAAC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAAC,KAAK,CAAC,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,IAAI,CAAA;CAA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;;;;;;;;;;;;;;;;;;;;;;;;gDAmFvC,CAAA"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import * as esbuild from "esbuild";
|
|
2
|
+
import path from "path";
|
|
3
|
+
import { assign, setup, fromCallback, sendTo } from "xstate";
|
|
4
|
+
import { ROUTES, errorSchema, getAppDir } from "../build.js";
|
|
5
|
+
import { createClientBuildConfig } from "../build/client/create-client-build-config.js";
|
|
6
|
+
import { generateClientEntry } from "../build/client/generate-client-entry.js";
|
|
7
|
+
import { createServerBuildConfig } from "../build/server/create-server-build-config.js";
|
|
8
|
+
import { generateServerEntry } from "../build/server/generate-server-entry.js";
|
|
9
|
+
export const jsMachine = setup({
|
|
10
|
+
types: {
|
|
11
|
+
context: {},
|
|
12
|
+
events: {},
|
|
13
|
+
input: {},
|
|
14
|
+
},
|
|
15
|
+
guards: {
|
|
16
|
+
"has errors": (_, params) => Boolean(params.error),
|
|
17
|
+
},
|
|
18
|
+
actors: {
|
|
19
|
+
prepareBuildContext: fromCallback(({ sendBack, input: { write } }) => {
|
|
20
|
+
let buildContexts;
|
|
21
|
+
const prepare = async () => {
|
|
22
|
+
const appDir = getAppDir();
|
|
23
|
+
const log = (message) => {
|
|
24
|
+
sendBack({ type: "Log", message });
|
|
25
|
+
};
|
|
26
|
+
buildContexts = (await Promise.all([
|
|
27
|
+
generateClientEntry({ appDir, routes: ROUTES, log }).then(async (contents) => await esbuild.context({
|
|
28
|
+
...createClientBuildConfig({ contents, appDir }),
|
|
29
|
+
write,
|
|
30
|
+
outfile: path.resolve("dist", "index.js"),
|
|
31
|
+
})),
|
|
32
|
+
generateServerEntry({ appDir, log }).then(async (contents) => await esbuild.context({
|
|
33
|
+
...createServerBuildConfig(contents),
|
|
34
|
+
write,
|
|
35
|
+
outfile: path.resolve("dist", "server.js"),
|
|
36
|
+
})),
|
|
37
|
+
])).flat();
|
|
38
|
+
sendBack({
|
|
39
|
+
type: "Build Contexts Prepared",
|
|
40
|
+
buildContexts,
|
|
41
|
+
});
|
|
42
|
+
};
|
|
43
|
+
prepare();
|
|
44
|
+
return async () => {
|
|
45
|
+
if (!buildContexts)
|
|
46
|
+
return;
|
|
47
|
+
await Promise.all(buildContexts.map(async (context) => context.dispose()));
|
|
48
|
+
};
|
|
49
|
+
}),
|
|
50
|
+
build: fromCallback(({ sendBack, input }) => {
|
|
51
|
+
const { buildContexts, write } = input;
|
|
52
|
+
const build = async () => {
|
|
53
|
+
try {
|
|
54
|
+
const results = await Promise.all(buildContexts.map(async (buildContext) => buildContext.rebuild()));
|
|
55
|
+
sendBack({
|
|
56
|
+
type: "Result",
|
|
57
|
+
contents: write
|
|
58
|
+
? ["", ""]
|
|
59
|
+
: results.map((result) => result.outputFiles[0].text),
|
|
60
|
+
time: new Date(),
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
catch (e) {
|
|
64
|
+
sendBack({
|
|
65
|
+
type: "Result",
|
|
66
|
+
error: errorSchema.parse(e),
|
|
67
|
+
time: new Date(),
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
build();
|
|
72
|
+
}),
|
|
73
|
+
},
|
|
74
|
+
actions: {
|
|
75
|
+
clearError: assign({
|
|
76
|
+
error: () => undefined,
|
|
77
|
+
}),
|
|
78
|
+
raiseErrored: sendTo(({ context }) => context.parentRef, { type: "JavaScript Error" }),
|
|
79
|
+
raiseSuccess: sendTo(({ context }, _params) => context.parentRef, (_, params) => ({
|
|
80
|
+
type: "JavaScript Success",
|
|
81
|
+
contents: params.contents,
|
|
82
|
+
time: params.time,
|
|
83
|
+
})),
|
|
84
|
+
setBuildContexts: assign({
|
|
85
|
+
buildContexts: (_, params) => params.buildContexts,
|
|
86
|
+
}),
|
|
87
|
+
setError: assign({
|
|
88
|
+
error: (_, params) => params.error,
|
|
89
|
+
}),
|
|
90
|
+
setTime: assign({
|
|
91
|
+
time: (_, params) => params.time,
|
|
92
|
+
}),
|
|
93
|
+
},
|
|
94
|
+
}).createMachine({
|
|
95
|
+
id: "JavaScript Machine",
|
|
96
|
+
initial: "Preparing",
|
|
97
|
+
context: ({ input }) => ({
|
|
98
|
+
...input,
|
|
99
|
+
buildContexts: [],
|
|
100
|
+
}),
|
|
101
|
+
states: {
|
|
102
|
+
Preparing: {
|
|
103
|
+
on: {
|
|
104
|
+
"Build Contexts Prepared": {
|
|
105
|
+
target: "Watching",
|
|
106
|
+
actions: {
|
|
107
|
+
type: "setBuildContexts",
|
|
108
|
+
params: ({ event }) => event,
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
},
|
|
113
|
+
Watching: {
|
|
114
|
+
states: {
|
|
115
|
+
Success: {},
|
|
116
|
+
Building: {
|
|
117
|
+
on: {
|
|
118
|
+
Result: [
|
|
119
|
+
{
|
|
120
|
+
target: "Errored",
|
|
121
|
+
guard: {
|
|
122
|
+
type: "has errors",
|
|
123
|
+
params: ({ event }) => event,
|
|
124
|
+
},
|
|
125
|
+
actions: [
|
|
126
|
+
{
|
|
127
|
+
type: "setError",
|
|
128
|
+
params: ({ event }) => ({ error: event.error }),
|
|
129
|
+
},
|
|
130
|
+
"raiseErrored",
|
|
131
|
+
],
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
target: "Success",
|
|
135
|
+
actions: [
|
|
136
|
+
{ type: "setTime", params: ({ event }) => event },
|
|
137
|
+
{
|
|
138
|
+
type: "raiseSuccess",
|
|
139
|
+
params: ({ event }) => ({
|
|
140
|
+
contents: event.contents,
|
|
141
|
+
time: event.time,
|
|
142
|
+
}),
|
|
143
|
+
},
|
|
144
|
+
],
|
|
145
|
+
},
|
|
146
|
+
],
|
|
147
|
+
},
|
|
148
|
+
invoke: {
|
|
149
|
+
src: "build",
|
|
150
|
+
input: ({ context }) => context,
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
Errored: {},
|
|
154
|
+
},
|
|
155
|
+
initial: "Building",
|
|
156
|
+
on: {
|
|
157
|
+
Change: ".Building",
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
},
|
|
161
|
+
invoke: {
|
|
162
|
+
src: "prepareBuildContext",
|
|
163
|
+
input: ({ context }) => context,
|
|
164
|
+
},
|
|
165
|
+
});
|
|
166
|
+
//# sourceMappingURL=js-machine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"js-machine.js","sourceRoot":"","sources":["../../src/machines/js-machine.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,OAAO,MAAM,SAAS,CAAA;AAClC,OAAO,IAAI,MAAM,MAAM,CAAA;AACvB,OAAO,EAAC,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAC,MAAM,QAAQ,CAAA;AAE1D,OAAO,EAAa,MAAM,EAAE,WAAW,EAAE,SAAS,EAAC,MAAM,aAAa,CAAA;AACtE,OAAO,EAAC,uBAAuB,EAAC,MAAM,+CAA+C,CAAA;AACrF,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAA;AAC5E,OAAO,EAAC,uBAAuB,EAAC,MAAM,+CAA+C,CAAA;AACrF,OAAO,EAAC,mBAAmB,EAAC,MAAM,0CAA0C,CAAA;AAsB5E,MAAM,CAAC,MAAM,SAAS,GAAG,KAAK,CAAC;IAC3B,KAAK,EAAE;QACH,OAAO,EAAE,EAAa;QACtB,MAAM,EAAE,EAAW;QACnB,KAAK,EAAE,EAAyD;KACnE;IACD,MAAM,EAAE;QACJ,YAAY,EAAE,CAAC,CAAC,EAAE,MAA4B,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC;KAC3E;IACD,MAAM,EAAE;QACJ,mBAAmB,EAAE,YAAY,CAA0B,CAAC,EAAC,QAAQ,EAAE,KAAK,EAAE,EAAC,KAAK,EAAC,EAAC,EAAE,EAAE;YACtF,IAAI,aAAsD,CAAA;YAC1D,MAAM,OAAO,GAAG,KAAK,IAAI,EAAE;gBACvB,MAAM,MAAM,GAAG,SAAS,EAAE,CAAA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AC,EAAE,EAAE,CAAC,KAAK;iCAC7B;gCACD,OAAO,EAAE;oCACL;wCACI,IAAI,EAAE,UAAU;wCAChB,MAAM,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC,EAAC,KAAK,EAAE,KAAK,CAAC,KAAM,EAAC,CAAC;qCAC/C;oCACD,cAAc;iCACjB;6BACJ;4BACD;gCACI,MAAM,EAAE,SAAS;gCACjB,OAAO,EAAE;oCACL,EAAC,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,KAAK,EAAC;oCAC7C;wCACI,IAAI,EAAE,cAAc;wCACpB,MAAM,EAAE,CAAC,EAAC,KAAK,EAAC,EAAE,EAAE,CAAC,CAAC;4CAElB,QAAQ,EAAE,KAAK,CAAC,QAAS;4CACzB,IAAI,EAAE,KAAK,CAAC,IAAI;yCACnB,CAAC;qCACL;iCACJ;6BACJ;yBACJ;qBACJ;oBAED,MAAM,EAAE;wBACJ,GAAG,EAAE,OAAO;wBACZ,KAAK,EAAE,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE,CAAC,OAAO;qBAChC;iBACJ;gBAED,OAAO,EAAE,EAAE;aACd;YAED,OAAO,EAAE,UAAU;YAEnB,EAAE,EAAE;gBACA,MAAM,EAAE,WAAW;aACtB;SACJ;KACJ;IAED,MAAM,EAAE;QACJ,GAAG,EAAE,qBAAqB;QAC1B,KAAK,EAAE,CAAC,EAAC,OAAO,EAAC,EAAE,EAAE,CAAC,OAAO;KAChC;CACJ,CAAC,CAAA"}
|
|
@@ -34,7 +34,7 @@ interface Context {
|
|
|
34
34
|
language?: Language;
|
|
35
35
|
log: Array<string>;
|
|
36
36
|
name: string;
|
|
37
|
-
outlets
|
|
37
|
+
outlets?: Array<Outlet>;
|
|
38
38
|
packageManager?: PackageManager;
|
|
39
39
|
}
|
|
40
40
|
type Event = {
|
|
@@ -99,7 +99,7 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
99
99
|
} | {
|
|
100
100
|
type: "Valid Name";
|
|
101
101
|
}, {
|
|
102
|
-
[x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<Required<Pick<Context, "name" | "packageManager">>>, Event, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<Required<Pick<Context, "
|
|
102
|
+
[x: string]: import("xstate").ActorRef<import("xstate").CallbackSnapshot<import("xstate").NonReducibleUnknown>, import("xstate").EventObject, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<Required<Pick<Context, "name" | "packageManager">>>, Event, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<Required<Pick<Context, "name" | "language" | "packageManager">>>, Event, import("xstate").EventObject> | import("xstate").ActorRef<import("xstate").CallbackSnapshot<{
|
|
103
103
|
name: string;
|
|
104
104
|
}>, Event, import("xstate").EventObject> | undefined;
|
|
105
105
|
}, import("xstate").Values<{
|
|
@@ -110,7 +110,7 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
110
110
|
};
|
|
111
111
|
createProject: {
|
|
112
112
|
src: "createProject";
|
|
113
|
-
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "
|
|
113
|
+
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "name" | "language" | "packageManager">>>;
|
|
114
114
|
id: string | undefined;
|
|
115
115
|
};
|
|
116
116
|
detectPackageManagers: {
|
|
@@ -126,26 +126,14 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
126
126
|
id: string | undefined;
|
|
127
127
|
};
|
|
128
128
|
}>, import("xstate").Values<{
|
|
129
|
-
setError: {
|
|
130
|
-
type: "setError";
|
|
131
|
-
params: {
|
|
132
|
-
error: string;
|
|
133
|
-
};
|
|
134
|
-
};
|
|
135
|
-
appendToLog: {
|
|
136
|
-
type: "appendToLog";
|
|
137
|
-
params: {
|
|
138
|
-
message: string;
|
|
139
|
-
};
|
|
140
|
-
};
|
|
141
129
|
clearError: {
|
|
142
130
|
type: "clearError";
|
|
143
131
|
params: import("xstate").NonReducibleUnknown;
|
|
144
132
|
};
|
|
145
|
-
|
|
146
|
-
type: "
|
|
133
|
+
setError: {
|
|
134
|
+
type: "setError";
|
|
147
135
|
params: {
|
|
148
|
-
|
|
136
|
+
error: string;
|
|
149
137
|
};
|
|
150
138
|
};
|
|
151
139
|
setAvailablePackageManagers: {
|
|
@@ -184,15 +172,42 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
184
172
|
name: string;
|
|
185
173
|
};
|
|
186
174
|
};
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
175
|
+
appendToLog: {
|
|
176
|
+
type: "appendToLog";
|
|
177
|
+
params: {
|
|
178
|
+
message: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
}>, import("xstate").Values<{
|
|
182
|
+
"have name": {
|
|
183
|
+
type: "have name";
|
|
184
|
+
params: {
|
|
185
|
+
name: string;
|
|
186
|
+
};
|
|
187
|
+
};
|
|
188
|
+
"have language": {
|
|
189
|
+
type: "have language";
|
|
190
|
+
params: {
|
|
191
|
+
language?: "javascript" | "typescript" | undefined;
|
|
192
|
+
};
|
|
193
|
+
};
|
|
194
|
+
"have package manager": {
|
|
195
|
+
type: "have package manager";
|
|
196
|
+
params: {
|
|
197
|
+
availablePackageManagers: Array<PackageManager>;
|
|
198
|
+
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
199
|
+
};
|
|
200
|
+
};
|
|
201
|
+
"have outlets": {
|
|
202
|
+
type: "have outlets";
|
|
203
|
+
params: {
|
|
204
|
+
outlets?: ("tool" | "action")[] | undefined;
|
|
205
|
+
};
|
|
191
206
|
};
|
|
192
|
-
}
|
|
193
|
-
Scaffold?: "
|
|
207
|
+
}>, never, Required<{
|
|
208
|
+
Scaffold?: "Success" | "Building" | "Error" | "Validating Name" | "Do we need language?" | "Ask For Name" | "Do we need name?" | "Ask For Language" | "Detecting Package Managers" | "Do we need package manager?" | "Ask For Package Manager" | "Do we need outlets?" | "Ask For Outlets" | "Creating Project" | undefined;
|
|
194
209
|
Logger?: {} | undefined;
|
|
195
|
-
}>, string, Pick<Context, "name">, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
|
|
210
|
+
}>, string, Pick<Context, "name" | "language" | "outlets" | "packageManager">, import("xstate").NonReducibleUnknown, import("xstate").EventObject, import("xstate").MetaObject, import("xstate").ResolveTypegenMeta<import("xstate").TypegenDisabled, {
|
|
196
211
|
type: "Choose Language";
|
|
197
212
|
language: Language;
|
|
198
213
|
} | {
|
|
@@ -230,7 +245,7 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
230
245
|
};
|
|
231
246
|
createProject: {
|
|
232
247
|
src: "createProject";
|
|
233
|
-
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "
|
|
248
|
+
logic: import("xstate").CallbackActorLogic<Event, Required<Pick<Context, "name" | "language" | "packageManager">>>;
|
|
234
249
|
id: string | undefined;
|
|
235
250
|
};
|
|
236
251
|
detectPackageManagers: {
|
|
@@ -246,26 +261,14 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
246
261
|
id: string | undefined;
|
|
247
262
|
};
|
|
248
263
|
}>, import("xstate").Values<{
|
|
249
|
-
setError: {
|
|
250
|
-
type: "setError";
|
|
251
|
-
params: {
|
|
252
|
-
error: string;
|
|
253
|
-
};
|
|
254
|
-
};
|
|
255
|
-
appendToLog: {
|
|
256
|
-
type: "appendToLog";
|
|
257
|
-
params: {
|
|
258
|
-
message: string;
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
264
|
clearError: {
|
|
262
265
|
type: "clearError";
|
|
263
266
|
params: import("xstate").NonReducibleUnknown;
|
|
264
267
|
};
|
|
265
|
-
|
|
266
|
-
type: "
|
|
268
|
+
setError: {
|
|
269
|
+
type: "setError";
|
|
267
270
|
params: {
|
|
268
|
-
|
|
271
|
+
error: string;
|
|
269
272
|
};
|
|
270
273
|
};
|
|
271
274
|
setAvailablePackageManagers: {
|
|
@@ -304,11 +307,38 @@ export declare const scaffoldMachine: import("xstate").StateMachine<Context, {
|
|
|
304
307
|
name: string;
|
|
305
308
|
};
|
|
306
309
|
};
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
310
|
+
appendToLog: {
|
|
311
|
+
type: "appendToLog";
|
|
312
|
+
params: {
|
|
313
|
+
message: string;
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
}>, import("xstate").Values<{
|
|
317
|
+
"have name": {
|
|
318
|
+
type: "have name";
|
|
319
|
+
params: {
|
|
320
|
+
name: string;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
"have language": {
|
|
324
|
+
type: "have language";
|
|
325
|
+
params: {
|
|
326
|
+
language?: "javascript" | "typescript" | undefined;
|
|
327
|
+
};
|
|
328
|
+
};
|
|
329
|
+
"have package manager": {
|
|
330
|
+
type: "have package manager";
|
|
331
|
+
params: {
|
|
332
|
+
availablePackageManagers: Array<PackageManager>;
|
|
333
|
+
packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
|
|
334
|
+
};
|
|
335
|
+
};
|
|
336
|
+
"have outlets": {
|
|
337
|
+
type: "have outlets";
|
|
338
|
+
params: {
|
|
339
|
+
outlets?: ("tool" | "action")[] | undefined;
|
|
340
|
+
};
|
|
311
341
|
};
|
|
312
|
-
}
|
|
342
|
+
}>, never, string, import("xstate").EventObject>>;
|
|
313
343
|
export {};
|
|
314
344
|
//# sourceMappingURL=scaffold-machine.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold-machine.d.ts","sourceRoot":"","sources":["../../src/machines/scaffold-machine.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;EAGZ,CAAA;AACV,eAAO,MAAM,eAAe;;;;;;;;;;;;EAKlB,CAAA;AACV,eAAO,MAAM,OAAO;;;;;;EAGV,CAAA;AACV,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAC1D,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AACtE,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAEtD,UAAU,OAAO;IACb,wBAAwB,EAAE,KAAK,CAAC,cAAc,CAAC,CAAA;IAC/C,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,QAAQ,CAAA;IACnB,GAAG,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"scaffold-machine.d.ts","sourceRoot":"","sources":["../../src/machines/scaffold-machine.ts"],"names":[],"mappings":"AAcA,eAAO,MAAM,SAAS;;;;;;EAGZ,CAAA;AACV,eAAO,MAAM,eAAe;;;;;;;;;;;;EAKlB,CAAA;AACV,eAAO,MAAM,OAAO;;;;;;EAGV,CAAA;AACV,MAAM,MAAM,QAAQ,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AAC1D,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC,OAAO,CAAC,CAAA;AACtE,MAAM,MAAM,MAAM,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MA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