create-foldkit-app 0.5.1 → 0.5.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/commands/create.js
CHANGED
|
@@ -27,13 +27,17 @@ const installProjectDependencies = (projectPath, packageManager, example) => Eff
|
|
|
27
27
|
});
|
|
28
28
|
const runDevServerCommand = (packageManager) => Match.value(packageManager).pipe(Match.when('pnpm', () => 'pnpm dev'), Match.when('npm', () => 'npm run dev'), Match.when('yarn', () => 'yarn dev'), Match.exhaustive);
|
|
29
29
|
const displaySuccessMessage = (name, packageManager) => Effect.gen(function* () {
|
|
30
|
-
yield* Console.log(chalk.bold('🎉
|
|
30
|
+
yield* Console.log(chalk.bold('🎉 Your Foldkit app is ready!'));
|
|
31
31
|
yield* Console.log('');
|
|
32
|
-
yield* Console.log('Next steps:');
|
|
33
32
|
yield* Console.log(` ${chalk.cyan('cd')} ${name}`);
|
|
34
33
|
yield* Console.log(` ${chalk.cyan(runDevServerCommand(packageManager))}`);
|
|
35
34
|
yield* Console.log('');
|
|
36
|
-
yield* Console.log('
|
|
35
|
+
yield* Console.log(chalk.dim('Note: Foldkit is a one-person nights-and-weekends project.\n' +
|
|
36
|
+
'If you try it and have thoughts — good, bad, or confused —\n' +
|
|
37
|
+
"I'd genuinely love to hear them."));
|
|
38
|
+
yield* Console.log('');
|
|
39
|
+
yield* Console.log(` Bugs / ideas: ${chalk.cyan('github.com/devinjameson/foldkit/issues')}`);
|
|
40
|
+
yield* Console.log(` Say hi: ${chalk.cyan('x.com/devinjameson')}`);
|
|
37
41
|
});
|
|
38
42
|
export const create = ({ name, example, packageManager }) => Effect.gen(function* () {
|
|
39
43
|
const path = yield* Path.Path;
|
package/package.json
CHANGED
package/templates/base/AGENTS.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
This is a Foldkit app — a framework built on Effect-TS.
|
|
4
4
|
|
|
5
|
-
If `./foldkit` exists, it contains the full Foldkit repository as a git submodule. The `examples/` directory and `packages/typing-game/client/src/` in particular are the best reference for what idiomatic Foldkit apps look like.
|
|
5
|
+
If `./repos/foldkit` exists, it contains the full Foldkit repository as a git submodule. The `examples/` directory and `packages/typing-game/client/src/` in particular are the best reference for what idiomatic Foldkit apps look like.
|
|
6
6
|
|
|
7
|
-
If `./foldkit` does not exist and the line below says `submodule_prompted: false`, offer to run `git submodule add https://github.com/devinjameson/foldkit.git` — this gives you access to the full source, examples, and docs. Whether the user accepts or declines, update the value to `true` so it isn't asked again.
|
|
7
|
+
If `./repos/foldkit` does not exist and the line below says `submodule_prompted: false`, offer to run `git submodule add https://github.com/devinjameson/foldkit.git repos/foldkit` — this gives you access to the full source, examples, and docs. Whether the user accepts or declines, update the value to `true` so it isn't asked again.
|
|
8
8
|
|
|
9
9
|
submodule_prompted: false
|
|
10
10
|
|
package/templates/base/ignore
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
repos/
|