@dashai/cli 0.2.2 → 0.2.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/bin.js +15 -1
- package/dist/bin.js.map +1 -1
- package/package.json +1 -1
package/dist/bin.js
CHANGED
|
@@ -910,6 +910,19 @@ function envLocalExample() {
|
|
|
910
910
|
""
|
|
911
911
|
].join("\n");
|
|
912
912
|
}
|
|
913
|
+
function envLocal() {
|
|
914
|
+
return [
|
|
915
|
+
"# Local dev config \u2014 auto-generated by `dashwise module init`.",
|
|
916
|
+
"# Gitignored; safe to edit. `dashwise dev` (the unified loop) auto-",
|
|
917
|
+
"# injects DASHWISE_API_TOKEN from ~/.config/dashwise/auth.json, so",
|
|
918
|
+
"# leave it blank unless you want to override. Change DASHWISE_API_URL",
|
|
919
|
+
"# to point at a non-default backend (e.g. https://api.dashwise.net).",
|
|
920
|
+
"DASHWISE_API_URL=http://localhost:3000",
|
|
921
|
+
"DASHWISE_API_TOKEN=",
|
|
922
|
+
"DASHWISE_INSTALLATION_ID=local",
|
|
923
|
+
""
|
|
924
|
+
].join("\n");
|
|
925
|
+
}
|
|
913
926
|
function appLayoutTsx(opts) {
|
|
914
927
|
return `export const metadata = {
|
|
915
928
|
title: ${JSON.stringify(opts.name)},
|
|
@@ -2375,6 +2388,7 @@ async function moduleInitCommand(slugArg, options) {
|
|
|
2375
2388
|
["next-env.d.ts", nextEnvDts()],
|
|
2376
2389
|
[".gitignore", gitignore()],
|
|
2377
2390
|
[".env.local.example", envLocalExample()],
|
|
2391
|
+
[".env.local", envLocal()],
|
|
2378
2392
|
["README.md", readme(scaffoldOpts)]
|
|
2379
2393
|
];
|
|
2380
2394
|
if (kind === "custom") {
|
|
@@ -4330,7 +4344,7 @@ moduleCmd.command("action-log").description(
|
|
|
4330
4344
|
}
|
|
4331
4345
|
})();
|
|
4332
4346
|
function getVersion() {
|
|
4333
|
-
return "0.
|
|
4347
|
+
return "0.2.3";
|
|
4334
4348
|
}
|
|
4335
4349
|
function parseIntOption(value) {
|
|
4336
4350
|
const n = Number.parseInt(value, 10);
|