create-flutterinit 0.1.9 → 0.1.10
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/index.js +23 -5
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
2
|
-
// @bun
|
|
1
|
+
#!/usr/bin/env node
|
|
3
2
|
import { createRequire } from "node:module";
|
|
4
3
|
var __create = Object.create;
|
|
5
4
|
var __getProtoOf = Object.getPrototypeOf;
|
|
@@ -7379,12 +7378,19 @@ function execVisible(command, options) {
|
|
|
7379
7378
|
|
|
7380
7379
|
// src/utils/logger.ts
|
|
7381
7380
|
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
7381
|
+
import process2 from "node:process";
|
|
7382
7382
|
var brand = (str) => import_picocolors.default.bold(import_picocolors.default.blue(str));
|
|
7383
7383
|
var dim = (str) => import_picocolors.default.dim(str);
|
|
7384
7384
|
var accent = (str) => import_picocolors.default.cyan(str);
|
|
7385
7385
|
var warn = (str) => import_picocolors.default.yellow(str);
|
|
7386
7386
|
var error = (str) => import_picocolors.default.red(str);
|
|
7387
|
-
|
|
7387
|
+
function isUnicodeSupported2() {
|
|
7388
|
+
if (process2.platform !== "win32") {
|
|
7389
|
+
return process2.env.TERM !== "linux";
|
|
7390
|
+
}
|
|
7391
|
+
return Boolean(process2.env.WT_SESSION) || Boolean(process2.env.TERMINUS_SUBLIME) || process2.env.ConEmuTask === "{cmd::Cmder}" || process2.env.TERM_PROGRAM === "Terminus-Sublime" || process2.env.TERM_PROGRAM === "vscode" || process2.env.TERM === "xterm-256color" || process2.env.TERM === "alacritty" || process2.env.TERMINAL_EMULATOR === "JetBrains-JediTerm";
|
|
7392
|
+
}
|
|
7393
|
+
var BANNER_UNICODE = `
|
|
7388
7394
|
${brand(" ███████╗██╗ ██╗ ██╗████████╗████████╗███████╗██████╗ ██╗███╗ ██╗██╗████████╗")}
|
|
7389
7395
|
${brand(" ██╔════╝██║ ██║ ██║╚══██╔══╝╚══██╔══╝██╔════╝██╔══██╗ ██║████╗ ██║██║╚══██╔══╝")}
|
|
7390
7396
|
${brand(" █████╗ ██║ ██║ ██║ ██║ ██║ █████╗ ██████╔╝ ██║██╔██╗ ██║██║ ██║ ")}
|
|
@@ -7396,12 +7402,24 @@ ${brand(" ╚═╝ ╚══════╝ ╚═════╝ ╚
|
|
|
7396
7402
|
${dim("─────────────────────────────────────────────────────────────")}
|
|
7397
7403
|
${dim("v0.1.0")} ${import_picocolors.default.bold("·")} ${accent("flutterinit.com")} ${import_picocolors.default.bold("·")} ${dim("by Arjun Mahar")}
|
|
7398
7404
|
`;
|
|
7405
|
+
var BANNER_ASCII = `
|
|
7406
|
+
${brand(" ####### ## ## ## ######## ######## ####### ###### ## ### ## ## ########")}
|
|
7407
|
+
${brand(" ## ## ## ## ## ## ## ## ## ## #### ## ## ## ")}
|
|
7408
|
+
${brand(" ##### ## ## ## ## ## ##### ###### ## ## ## ## ## ## ")}
|
|
7409
|
+
${brand(" ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ")}
|
|
7410
|
+
${brand(" ## ####### ###### ## ## ####### ## ## ## ## #### ## ## ")}
|
|
7411
|
+
|
|
7412
|
+
${dim("Scaffold production-ready Flutter projects from your terminal")}
|
|
7413
|
+
${dim("-------------------------------------------------------------")}
|
|
7414
|
+
${dim("v0.1.0")} ${import_picocolors.default.bold("-")} ${accent("flutterinit.com")} ${import_picocolors.default.bold("-")} ${dim("by Arjun Mahar")}
|
|
7415
|
+
`;
|
|
7399
7416
|
function printBanner() {
|
|
7400
|
-
console.log(
|
|
7417
|
+
console.log(isUnicodeSupported2() ? BANNER_UNICODE : BANNER_ASCII);
|
|
7401
7418
|
}
|
|
7402
7419
|
function printStep(title, detail) {
|
|
7420
|
+
const bullet = isUnicodeSupported2() ? "◆" : ">";
|
|
7403
7421
|
console.log();
|
|
7404
|
-
console.log(` ${brand(
|
|
7422
|
+
console.log(` ${brand(bullet)} ${import_picocolors.default.bold(title)}`);
|
|
7405
7423
|
console.log(` ${dim(detail)}`);
|
|
7406
7424
|
console.log();
|
|
7407
7425
|
}
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-flutterinit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.10",
|
|
4
4
|
"description": "Scaffold production-ready Flutter projects from your terminal",
|
|
5
5
|
"bin": {
|
|
6
|
-
"create-flutterinit": "
|
|
6
|
+
"create-flutterinit": "dist/index.js"
|
|
7
7
|
},
|
|
8
8
|
"scripts": {
|
|
9
9
|
"dev": "bun run bin/index.ts",
|