@solid-cli/utils
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -1,46 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/cmd-ts/index.ts | ||
var cmd_ts_exports = {}; | ||
__export(cmd_ts_exports, { | ||
oneOf: () => oneOf | ||
}); | ||
module.exports = __toCommonJS(cmd_ts_exports); | ||
// src/cmd-ts/oneOf.ts | ||
var import_util = require("util"); | ||
function oneOf(literals, case_sensitive = false) { | ||
const examples = literals.map((x) => (0, import_util.inspect)(x)).join(", "); | ||
return { | ||
async from(str) { | ||
const value = literals.find((x) => case_sensitive ? x === str : x.toLowerCase() === str.toLowerCase()); | ||
if (!value) { | ||
throw new Error(`Invalid value '${str}'. Expected one of: ${examples}`); | ||
} | ||
return value; | ||
}, | ||
description: `One of ${examples}` | ||
}; | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
oneOf | ||
}); | ||
"use strict";var f=Object.defineProperty;var a=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var c=(o,e)=>{for(var t in e)f(o,t,{get:e[t],enumerable:!0})},d=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of s(e))!m.call(o,r)&&r!==t&&f(o,r,{get:()=>e[r],enumerable:!(n=a(e,r))||n.enumerable});return o};var l=o=>d(f({},"__esModule",{value:!0}),o);var T={};c(T,{oneOf:()=>u});module.exports=l(T);var p=require("util");function u(o,e=!1){let t=o.map(n=>(0,p.inspect)(n)).join(", ");return{async from(n){let r=o.find(i=>e?i===n:i.toLowerCase()===n.toLowerCase());if(!r)throw new Error(`Invalid value '${n}'. Expected one of: ${t}`);return r},description:`One of ${t}`}}0&&(module.exports={oneOf}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,44 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/cmd-ts/oneOf.ts | ||
var oneOf_exports = {}; | ||
__export(oneOf_exports, { | ||
oneOf: () => oneOf | ||
}); | ||
module.exports = __toCommonJS(oneOf_exports); | ||
var import_util = require("util"); | ||
function oneOf(literals, case_sensitive = false) { | ||
const examples = literals.map((x) => (0, import_util.inspect)(x)).join(", "); | ||
return { | ||
async from(str) { | ||
const value = literals.find((x) => case_sensitive ? x === str : x.toLowerCase() === str.toLowerCase()); | ||
if (!value) { | ||
throw new Error(`Invalid value '${str}'. Expected one of: ${examples}`); | ||
} | ||
return value; | ||
}, | ||
description: `One of ${examples}` | ||
}; | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
oneOf | ||
}); | ||
"use strict";var i=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var s=Object.getOwnPropertyNames;var c=Object.prototype.hasOwnProperty;var m=(o,e)=>{for(var t in e)i(o,t,{get:e[t],enumerable:!0})},d=(o,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of s(e))!c.call(o,r)&&r!==t&&i(o,r,{get:()=>e[r],enumerable:!(n=p(e,r))||n.enumerable});return o};var l=o=>d(i({},"__esModule",{value:!0}),o);var T={};m(T,{oneOf:()=>u});module.exports=l(T);var f=require("util");function u(o,e=!1){let t=o.map(n=>(0,f.inspect)(n)).join(", ");return{async from(n){let r=o.find(a=>e?a===n:a.toLowerCase()===n.toLowerCase());if(!r)throw new Error(`Invalid value '${n}'. Expected one of: ${t}`);return r},description:`One of ${t}`}}0&&(module.exports={oneOf}); | ||
//# sourceMappingURL=oneOf.js.map |
@@ -1,83 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/config/index.ts | ||
var config_exports = {}; | ||
__export(config_exports, { | ||
PossibleFields: () => PossibleFields, | ||
config: () => config, | ||
getField: () => getField, | ||
readConfig: () => readConfig, | ||
setConfig: () => setConfig, | ||
setField: () => setField, | ||
writeConfig: () => writeConfig | ||
}); | ||
module.exports = __toCommonJS(config_exports); | ||
var import_promises = require("fs/promises"); | ||
// src/paths/index.ts | ||
var import_os = require("os"); | ||
var homedir = () => { | ||
return process.env.XDG_CONFIG_HOME ?? (0, import_os.homedir)(); | ||
}; | ||
// src/config/index.ts | ||
var import_path = require("path"); | ||
var import_smol_toml = require("smol-toml"); | ||
var import_reactivity = require("@solid-cli/reactivity"); | ||
var PossibleFields = ["lang"]; | ||
var defaultConfig = { | ||
lang: Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0] | ||
}; | ||
var configPath = (0, import_path.join)(homedir(), "/solid-cli.config.toml"); | ||
var [config, setConfig] = (0, import_reactivity.createSignal)(defaultConfig); | ||
var readConfig = async () => { | ||
try { | ||
const file = await (0, import_promises.readFile)(configPath, "utf-8"); | ||
setConfig((0, import_smol_toml.parse)(file)); | ||
} catch { | ||
await writeConfig(); | ||
} | ||
}; | ||
var writeConfig = async () => { | ||
await (0, import_promises.writeFile)(configPath, (0, import_smol_toml.stringify)(config())); | ||
}; | ||
var setField = async (field, value) => { | ||
if (!(field in defaultConfig)) { | ||
throw new Error(`Field ${field} does not exist`); | ||
} | ||
setConfig((prev) => ({ ...prev, [field]: value })); | ||
await writeConfig(); | ||
}; | ||
var getField = (field) => { | ||
if (!config()[field] && defaultConfig[field]) | ||
setField(field, defaultConfig[field]); | ||
return config()[field]; | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
PossibleFields, | ||
config, | ||
getField, | ||
readConfig, | ||
setConfig, | ||
setField, | ||
writeConfig | ||
}); | ||
"use strict";var p=Object.defineProperty;var y=Object.getOwnPropertyDescriptor;var w=Object.getOwnPropertyNames;var h=Object.prototype.hasOwnProperty;var C=(t,o)=>{for(var r in o)p(t,r,{get:o[r],enumerable:!0})},P=(t,o,r,d)=>{if(o&&typeof o=="object"||typeof o=="function")for(let e of w(o))!h.call(t,e)&&e!==r&&p(t,e,{get:()=>o[e],enumerable:!(d=y(o,e))||d.enumerable});return t};var E=t=>P(p({},"__esModule",{value:!0}),t);var b={};C(b,{PossibleFields:()=>M,config:()=>i,getField:()=>_,readConfig:()=>O,setConfig:()=>m,setField:()=>u,writeConfig:()=>l});module.exports=E(b);var s=require("fs/promises");var c=require("os"),f=()=>process.env.XDG_CONFIG_HOME??(0,c.homedir)();var g=require("path"),a=require("smol-toml"),x=require("@solid-cli/reactivity"),M=["lang"],n={lang:Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0]},F=(0,g.join)(f(),"/solid-cli.config.toml"),[i,m]=(0,x.createSignal)(n),O=async()=>{try{let t=await(0,s.readFile)(F,"utf-8");m((0,a.parse)(t))}catch{await l()}},l=async()=>{await(0,s.writeFile)(F,(0,a.stringify)(i()))},u=async(t,o)=>{if(!(t in n))throw new Error(`Field ${t} does not exist`);m(r=>({...r,[t]:o})),await l()},_=t=>(!i()[t]&&n[t]&&u(t,n[t]),i()[t]);0&&(module.exports={PossibleFields,config,getField,readConfig,setConfig,setField,writeConfig}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,109 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/fs/index.ts | ||
var fs_exports = {}; | ||
__export(fs_exports, { | ||
insertAfter: () => insertAfter, | ||
insertAtBeginning: () => insertAtBeginning, | ||
insertAtEnd: () => insertAtEnd, | ||
insertBefore: () => insertBefore, | ||
readFile: () => readFile, | ||
readFileToString: () => readFileToString, | ||
replaceString: () => replaceString, | ||
writeChecked: () => writeChecked, | ||
writeFile: () => writeFile | ||
}); | ||
module.exports = __toCommonJS(fs_exports); | ||
var import_promises = require("fs/promises"); | ||
// src/updates/index.ts | ||
var import_execa = require("execa"); | ||
var import_detect_package_manager = require("detect-package-manager"); | ||
var UPDATESQUEUE = globalThis.UPDATESQUEUE ?? []; | ||
globalThis.UPDATESQUEUE = UPDATESQUEUE; | ||
var queueUpdate = (update) => { | ||
UPDATESQUEUE.push(update); | ||
}; | ||
var unqueueUpdate = (name, type) => { | ||
const index = UPDATESQUEUE.findIndex((u) => u.name === name && u.type === type); | ||
if (index === -1) | ||
return; | ||
UPDATESQUEUE.splice(index, 1); | ||
}; | ||
var readQueued = (name) => { | ||
return UPDATESQUEUE.find((u) => u.name === name); | ||
}; | ||
var readQueuedFile = (name) => { | ||
const queued = readQueued(name); | ||
if (!queued || queued.type !== "file") | ||
return null; | ||
return queued; | ||
}; | ||
// src/fs/index.ts | ||
var writeFile = (path, data, checked = false) => { | ||
unqueueUpdate(path, "file"); | ||
queueUpdate({ type: "file", name: path, contents: data, checked }); | ||
}; | ||
var readFile = async (path) => { | ||
const queued = readQueuedFile(path); | ||
if (queued) | ||
return queued.contents; | ||
return await (0, import_promises.readFile)(path); | ||
}; | ||
var readFileToString = async (path) => { | ||
return (await readFile(path)).toString(); | ||
}; | ||
var writeChecked = async (path, contents) => { | ||
unqueueUpdate(path, "file"); | ||
queueUpdate({ type: "file", name: path, contents, checked: true }); | ||
}; | ||
var insertAtBeginning = async (path, text) => { | ||
const contents = await readFileToString(path); | ||
writeFile(path, text + contents); | ||
}; | ||
var insertAtEnd = async (path, text) => { | ||
const contents = await readFileToString(path); | ||
writeFile(path, contents + text); | ||
}; | ||
var replaceString = async (path, search, replace) => { | ||
let contents = await readFileToString(path); | ||
contents = contents.replace(search, replace); | ||
writeFile(path, contents); | ||
}; | ||
var insertBefore = async (path, search, text) => { | ||
await replaceString(path, search, text + search); | ||
}; | ||
var insertAfter = async (path, search, text) => { | ||
await replaceString(path, search, search + text); | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
insertAfter, | ||
insertAtBeginning, | ||
insertAtEnd, | ||
insertBefore, | ||
readFile, | ||
readFileToString, | ||
replaceString, | ||
writeChecked, | ||
writeFile | ||
}); | ||
"use strict";var p=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var U=Object.getOwnPropertyNames;var y=Object.prototype.hasOwnProperty;var x=(e,t)=>{for(var n in t)p(e,n,{get:t[n],enumerable:!0})},w=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of U(t))!y.call(e,s)&&s!==n&&p(e,s,{get:()=>t[s],enumerable:!(a=f(t,s))||a.enumerable});return e};var k=e=>w(p({},"__esModule",{value:!0}),e);var A={};x(A,{insertAfter:()=>q,insertAtBeginning:()=>S,insertAtEnd:()=>C,insertBefore:()=>h,readFile:()=>u,readFileToString:()=>o,replaceString:()=>l,writeChecked:()=>Q,writeFile:()=>i});module.exports=k(A);var g=require("fs/promises");var E=require("execa"),F=require("detect-package-manager"),r=globalThis.UPDATESQUEUE??[];globalThis.UPDATESQUEUE=r;var c=e=>{r.push(e)},d=(e,t)=>{let n=r.findIndex(a=>a.name===e&&a.type===t);n!==-1&&r.splice(n,1)},P=e=>r.find(t=>t.name===e),m=e=>{let t=P(e);return!t||t.type!=="file"?null:t};var i=(e,t,n=!1)=>{d(e,"file"),c({type:"file",name:e,contents:t,checked:n})},u=async e=>{let t=m(e);return t?t.contents:await(0,g.readFile)(e)},o=async e=>(await u(e)).toString(),Q=async(e,t)=>{d(e,"file"),c({type:"file",name:e,contents:t,checked:!0})},S=async(e,t)=>{let n=await o(e);i(e,t+n)},C=async(e,t)=>{let n=await o(e);i(e,n+t)},l=async(e,t,n)=>{let a=await o(e);a=a.replace(t,n),i(e,a)},h=async(e,t,n)=>{await l(e,t,n+t)},q=async(e,t,n)=>{await l(e,t,t+n)};0&&(module.exports={insertAfter,insertAtBeginning,insertAtEnd,insertBefore,readFile,readFileToString,replaceString,writeChecked,writeFile}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,578 +0,6 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/index.ts | ||
var src_exports = {}; | ||
__export(src_exports, { | ||
PossibleFields: () => PossibleFields, | ||
config: () => config, | ||
createApi: () => createApi, | ||
createData: () => createData, | ||
createRoute: () => createRoute, | ||
getField: () => getField, | ||
isSolidStart: () => isSolidStart, | ||
locale: () => locale, | ||
oneOf: () => oneOf, | ||
openInBrowser: () => openInBrowser, | ||
readConfig: () => readConfig, | ||
setConfig: () => setConfig, | ||
setField: () => setField, | ||
setLocale: () => setLocale, | ||
t: () => t, | ||
validatedLocale: () => validatedLocale, | ||
writeConfig: () => writeConfig | ||
}); | ||
module.exports = __toCommonJS(src_exports); | ||
// src/translations/translations.ts | ||
var import_reactivity2 = require("@solid-cli/reactivity"); | ||
// src/translations/types.ts | ||
var SupportedLanguages = ["en", "fr", "es", "de", "ru", "zh", "ja", "ko"]; | ||
// src/translations/translations.ts | ||
var import_reactivity3 = require("@solid-cli/reactivity"); | ||
var import_prompts = require("@clack/prompts"); | ||
// src/config/index.ts | ||
var import_promises = require("fs/promises"); | ||
// src/paths/index.ts | ||
var import_os = require("os"); | ||
var homedir = () => { | ||
return process.env.XDG_CONFIG_HOME ?? (0, import_os.homedir)(); | ||
}; | ||
// src/config/index.ts | ||
var import_path = require("path"); | ||
var import_smol_toml = require("smol-toml"); | ||
var import_reactivity = require("@solid-cli/reactivity"); | ||
var PossibleFields = ["lang"]; | ||
var defaultConfig = { | ||
lang: Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0] | ||
}; | ||
var configPath = (0, import_path.join)(homedir(), "/solid-cli.config.toml"); | ||
var [config, setConfig] = (0, import_reactivity.createSignal)(defaultConfig); | ||
var readConfig = async () => { | ||
try { | ||
const file = await (0, import_promises.readFile)(configPath, "utf-8"); | ||
setConfig((0, import_smol_toml.parse)(file)); | ||
} catch { | ||
await writeConfig(); | ||
} | ||
}; | ||
var writeConfig = async () => { | ||
await (0, import_promises.writeFile)(configPath, (0, import_smol_toml.stringify)(config())); | ||
}; | ||
var setField = async (field, value) => { | ||
if (!(field in defaultConfig)) { | ||
throw new Error(`Field ${field} does not exist`); | ||
} | ||
setConfig((prev) => ({ ...prev, [field]: value })); | ||
await writeConfig(); | ||
}; | ||
var getField = (field) => { | ||
if (!config()[field] && defaultConfig[field]) | ||
setField(field, defaultConfig[field]); | ||
return config()[field]; | ||
}; | ||
// src/translations/translations.ts | ||
var [locale, setLocale] = (0, import_reactivity2.createSignal)(null); | ||
var validatedLocale = (0, import_reactivity2.createMemo)(() => { | ||
const l = locale(); | ||
if (!l) | ||
return "en"; | ||
const supported = !!SupportedLanguages.find((lang) => lang.toLowerCase() === l.toLowerCase()); | ||
if (!supported) { | ||
import_prompts.log.warn(`Unsupported language: ${l}. Defaulting to English.`); | ||
} | ||
return supported ? l : "en"; | ||
}); | ||
(0, import_reactivity2.createEffect)( | ||
(0, import_reactivity3.on)( | ||
validatedLocale, | ||
(l) => { | ||
setConfig({ ...config(), lang: l }); | ||
}, | ||
{ defer: true } | ||
) | ||
); | ||
var TRANSLATIONS = { | ||
AUTOCOMPLETE_SELECTED: { | ||
en: "Selected Packages", | ||
es: "Paquetes seleccionados", | ||
fr: "Forfaits s\xE9lectionn\xE9s", | ||
ja: "\u9078\u629E\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8" | ||
}, | ||
AUTOCOMPLETE_NO_RESULTS: { | ||
en: "No results", | ||
es: "No hay resultados", | ||
fr: "Aucun r\xE9sultat", | ||
ja: "\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093" | ||
}, | ||
SELECT_START_ACTION: { | ||
en: "Select a start action", | ||
es: "Seleccione una acci\xF3n de inicio", | ||
fr: "S\xE9lectionnez une action de d\xE9marrage", | ||
ja: "\u958B\u59CB\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044" | ||
}, | ||
SELECT_ACTION: { | ||
en: "Select an action", | ||
es: "Seleccione una acci\xF3n", | ||
fr: "S\xE9lectionnez une action", | ||
ja: "\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044" | ||
}, | ||
ACTION_ADD: { | ||
en: "Add an integration", | ||
es: "A\xF1adir una integraci\xF3n", | ||
fr: "Ajouter une int\xE9gration", | ||
ja: "\u7D71\u5408\u3092\u8FFD\u52A0\u3059\u308B" | ||
}, | ||
ACTION_NEW: { | ||
en: "Create new project", | ||
es: "Crear nuevo proyecto", | ||
fr: "Cr\xE9er un nouveau projet", | ||
ja: "\u65B0\u3057\u3044\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210\u3059\u308B" | ||
}, | ||
ACTION_START: { | ||
en: "A start specific action", | ||
es: "Una acci\xF3n espec\xEDfica de inicio", | ||
fr: "Une action sp\xE9cifique de d\xE9marrage", | ||
ja: "\u7279\u5B9A\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u958B\u59CB\u3059\u308B" | ||
}, | ||
NEW_VARIATION_DESC: { | ||
en: "The variation to create, for example `bare`", | ||
es: "La variaci\xF3n a crear, por ejemplo `bare`", | ||
fr: "La variante \xE0 cr\xE9er, par exemple `bare`", | ||
ja: "\u4F5C\u6210\u3059\u308B\u30D0\u30EA\u30A8\u30FC\u30B7\u30E7\u30F3\u3001\u305F\u3068\u3048\u3070\u300Cbare\u300D" | ||
}, | ||
NEW_NAME_DESC: { | ||
en: "The name of the folder to create", | ||
es: "El nombre de la carpeta a crear.", | ||
fr: "Le nom du dossier \xE0 cr\xE9er", | ||
ja: "\u4F5C\u6210\u3059\u308B\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u540D\u524D" | ||
}, | ||
IS_START_PROJECT: { | ||
en: "Is this a Solid-Start project?", | ||
es: "\xBFEs este un proyecto de Solid-Start?", | ||
fr: "Est-ce un projet Solid-Start\xA0?", | ||
ja: "\u3053\u308C\u306F\u30BD\u30EA\u30C3\u30C9\u30B9\u30BF\u30FC\u30C8\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u3059\u304B?" | ||
}, | ||
START_MODE: { | ||
en: "Mode", | ||
es: "Modo", | ||
fr: "Mode", | ||
ja: "\u30E2\u30FC\u30C9" | ||
}, | ||
START_MODE_HINT: { | ||
en: "Changes the mode of the solid app (SSR, CSR, SSG)", | ||
es: "Cambia el modo de la aplicaci\xF3n s\xF3lida (SSR, CSR, SSG)", | ||
fr: "Modifie le mode de l'application solide (SSR, CSR, SSG)", | ||
ja: "\u30BD\u30EA\u30C3\u30C9\u30A2\u30D7\u30EA\u306E\u30E2\u30FC\u30C9\u3092\u5909\u66F4\u3057\u307E\u3059\uFF08SSR\u3001CSR\u3001SSG\uFF09" | ||
}, | ||
START_MODE_DESC: { | ||
en: "The rendering mode for solid to build for, and use.", | ||
es: "El modo de renderizado de solid para construir y usar.", | ||
fr: "Le mode de rendu du solid pour lequel construire et utiliser.", | ||
ja: "solid \u304C\u30D3\u30EB\u30C9\u3057\u3066\u4F7F\u7528\u3059\u308B\u30EC\u30F3\u30C0\u30EA\u30F3\u30B0 \u30E2\u30FC\u30C9\u3002" | ||
}, | ||
START_ROUTE: { | ||
en: "Route", | ||
es: "Ruta", | ||
fr: "Itin\xE9raire", | ||
ja: "\u30EB\u30FC\u30C8" | ||
}, | ||
START_ROUTE_HINT: { | ||
en: "Allows you to create a new file system route", | ||
es: "Le permite crear una nueva ruta de sistema de archivos", | ||
fr: "Vous permet de cr\xE9er une nouvelle route de syst\xE8me de fichiers", | ||
ja: "\u65B0\u3057\u3044\u30D5\u30A1\u30A4\u30EB \u30B7\u30B9\u30C6\u30E0 \u30EB\u30FC\u30C8\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059\u3002" | ||
}, | ||
START_ROUTE_DESC: { | ||
en: "The name of `.tsx` file to be generated", | ||
es: "El nombre del archivo `.tsx` que se generar\xE1", | ||
fr: "Le nom du fichier `.tsx` \xE0 g\xE9n\xE9rer", | ||
ja: "\u751F\u6210\u3055\u308C\u308B `.tsx` \u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D" | ||
}, | ||
START_DATA: { | ||
en: "Data File", | ||
es: "Archivo de datos", | ||
fr: "Fichier de donn\xE9es", | ||
ja: "\u30C7\u30FC\u30BF\u30D5\u30A1\u30A4\u30EB" | ||
}, | ||
START_DATA_HINT: { | ||
en: "Allows you to create a new data file within a route", | ||
es: "Le permite crear un nuevo archivo de datos dentro de una ruta", | ||
fr: "Permet de cr\xE9er un nouveau fichier de donn\xE9es au sein d'un itin\xE9raire", | ||
ja: "\u30EB\u30FC\u30C8\u5185\u306B\u65B0\u3057\u3044\u30C7\u30FC\u30BF \u30D5\u30A1\u30A4\u30EB\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059\u3002" | ||
}, | ||
START_DATA_DESC: { | ||
en: "The name of the `.data.ts` file to be generated.", | ||
es: "El nombre del archivo `.data.ts` que se generar\xE1.", | ||
fr: "Le nom du fichier `.data.ts` \xE0 g\xE9n\xE9rer.", | ||
ja: "\u751F\u6210\u3055\u308C\u308B `.data.ts` \u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D\u3002" | ||
}, | ||
START_ADAPTER: { | ||
en: "Adapter", | ||
es: "Adaptador", | ||
fr: "Adaptateur", | ||
ja: "\u30A2\u30C0\u30D7\u30BF" | ||
}, | ||
START_ADAPTER_HINT: { | ||
en: "Allows for setting and updating the adapter used to build a start app", | ||
es: "Permite configurar y actualizar el adaptador utilizado para crear una aplicaci\xF3n de inicio", | ||
fr: "Permet de d\xE9finir et de mettre \xE0 jour l'adaptateur utilis\xE9 pour cr\xE9er une application de d\xE9marrage", | ||
ja: "\u30B9\u30BF\u30FC\u30C8\u30A2\u30D7\u30EA\u306E\u69CB\u7BC9\u306B\u4F7F\u7528\u3055\u308C\u308B\u30A2\u30C0\u30D7\u30BF\u30FC\u306E\u8A2D\u5B9A\u3068\u66F4\u65B0\u304C\u53EF\u80FD" | ||
}, | ||
START_ADAPTER_DISPLAYNAME: { | ||
en: "Adapter name", | ||
es: "Nombre del adaptador", | ||
fr: "Nom de l'adaptateur", | ||
ja: "\u30A2\u30C0\u30D7\u30BF\u30FC\u540D" | ||
}, | ||
START_API: { | ||
en: "API", | ||
es: "API", | ||
fr: "API", | ||
ja: "API" | ||
}, | ||
START_API_HINT: { | ||
en: "Create an API route", | ||
es: "Crear una ruta API", | ||
fr: "Cr\xE9er une route d'API", | ||
ja: "API\u30EB\u30FC\u30C8\u3092\u4F5C\u6210\u3059\u308B" | ||
}, | ||
START_API_DISPLAYNAME: { | ||
en: "API file name", | ||
es: "Nombre de archivo API", | ||
fr: "Nom du fichier API", | ||
ja: "API\u30D5\u30A1\u30A4\u30EB\u540D" | ||
}, | ||
CANCELED: { | ||
en: "Canceled", | ||
es: "Cancelado", | ||
fr: "Annul\xE9", | ||
ja: "\u30AD\u30E3\u30F3\u30BB\u30EB" | ||
}, | ||
CONFIRM_INSTALL: (n) => ({ | ||
en: `Install the following (${n}) packages?`, | ||
es: `Instale lo siguiente (${n}) paquetes?`, | ||
fr: `Installez les \xE9l\xE9ments suivants (${n}) paquets?`, | ||
ja: `\u4EE5\u4E0B\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059 (${n}) \u30D1\u30C3\u30B1\u30FC\u30B8\uFF1F` | ||
}), | ||
NEW_START: { | ||
en: "Which template would you like to use?", | ||
es: "\xBFQu\xE9 plantilla te gustar\xEDa usar?", | ||
fr: "Quel mod\xE8le souhaitez-vous utiliser\xA0?", | ||
ja: "\u3069\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4F7F\u3044\u305F\u3044\u3067\u3059\u304B?" | ||
}, | ||
ADD_DESC: { | ||
en: "Can add and install integrations: `solid add unocss`.", | ||
es: "Puede agregar e instalar integraciones: `solid add unocss`.", | ||
fr: "Peut ajouter et installer des int\xE9grations\xA0: `solid add unocss`.", | ||
ja: "\u7D71\u5408\u3092\u8FFD\u52A0\u304A\u3088\u3073\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3067\u304D\u307E\u3059: `solid add unocss`\u3002" | ||
}, | ||
NEW_DESC: { | ||
en: "Creates a new solid project", | ||
es: "Crea un nuevo proyecto s\xF3lido.", | ||
fr: "Cr\xE9e un nouveau projet solide", | ||
ja: "\u65B0\u3057\u3044\u30BD\u30EA\u30C3\u30C9\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3059" | ||
}, | ||
ADD_PACKAGES: { | ||
en: "Add packages", | ||
es: "Agregar paquetes", | ||
fr: "Ajouter des forfaits", | ||
ja: "\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u8FFD\u52A0" | ||
}, | ||
NOTHING_SELECTED: { | ||
en: "Nothing selected", | ||
es: "Nada seleccionado", | ||
fr: "Rien de s\xE9lectionn\xE9", | ||
ja: "\u4F55\u3082\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093" | ||
}, | ||
YES: { | ||
en: "Yes", | ||
es: "S\xED", | ||
fr: "Oui", | ||
ja: "\u306F\u3044" | ||
}, | ||
NO: { | ||
en: "No", | ||
es: "No", | ||
fr: "Non", | ||
ja: "\u3044\u3044\u3048" | ||
}, | ||
YES_FORCE: { | ||
en: "Yes (force)", | ||
es: "S\xED (fuerza)", | ||
fr: "Oui (forcer)", | ||
ja: "\u306F\u3044\uFF08\u5F37\u5236\uFF09" | ||
}, | ||
PROJECT_CREATED: { | ||
en: "Project successfully created! \u{1F389}", | ||
es: "\xA1Proyecto creado con \xE9xito! \u{1F389}", | ||
fr: "Projet cr\xE9\xE9 avec succ\xE8s! \u{1F389}", | ||
ja: "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F\u3002 \u{1F389}" | ||
}, | ||
CREATING_PROJECT: { | ||
en: "Creating project", | ||
es: "Creando proyecto", | ||
fr: "Cr\xE9ation de projet", | ||
ja: "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4F5C\u6210" | ||
}, | ||
TEMPLATE: { | ||
en: "Template", | ||
es: "Plantilla", | ||
fr: "Mod\xE8le", | ||
ja: "\u30EC\u30F3\u30D7\u30EC\u30FC\u30C8" | ||
}, | ||
GET_STARTED: { | ||
en: "To get started, run:", | ||
es: "Para empezar, ejecuta:", | ||
fr: "Pour commencer, ex\xE9cutez\xA0:", | ||
ja: "\u958B\u59CB\u3059\u308B\u306B\u306F\u3001\u6B21\u3092\u5B9F\u884C\u3057\u307E\u3059\u3002" | ||
}, | ||
PROJECT_NAME: { | ||
en: "Project Name", | ||
es: "Nombre del proyecto", | ||
fr: "nom du projet", | ||
ja: "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D" | ||
}, | ||
LOADING_PRIMITIVES: { | ||
en: "Loading primitives", | ||
es: "Cargando primitivas", | ||
fr: "Chargement des primitives", | ||
ja: "\u30D7\u30EA\u30DF\u30C6\u30A3\u30D6\u306E\u30ED\u30FC\u30C9" | ||
}, | ||
PRIMITIVES_LOADED: { | ||
en: "Primitives loaded", | ||
es: "Primitivos cargados", | ||
fr: "Primitives charg\xE9es", | ||
ja: "\u30D7\u30EA\u30DF\u30C6\u30A3\u30D6\u304C\u30ED\u30FC\u30C9\u3055\u308C\u307E\u3057\u305F" | ||
}, | ||
INSTALLING_VIA: (pm) => ({ | ||
en: `Installing packages via ${pm}`, | ||
es: `Instalaci\xF3n de paquetes a trav\xE9s de ${pm}`, | ||
fr: `Installation de packages via ${pm}`, | ||
ja: `\u7D4C\u7531\u3067\u30D1\u30C3\u30B1\u30FC\u30B8\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3059\u308B ${pm}` | ||
}), | ||
CONFIG_UPDATED: { | ||
en: "Config updated", | ||
es: "Configuraci\xF3n actualizada", | ||
fr: "Configuration mise \xE0 jour", | ||
ja: "\u69CB\u6210\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F" | ||
}, | ||
PACKAGES_INSTALLED: { | ||
en: "Packages installed", | ||
es: "Paquetes instalados", | ||
fr: "Paquets install\xE9s", | ||
ja: "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8" | ||
}, | ||
POST_INSTALL: { | ||
en: "Running post install steps", | ||
es: "Ejecuci\xF3n de pasos posteriores a la instalaci\xF3n", | ||
fr: "Ex\xE9cution des \xE9tapes de post-installation", | ||
ja: "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5F8C\u306E\u624B\u9806\u306E\u5B9F\u884C" | ||
}, | ||
POST_INSTALL_COMPLETE: { | ||
en: "Post install complete", | ||
es: "Post instalaci\xF3n completa", | ||
fr: "Post-installation termin\xE9e", | ||
ja: "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5F8C\u306E\u5B8C\u4E86" | ||
}, | ||
NO_SUPPORT: (n) => ({ | ||
en: `Can't automatically configure ${n}: we don't support it.`, | ||
es: `No se puede configurar autom\xE1ticamente ${n}: no lo admitimos`, | ||
fr: `Impossible de configurer automatiquement ${n}: nous ne le prenons pas en charge`, | ||
ja: `${n} \u3092\u81EA\u52D5\u7684\u306B\u69CB\u6210\u3067\u304D\u307E\u305B\u3093: \u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093` | ||
}), | ||
OPENING_IN_BROWSER: (s) => ({ | ||
en: `Opening ${s} in browser`, | ||
es: `Abriendo ${s} en el navegador`, | ||
fr: `Ouverture de ${s} dans le navigateur`, | ||
ja: `\u30D6\u30E9\u30A6\u30B6\u3067 ${s} \u3092\u958B\u304F` | ||
}), | ||
OPENED_IN_BROWSER: { | ||
en: "Successfully Opened in Browser", | ||
es: "Abierto con \xE9xito en el navegador", | ||
fr: "Ouvert avec succ\xE8s dans le navigateur", | ||
ja: "\u30D6\u30E9\u30A6\u30B6\u3067\u6B63\u5E38\u306B\u958B\u304D\u307E\u3057\u305F" | ||
} | ||
}; | ||
var t = new Proxy(TRANSLATIONS, { | ||
get(target, p, _receiver) { | ||
const l = validatedLocale(); | ||
let text = target[p]; | ||
if (typeof text === "function") { | ||
return new Proxy(text, { | ||
apply(target2, thisArg, argArray) { | ||
const newT = Reflect.apply(target2, thisArg, argArray); | ||
if (l in newT) { | ||
return newT[l]; | ||
} | ||
return newT["en"]; | ||
} | ||
}); | ||
} | ||
if (l in text) { | ||
return text[l]; | ||
} | ||
return text["en"]; | ||
} | ||
}); | ||
// src/start/index.ts | ||
var import_promises5 = require("fs/promises"); | ||
// src/start/add_api.ts | ||
var import_promises2 = require("fs/promises"); | ||
// src/updates/index.ts | ||
var import_execa = require("execa"); | ||
var import_detect_package_manager = require("detect-package-manager"); | ||
var UPDATESQUEUE = globalThis.UPDATESQUEUE ?? []; | ||
globalThis.UPDATESQUEUE = UPDATESQUEUE; | ||
var queueUpdate = (update) => { | ||
UPDATESQUEUE.push(update); | ||
}; | ||
var unqueueUpdate = (name, type) => { | ||
const index = UPDATESQUEUE.findIndex((u) => u.name === name && u.type === type); | ||
if (index === -1) | ||
return; | ||
UPDATESQUEUE.splice(index, 1); | ||
}; | ||
// src/fs/index.ts | ||
var writeChecked = async (path, contents) => { | ||
unqueueUpdate(path, "file"); | ||
queueUpdate({ type: "file", name: path, contents, checked: true }); | ||
}; | ||
// src/start/add_api.ts | ||
var createApi = async (path, name) => { | ||
const path_parts = path.split("/"); | ||
path_parts.unshift("src", "routes", "api"); | ||
await (0, import_promises2.mkdir)(path_parts.join("/"), { recursive: true }); | ||
path_parts.push(name ? `${name}.ts` : "hello.ts"); | ||
await writeChecked(path_parts.join("/"), ""); | ||
}; | ||
// src/start/add_data.ts | ||
var import_promises3 = require("fs/promises"); | ||
var createData = async (path, name) => { | ||
const path_parts = path.split("/"); | ||
path_parts.unshift("src", "routes"); | ||
await (0, import_promises3.mkdir)(path_parts.join("/"), { recursive: true }); | ||
path_parts.push(name ? `${name}.data.ts` : "Index.data.ts"); | ||
await writeChecked(path_parts.join("/"), ""); | ||
}; | ||
// src/start/add_route.ts | ||
var import_promises4 = require("fs/promises"); | ||
var default_file = `export default function Route() { | ||
"use strict";var g=Object.defineProperty;var b=Object.getOwnPropertyDescriptor;var $=Object.getOwnPropertyNames;var M=Object.prototype.hasOwnProperty;var q=(e,t)=>{for(var a in t)g(e,a,{get:t[a],enumerable:!0})},G=(e,t,a,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of $(t))!M.call(e,n)&&n!==a&&g(e,n,{get:()=>t[n],enumerable:!(r=b(t,n))||r.enumerable});return e};var z=e=>G(g({},"__esModule",{value:!0}),e);var se={};q(se,{PossibleFields:()=>Q,config:()=>s,createApi:()=>X,createData:()=>Z,createRoute:()=>te,getField:()=>W,isSolidStart:()=>ae,locale:()=>R,oneOf:()=>oe,openInBrowser:()=>ne,readConfig:()=>H,setConfig:()=>p,setField:()=>_,setLocale:()=>B,t:()=>Y,validatedLocale:()=>A,writeConfig:()=>S});module.exports=z(se);var i=require("@solid-cli/reactivity");var y=["en","fr","es","de","ru","zh","ja","ko"];var w=require("@solid-cli/reactivity"),I=require("@clack/prompts");var l=require("fs/promises");var T=require("os"),x=()=>process.env.XDG_CONFIG_HOME??(0,T.homedir)();var P=require("path"),u=require("smol-toml"),C=require("@solid-cli/reactivity"),Q=["lang"],d={lang:Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0]},j=(0,P.join)(x(),"/solid-cli.config.toml"),[s,p]=(0,C.createSignal)(d),H=async()=>{try{let e=await(0,l.readFile)(j,"utf-8");p((0,u.parse)(e))}catch{await S()}},S=async()=>{await(0,l.writeFile)(j,(0,u.stringify)(s()))},_=async(e,t)=>{if(!(e in d))throw new Error(`Field ${e} does not exist`);p(a=>({...a,[e]:t})),await S()},W=e=>(!s()[e]&&d[e]&&_(e,d[e]),s()[e]);var[R,B]=(0,i.createSignal)(null),A=(0,i.createMemo)(()=>{let e=R();if(!e)return"en";let t=!!y.find(a=>a.toLowerCase()===e.toLowerCase());return t||I.log.warn(`Unsupported language: ${e}. Defaulting to English.`),t?e:"en"});(0,i.createEffect)((0,w.on)(A,e=>{p({...s(),lang:e})},{defer:!0}));var J={AUTOCOMPLETE_SELECTED:{en:"Selected Packages",es:"Paquetes seleccionados",fr:"Forfaits s\xE9lectionn\xE9s",ja:"\u9078\u629E\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8"},AUTOCOMPLETE_NO_RESULTS:{en:"No results",es:"No hay resultados",fr:"Aucun r\xE9sultat",ja:"\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093"},SELECT_START_ACTION:{en:"Select a SolidStart specific action",es:"Seleccione una acci\xF3n espec\xEDfica de SolidStart",fr:"S\xE9lectionnez une action sp\xE9cifique \xE0 SolidStart",ja:"SolidStart \u56FA\u6709\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u307E\u3059"},SELECT_ACTION:{en:"Select an action",es:"Seleccione una acci\xF3n",fr:"S\xE9lectionnez une action",ja:"\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},ACTION_ADD:{en:"Add an integration",es:"A\xF1adir una integraci\xF3n",fr:"Ajouter une int\xE9gration",ja:"\u7D71\u5408\u3092\u8FFD\u52A0\u3059\u308B"},ACTION_NEW:{en:"Create new project",es:"Crear nuevo proyecto",fr:"Cr\xE9er un nouveau projet",ja:"\u65B0\u3057\u3044\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210\u3059\u308B"},ACTION_START:{en:"A start specific action",es:"Una acci\xF3n espec\xEDfica de inicio",fr:"Une action sp\xE9cifique de d\xE9marrage",ja:"\u7279\u5B9A\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u958B\u59CB\u3059\u308B"},NEW_VARIATION_DESC:{en:"The variation to create, for example `bare`",es:"La variaci\xF3n a crear, por ejemplo `bare`",fr:"La variante \xE0 cr\xE9er, par exemple `bare`",ja:"\u4F5C\u6210\u3059\u308B\u30D0\u30EA\u30A8\u30FC\u30B7\u30E7\u30F3\u3001\u305F\u3068\u3048\u3070\u300Cbare\u300D"},NEW_NAME_DESC:{en:"The name of the folder to create",es:"El nombre de la carpeta a crear.",fr:"Le nom du dossier \xE0 cr\xE9er",ja:"\u4F5C\u6210\u3059\u308B\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u540D\u524D"},IS_START_PROJECT:{en:"Is this a Solid-Start project?",es:"\xBFEs este un proyecto de Solid-Start?",fr:"Est-ce un projet Solid-Start\xA0?",ja:"\u3053\u308C\u306F\u30BD\u30EA\u30C3\u30C9\u30B9\u30BF\u30FC\u30C8\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u3059\u304B?"},START_MODE:{en:"Mode",es:"Modo",fr:"Mode",ja:"\u30E2\u30FC\u30C9"},START_MODE_HINT:{en:"Changes the mode of the solid app (SSR, CSR, SSG)",es:"Cambia el modo de la aplicaci\xF3n s\xF3lida (SSR, CSR, SSG)",fr:"Modifie le mode de l'application solide (SSR, CSR, SSG)",ja:"\u30BD\u30EA\u30C3\u30C9\u30A2\u30D7\u30EA\u306E\u30E2\u30FC\u30C9\u3092\u5909\u66F4\u3057\u307E\u3059\uFF08SSR\u3001CSR\u3001SSG\uFF09"},START_MODE_DESC:{en:"The rendering mode for solid to build for, and use.",es:"El modo de renderizado de solid para construir y usar.",fr:"Le mode de rendu du solid pour lequel construire et utiliser.",ja:"solid \u304C\u30D3\u30EB\u30C9\u3057\u3066\u4F7F\u7528\u3059\u308B\u30EC\u30F3\u30C0\u30EA\u30F3\u30B0 \u30E2\u30FC\u30C9\u3002"},START_ROUTE:{en:"Route",es:"Ruta",fr:"Itin\xE9raire",ja:"\u30EB\u30FC\u30C8"},START_ROUTE_HINT:{en:"Allows you to create a new file system route",es:"Le permite crear una nueva ruta de sistema de archivos",fr:"Vous permet de cr\xE9er une nouvelle route de syst\xE8me de fichiers",ja:"\u65B0\u3057\u3044\u30D5\u30A1\u30A4\u30EB \u30B7\u30B9\u30C6\u30E0 \u30EB\u30FC\u30C8\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059\u3002"},START_ROUTE_DESC:{en:"The name of `.tsx` file to be generated",es:"El nombre del archivo `.tsx` que se generar\xE1",fr:"Le nom du fichier `.tsx` \xE0 g\xE9n\xE9rer",ja:"\u751F\u6210\u3055\u308C\u308B `.tsx` \u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D"},START_DATA:{en:"Data File",es:"Archivo de datos",fr:"Fichier de donn\xE9es",ja:"\u30C7\u30FC\u30BF\u30D5\u30A1\u30A4\u30EB"},START_DATA_HINT:{en:"Allows you to create a new data file within a route",es:"Le permite crear un nuevo archivo de datos dentro de una ruta",fr:"Permet de cr\xE9er un nouveau fichier de donn\xE9es au sein d'un itin\xE9raire",ja:"\u30EB\u30FC\u30C8\u5185\u306B\u65B0\u3057\u3044\u30C7\u30FC\u30BF \u30D5\u30A1\u30A4\u30EB\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059\u3002"},START_DATA_DESC:{en:"The name of the `.data.ts` file to be generated.",es:"El nombre del archivo `.data.ts` que se generar\xE1.",fr:"Le nom du fichier `.data.ts` \xE0 g\xE9n\xE9rer.",ja:"\u751F\u6210\u3055\u308C\u308B `.data.ts` \u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D\u3002"},START_ADAPTER:{en:"Adapter",es:"Adaptador",fr:"Adaptateur",ja:"\u30A2\u30C0\u30D7\u30BF"},START_ADAPTER_HINT:{en:"Allows for setting and updating the adapter used to build a start app",es:"Permite configurar y actualizar el adaptador utilizado para crear una aplicaci\xF3n de inicio",fr:"Permet de d\xE9finir et de mettre \xE0 jour l'adaptateur utilis\xE9 pour cr\xE9er une application de d\xE9marrage",ja:"\u30B9\u30BF\u30FC\u30C8\u30A2\u30D7\u30EA\u306E\u69CB\u7BC9\u306B\u4F7F\u7528\u3055\u308C\u308B\u30A2\u30C0\u30D7\u30BF\u30FC\u306E\u8A2D\u5B9A\u3068\u66F4\u65B0\u304C\u53EF\u80FD"},START_ADAPTER_DISPLAYNAME:{en:"Adapter name",es:"Nombre del adaptador",fr:"Nom de l'adaptateur",ja:"\u30A2\u30C0\u30D7\u30BF\u30FC\u540D"},START_API:{en:"API",es:"API",fr:"API",ja:"API"},START_API_HINT:{en:"Create an API route",es:"Crear una ruta API",fr:"Cr\xE9er une route d'API",ja:"API\u30EB\u30FC\u30C8\u3092\u4F5C\u6210\u3059\u308B"},START_API_DISPLAYNAME:{en:"API file name",es:"Nombre de archivo API",fr:"Nom du fichier API",ja:"API\u30D5\u30A1\u30A4\u30EB\u540D"},CANCELED:{en:"Canceled",es:"Cancelado",fr:"Annul\xE9",ja:"\u30AD\u30E3\u30F3\u30BB\u30EB"},CONFIRM_INSTALL:e=>({en:`Install the following (${e}) packages?`,es:`Instale lo siguiente (${e}) paquetes?`,fr:`Installez les \xE9l\xE9ments suivants (${e}) paquets?`,ja:`\u4EE5\u4E0B\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059 (${e}) \u30D1\u30C3\u30B1\u30FC\u30B8\uFF1F`}),NEW_START:{en:"Which template would you like to use?",es:"\xBFQu\xE9 plantilla te gustar\xEDa usar?",fr:"Quel mod\xE8le souhaitez-vous utiliser\xA0?",ja:"\u3069\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4F7F\u3044\u305F\u3044\u3067\u3059\u304B?"},ADD_DESC:{en:"Can add and install integrations: `solid add unocss`.",es:"Puede agregar e instalar integraciones: `solid add unocss`.",fr:"Peut ajouter et installer des int\xE9grations\xA0: `solid add unocss`.",ja:"\u7D71\u5408\u3092\u8FFD\u52A0\u304A\u3088\u3073\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3067\u304D\u307E\u3059: `solid add unocss`\u3002"},NEW_DESC:{en:"Creates a new solid project",es:"Crea un nuevo proyecto s\xF3lido.",fr:"Cr\xE9e un nouveau projet solide",ja:"\u65B0\u3057\u3044\u30BD\u30EA\u30C3\u30C9\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3059"},ADD_PACKAGES:{en:"Add packages",es:"Agregar paquetes",fr:"Ajouter des forfaits",ja:"\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u8FFD\u52A0"},NOTHING_SELECTED:{en:"Nothing selected",es:"Nada seleccionado",fr:"Rien de s\xE9lectionn\xE9",ja:"\u4F55\u3082\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093"},YES:{en:"Yes",es:"S\xED",fr:"Oui",ja:"\u306F\u3044"},NO:{en:"No",es:"No",fr:"Non",ja:"\u3044\u3044\u3048"},YES_FORCE:{en:"Yes (force)",es:"S\xED (fuerza)",fr:"Oui (forcer)",ja:"\u306F\u3044\uFF08\u5F37\u5236\uFF09"},PROJECT_CREATED:{en:"Project successfully created! \u{1F389}",es:"\xA1Proyecto creado con \xE9xito! \u{1F389}",fr:"Projet cr\xE9\xE9 avec succ\xE8s! \u{1F389}",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F\u3002 \u{1F389}"},CREATING_PROJECT:{en:"Creating project",es:"Creando proyecto",fr:"Cr\xE9ation de projet",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4F5C\u6210"},TEMPLATE:{en:"Template",es:"Plantilla",fr:"Mod\xE8le",ja:"\u30EC\u30F3\u30D7\u30EC\u30FC\u30C8"},GET_STARTED:{en:"To get started, run:",es:"Para empezar, ejecuta:",fr:"Pour commencer, ex\xE9cutez\xA0:",ja:"\u958B\u59CB\u3059\u308B\u306B\u306F\u3001\u6B21\u3092\u5B9F\u884C\u3057\u307E\u3059\u3002"},PROJECT_NAME:{en:"Project Name",es:"Nombre del proyecto",fr:"nom du projet",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D"},LOADING_PRIMITIVES:{en:"Loading primitives",es:"Cargando primitivas",fr:"Chargement des primitives",ja:"\u30D7\u30EA\u30DF\u30C6\u30A3\u30D6\u306E\u30ED\u30FC\u30C9"},PRIMITIVES_LOADED:{en:"Primitives loaded",es:"Primitivos cargados",fr:"Primitives charg\xE9es",ja:"\u30D7\u30EA\u30DF\u30C6\u30A3\u30D6\u304C\u30ED\u30FC\u30C9\u3055\u308C\u307E\u3057\u305F"},INSTALLING_VIA:e=>({en:`Installing packages via ${e}`,es:`Instalaci\xF3n de paquetes a trav\xE9s de ${e}`,fr:`Installation de packages via ${e}`,ja:`\u7D4C\u7531\u3067\u30D1\u30C3\u30B1\u30FC\u30B8\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3059\u308B ${e}`}),CONFIG_UPDATED:{en:"Config updated",es:"Configuraci\xF3n actualizada",fr:"Configuration mise \xE0 jour",ja:"\u69CB\u6210\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F"},PACKAGES_INSTALLED:{en:"Packages installed",es:"Paquetes instalados",fr:"Paquets install\xE9s",ja:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8"},POST_INSTALL:{en:"Running post install steps",es:"Ejecuci\xF3n de pasos posteriores a la instalaci\xF3n",fr:"Ex\xE9cution des \xE9tapes de post-installation",ja:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5F8C\u306E\u624B\u9806\u306E\u5B9F\u884C"},POST_INSTALL_COMPLETE:{en:"Post install complete",es:"Post instalaci\xF3n completa",fr:"Post-installation termin\xE9e",ja:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5F8C\u306E\u5B8C\u4E86"},NO_SUPPORT:e=>({en:`Can't automatically configure ${e}: we don't support it.`,es:`No se puede configurar autom\xE1ticamente ${e}: no lo admitimos`,fr:`Impossible de configurer automatiquement ${e}: nous ne le prenons pas en charge`,ja:`${e} \u3092\u81EA\u52D5\u7684\u306B\u69CB\u6210\u3067\u304D\u307E\u305B\u3093: \u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093`}),OPENING_IN_BROWSER:e=>({en:`Opening ${e} in browser`,es:`Abriendo ${e} en el navegador`,fr:`Ouverture de ${e} dans le navigateur`,ja:`\u30D6\u30E9\u30A6\u30B6\u3067 ${e} \u3092\u958B\u304F`}),OPENED_IN_BROWSER:{en:"Successfully Opened in Browser",es:"Abierto con \xE9xito en el navegador",fr:"Ouvert avec succ\xE8s dans le navigateur",ja:"\u30D6\u30E9\u30A6\u30B6\u3067\u6B63\u5E38\u306B\u958B\u304D\u307E\u3057\u305F"}},Y=new Proxy(J,{get(e,t,a){let r=A(),n=e[t];return typeof n=="function"?new Proxy(n,{apply(o,E,F){let m=Reflect.apply(o,E,F);return r in m?m[r]:m.en}}):r in n?n[r]:n.en}});var v=require("fs/promises");var O=require("fs/promises");var V=require("execa"),K=require("detect-package-manager"),f=globalThis.UPDATESQUEUE??[];globalThis.UPDATESQUEUE=f;var h=e=>{f.push(e)},N=(e,t)=>{let a=f.findIndex(r=>r.name===e&&r.type===t);a!==-1&&f.splice(a,1)};var c=async(e,t)=>{N(e,"file"),h({type:"file",name:e,contents:t,checked:!0})};var X=async(e,t)=>{let a=e.split("/");a.unshift("src","routes","api"),await(0,O.mkdir)(a.join("/"),{recursive:!0}),a.push(t?`${t}.ts`:"hello.ts"),await c(a.join("/"),"")};var L=require("fs/promises");var Z=async(e,t)=>{let a=e.split("/");a.unshift("src","routes"),await(0,L.mkdir)(a.join("/"),{recursive:!0}),a.push(t?`${t}.data.ts`:"Index.data.ts"),await c(a.join("/"),"")};var U=require("fs/promises");var ee=`export default function Route() { | ||
return <></>; | ||
} | ||
`; | ||
var createRoute = async (path, name) => { | ||
const path_parts = path.split("/"); | ||
path_parts.unshift("src", "routes"); | ||
await (0, import_promises4.mkdir)(path_parts.join("/"), { recursive: true }); | ||
path_parts.push(name ? `(${name}).tsx` : "index.tsx"); | ||
await writeChecked(path_parts.join("/"), default_file); | ||
}; | ||
// src/start/index.ts | ||
var isSolidStart = async () => { | ||
const packageJsonStr = (await (0, import_promises5.readFile)("./package.json")).toString(); | ||
const packageJson = JSON.parse(packageJsonStr); | ||
const deps = Object.keys(packageJson["dependencies"] ?? {}); | ||
const devDeps = Object.keys(packageJson["devDependencies"] ?? {}); | ||
const allDeps = deps.concat(devDeps); | ||
for (let i = 0; i < allDeps.length; i++) { | ||
const dep = allDeps[i]; | ||
if (dep === "solid-start") | ||
return true; | ||
} | ||
return false; | ||
}; | ||
// src/open/index.ts | ||
var import_execa2 = require("execa"); | ||
var getPlatformSpecificCommand = () => { | ||
const isGitPod = Boolean(process.env.GITPOD_REPO_ROOT); | ||
const platform = isGitPod ? "gitpod" : process.platform; | ||
switch (platform) { | ||
case "android": | ||
case "linux": | ||
return ["xdg-open"]; | ||
case "darwin": | ||
return ["open"]; | ||
case "win32": | ||
return ["cmd", ["/c", "start"]]; | ||
case "gitpod": | ||
return ["/ide/bin/remote-cli/gitpod-code", ["--openExternal"]]; | ||
default: | ||
throw new Error( | ||
`It looks like your platform ("${platform}") isn't supported! | ||
To view Astro's docs, please visit https://docs.astro.build` | ||
); | ||
} | ||
}; | ||
async function openInBrowser(url) { | ||
const [command, args = []] = getPlatformSpecificCommand(); | ||
return (0, import_execa2.execa)(command, [...args, encodeURI(url)]); | ||
} | ||
// src/cmd-ts/oneOf.ts | ||
var import_util = require("util"); | ||
function oneOf(literals, case_sensitive = false) { | ||
const examples = literals.map((x) => (0, import_util.inspect)(x)).join(", "); | ||
return { | ||
async from(str) { | ||
const value = literals.find((x) => case_sensitive ? x === str : x.toLowerCase() === str.toLowerCase()); | ||
if (!value) { | ||
throw new Error(`Invalid value '${str}'. Expected one of: ${examples}`); | ||
} | ||
return value; | ||
}, | ||
description: `One of ${examples}` | ||
}; | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
PossibleFields, | ||
config, | ||
createApi, | ||
createData, | ||
createRoute, | ||
getField, | ||
isSolidStart, | ||
locale, | ||
oneOf, | ||
openInBrowser, | ||
readConfig, | ||
setConfig, | ||
setField, | ||
setLocale, | ||
t, | ||
validatedLocale, | ||
writeConfig | ||
}); | ||
`,te=async(e,t)=>{let a=e.split("/");a.unshift("src","routes"),await(0,U.mkdir)(a.join("/"),{recursive:!0}),a.push(t?`(${t}).tsx`:"index.tsx"),await c(a.join("/"),ee)};var ae=async()=>{let e=(await(0,v.readFile)("./package.json")).toString(),t=JSON.parse(e),a=Object.keys(t.dependencies??{}),r=Object.keys(t.devDependencies??{}),n=a.concat(r);for(let o=0;o<n.length;o++)if(n[o]==="solid-start")return!0;return!1};var D=require("execa"),re=()=>{let t=!!process.env.GITPOD_REPO_ROOT?"gitpod":process.platform;switch(t){case"android":case"linux":return["xdg-open"];case"darwin":return["open"];case"win32":return["cmd",["/c","start"]];case"gitpod":return["/ide/bin/remote-cli/gitpod-code",["--openExternal"]];default:throw new Error(`It looks like your platform ("${t}") isn't supported! | ||
To view Astro's docs, please visit https://docs.astro.build`)}};async function ne(e){let[t,a=[]]=re();return(0,D.execa)(t,[...a,encodeURI(e)])}var k=require("util");function oe(e,t=!1){let a=e.map(r=>(0,k.inspect)(r)).join(", ");return{async from(r){let n=e.find(o=>t?o===r:o.toLowerCase()===r.toLowerCase());if(!n)throw new Error(`Invalid value '${r}'. Expected one of: ${a}`);return n},description:`One of ${a}`}}0&&(module.exports={PossibleFields,config,createApi,createData,createRoute,getField,isSolidStart,locale,oneOf,openInBrowser,readConfig,setConfig,setField,setLocale,t,validatedLocale,writeConfig}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,55 +0,3 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/open/index.ts | ||
var open_exports = {}; | ||
__export(open_exports, { | ||
openInBrowser: () => openInBrowser | ||
}); | ||
module.exports = __toCommonJS(open_exports); | ||
var import_execa = require("execa"); | ||
var getPlatformSpecificCommand = () => { | ||
const isGitPod = Boolean(process.env.GITPOD_REPO_ROOT); | ||
const platform = isGitPod ? "gitpod" : process.platform; | ||
switch (platform) { | ||
case "android": | ||
case "linux": | ||
return ["xdg-open"]; | ||
case "darwin": | ||
return ["open"]; | ||
case "win32": | ||
return ["cmd", ["/c", "start"]]; | ||
case "gitpod": | ||
return ["/ide/bin/remote-cli/gitpod-code", ["--openExternal"]]; | ||
default: | ||
throw new Error( | ||
`It looks like your platform ("${platform}") isn't supported! | ||
To view Astro's docs, please visit https://docs.astro.build` | ||
); | ||
} | ||
}; | ||
async function openInBrowser(url) { | ||
const [command, args = []] = getPlatformSpecificCommand(); | ||
return (0, import_execa.execa)(command, [...args, encodeURI(url)]); | ||
} | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
openInBrowser | ||
}); | ||
"use strict";var s=Object.defineProperty;var c=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var d=Object.prototype.hasOwnProperty;var p=(e,o)=>{for(var r in o)s(e,r,{get:o[r],enumerable:!0})},l=(e,o,r,n)=>{if(o&&typeof o=="object"||typeof o=="function")for(let t of a(o))!d.call(e,t)&&t!==r&&s(e,t,{get:()=>o[t],enumerable:!(n=c(o,t))||n.enumerable});return e};var m=e=>l(s({},"__esModule",{value:!0}),e);var f={};p(f,{openInBrowser:()=>g});module.exports=m(f);var i=require("execa"),u=()=>{let o=!!process.env.GITPOD_REPO_ROOT?"gitpod":process.platform;switch(o){case"android":case"linux":return["xdg-open"];case"darwin":return["open"];case"win32":return["cmd",["/c","start"]];case"gitpod":return["/ide/bin/remote-cli/gitpod-code",["--openExternal"]];default:throw new Error(`It looks like your platform ("${o}") isn't supported! | ||
To view Astro's docs, please visit https://docs.astro.build`)}};async function g(e){let[o,r=[]]=u();return(0,i.execa)(o,[...r,encodeURI(e)])}0&&(module.exports={openInBrowser}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,51 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/paths/index.ts | ||
var paths_exports = {}; | ||
__export(paths_exports, { | ||
getRunner: () => getRunner, | ||
homedir: () => homedir, | ||
tmpdir: () => tmpdir | ||
}); | ||
module.exports = __toCommonJS(paths_exports); | ||
var import_os = require("os"); | ||
var homedir = () => { | ||
return process.env.XDG_CONFIG_HOME ?? (0, import_os.homedir)(); | ||
}; | ||
var tmpdir = () => { | ||
return process.env.XDG_CACHE_HOME ?? (0, import_os.tmpdir)(); | ||
}; | ||
var getRunner = (pM) => { | ||
switch (pM) { | ||
case "npm": | ||
return "npx"; | ||
case "yarn": | ||
return "npx"; | ||
case "pnpm": | ||
return "pnpx"; | ||
} | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
getRunner, | ||
homedir, | ||
tmpdir | ||
}); | ||
"use strict";var p=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var i=Object.prototype.hasOwnProperty;var a=(r,e)=>{for(var t in e)p(r,t,{get:e[t],enumerable:!0})},d=(r,e,t,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of c(e))!i.call(r,n)&&n!==t&&p(r,n,{get:()=>e[n],enumerable:!(s=m(e,n))||s.enumerable});return r};var u=r=>d(p({},"__esModule",{value:!0}),r);var _={};a(_,{getRunner:()=>M,homedir:()=>x,tmpdir:()=>h});module.exports=u(_);var o=require("os"),x=()=>process.env.XDG_CONFIG_HOME??(0,o.homedir)(),h=()=>process.env.XDG_CACHE_HOME??(0,o.tmpdir)(),M=r=>{switch(r){case"npm":return"npx";case"yarn":return"npx";case"pnpm":return"pnpx"}};0&&(module.exports={getRunner,homedir,tmpdir}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,94 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/primitives/index.ts | ||
var primitives_exports = {}; | ||
__export(primitives_exports, { | ||
loadPrimitives: () => loadPrimitives, | ||
primitives: () => primitives, | ||
refetchPrimitives: () => refetchPrimitives, | ||
setPrimitives: () => setPrimitives | ||
}); | ||
module.exports = __toCommonJS(primitives_exports); | ||
// src/paths/index.ts | ||
var import_os = require("os"); | ||
var tmpdir = () => { | ||
return process.env.XDG_CACHE_HOME ?? (0, import_os.tmpdir)(); | ||
}; | ||
// src/primitives/index.ts | ||
var import_reactivity = require("@solid-cli/reactivity"); | ||
var import_promises = require("fs/promises"); | ||
var [primitives, setPrimitives] = (0, import_reactivity.createSignal)([]); | ||
var fetchPrimitives = async () => { | ||
const result = await (await fetch("https://registry.npmjs.com/-/v1/search?text=scope:solid-primitives&size=250.json")).json(); | ||
const primitives2 = result.objects.map((v) => { | ||
const opt = { | ||
label: v.package.name.split("/")[1], | ||
value: v.package.name, | ||
group: "primitives" | ||
}; | ||
return opt; | ||
}); | ||
return primitives2; | ||
}; | ||
var cache = async (primitives2) => { | ||
const tmp = tmpdir(); | ||
const t = /* @__PURE__ */ new Date(); | ||
const cache2 = { | ||
timeCached: t.toUTCString(), | ||
primitives: primitives2 | ||
}; | ||
await (0, import_promises.writeFile)(`${tmp}/primitives.json`, JSON.stringify(cache2)); | ||
}; | ||
var daysSinceEpoch = (seconds) => { | ||
return seconds / (60 * 60 * 24); | ||
}; | ||
var getCached = async () => { | ||
const tmp = tmpdir(); | ||
const cached = JSON.parse((await (0, import_promises.readFile)(`${tmp}/primitives.json`)).toString()); | ||
const timeCached = new Date(Date.parse(cached.timeCached)); | ||
const currentTime = /* @__PURE__ */ new Date(); | ||
if (daysSinceEpoch(currentTime.getTime() - timeCached.getTime()) > 1) { | ||
throw new Error("Stale cache"); | ||
} | ||
return cached.primitives; | ||
}; | ||
var refetchPrimitives = async () => { | ||
const p = await fetchPrimitives(); | ||
setPrimitives(p); | ||
await cache(p); | ||
}; | ||
var loadPrimitives = async () => { | ||
try { | ||
const cached = await getCached(); | ||
setPrimitives(cached); | ||
} catch (e) { | ||
await refetchPrimitives(); | ||
} | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
loadPrimitives, | ||
primitives, | ||
refetchPrimitives, | ||
setPrimitives | ||
}); | ||
"use strict";var o=Object.defineProperty;var d=Object.getOwnPropertyDescriptor;var u=Object.getOwnPropertyNames;var v=Object.prototype.hasOwnProperty;var w=(t,e)=>{for(var i in e)o(t,i,{get:e[i],enumerable:!0})},y=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of u(e))!v.call(t,s)&&s!==i&&o(t,s,{get:()=>e[s],enumerable:!(r=d(e,s))||r.enumerable});return t};var g=t=>y(o({},"__esModule",{value:!0}),t);var j={};w(j,{loadPrimitives:()=>S,primitives:()=>l,refetchPrimitives:()=>h,setPrimitives:()=>p});module.exports=g(j);var c=require("os");var a=()=>process.env.XDG_CACHE_HOME??(0,c.tmpdir)();var m=require("@solid-cli/reactivity"),n=require("fs/promises"),[l,p]=(0,m.createSignal)([]),C=async()=>(await(await fetch("https://registry.npmjs.com/-/v1/search?text=scope:solid-primitives&size=250.json")).json()).objects.map(i=>({label:i.package.name.split("/")[1],value:i.package.name,group:"primitives"})),O=async t=>{let e=a(),r={timeCached:new Date().toUTCString(),primitives:t};await(0,n.writeFile)(`${e}/primitives.json`,JSON.stringify(r))},f=t=>t/(60*60*24),x=async()=>{let t=a(),e=JSON.parse((await(0,n.readFile)(`${t}/primitives.json`)).toString()),i=new Date(Date.parse(e.timeCached));if(f(new Date().getTime()-i.getTime())>1)throw new Error("Stale cache");return e.primitives},h=async()=>{let t=await C();p(t),await O(t)},S=async()=>{try{let t=await x();p(t)}catch{await h()}};0&&(module.exports={loadPrimitives,primitives,refetchPrimitives,setPrimitives}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,61 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/start/add_api.ts | ||
var add_api_exports = {}; | ||
__export(add_api_exports, { | ||
createApi: () => createApi | ||
}); | ||
module.exports = __toCommonJS(add_api_exports); | ||
var import_promises = require("fs/promises"); | ||
// src/updates/index.ts | ||
var import_execa = require("execa"); | ||
var import_detect_package_manager = require("detect-package-manager"); | ||
var UPDATESQUEUE = globalThis.UPDATESQUEUE ?? []; | ||
globalThis.UPDATESQUEUE = UPDATESQUEUE; | ||
var queueUpdate = (update) => { | ||
UPDATESQUEUE.push(update); | ||
}; | ||
var unqueueUpdate = (name, type) => { | ||
const index = UPDATESQUEUE.findIndex((u) => u.name === name && u.type === type); | ||
if (index === -1) | ||
return; | ||
UPDATESQUEUE.splice(index, 1); | ||
}; | ||
// src/fs/index.ts | ||
var writeChecked = async (path, contents) => { | ||
unqueueUpdate(path, "file"); | ||
queueUpdate({ type: "file", name: path, contents, checked: true }); | ||
}; | ||
// src/start/add_api.ts | ||
var createApi = async (path, name) => { | ||
const path_parts = path.split("/"); | ||
path_parts.unshift("src", "routes", "api"); | ||
await (0, import_promises.mkdir)(path_parts.join("/"), { recursive: true }); | ||
path_parts.push(name ? `${name}.ts` : "hello.ts"); | ||
await writeChecked(path_parts.join("/"), ""); | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
createApi | ||
}); | ||
"use strict";var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})},f=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of l(e))!g.call(t,s)&&s!==n&&i(t,s,{get:()=>e[s],enumerable:!(a=m(e,s))||a.enumerable});return t};var U=t=>f(i({},"__esModule",{value:!0}),t);var k={};u(k,{createApi:()=>w});module.exports=U(k);var d=require("fs/promises");var y=require("execa"),x=require("detect-package-manager"),r=globalThis.UPDATESQUEUE??[];globalThis.UPDATESQUEUE=r;var o=t=>{r.push(t)},p=(t,e)=>{let n=r.findIndex(a=>a.name===t&&a.type===e);n!==-1&&r.splice(n,1)};var c=async(t,e)=>{p(t,"file"),o({type:"file",name:t,contents:e,checked:!0})};var w=async(t,e)=>{let n=t.split("/");n.unshift("src","routes","api"),await(0,d.mkdir)(n.join("/"),{recursive:!0}),n.push(e?`${e}.ts`:"hello.ts"),await c(n.join("/"),"")};0&&(module.exports={createApi}); | ||
//# sourceMappingURL=add_api.js.map |
@@ -1,61 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/start/add_data.ts | ||
var add_data_exports = {}; | ||
__export(add_data_exports, { | ||
createData: () => createData | ||
}); | ||
module.exports = __toCommonJS(add_data_exports); | ||
var import_promises = require("fs/promises"); | ||
// src/updates/index.ts | ||
var import_execa = require("execa"); | ||
var import_detect_package_manager = require("detect-package-manager"); | ||
var UPDATESQUEUE = globalThis.UPDATESQUEUE ?? []; | ||
globalThis.UPDATESQUEUE = UPDATESQUEUE; | ||
var queueUpdate = (update) => { | ||
UPDATESQUEUE.push(update); | ||
}; | ||
var unqueueUpdate = (name, type) => { | ||
const index = UPDATESQUEUE.findIndex((u) => u.name === name && u.type === type); | ||
if (index === -1) | ||
return; | ||
UPDATESQUEUE.splice(index, 1); | ||
}; | ||
// src/fs/index.ts | ||
var writeChecked = async (path, contents) => { | ||
unqueueUpdate(path, "file"); | ||
queueUpdate({ type: "file", name: path, contents, checked: true }); | ||
}; | ||
// src/start/add_data.ts | ||
var createData = async (path, name) => { | ||
const path_parts = path.split("/"); | ||
path_parts.unshift("src", "routes"); | ||
await (0, import_promises.mkdir)(path_parts.join("/"), { recursive: true }); | ||
path_parts.push(name ? `${name}.data.ts` : "Index.data.ts"); | ||
await writeChecked(path_parts.join("/"), ""); | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
createData | ||
}); | ||
"use strict";var i=Object.defineProperty;var m=Object.getOwnPropertyDescriptor;var l=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var u=(t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})},f=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of l(e))!g.call(t,s)&&s!==n&&i(t,s,{get:()=>e[s],enumerable:!(a=m(e,s))||a.enumerable});return t};var U=t=>f(i({},"__esModule",{value:!0}),t);var k={};u(k,{createData:()=>w});module.exports=U(k);var d=require("fs/promises");var y=require("execa"),x=require("detect-package-manager"),r=globalThis.UPDATESQUEUE??[];globalThis.UPDATESQUEUE=r;var o=t=>{r.push(t)},p=(t,e)=>{let n=r.findIndex(a=>a.name===t&&a.type===e);n!==-1&&r.splice(n,1)};var c=async(t,e)=>{p(t,"file"),o({type:"file",name:t,contents:e,checked:!0})};var w=async(t,e)=>{let n=t.split("/");n.unshift("src","routes"),await(0,d.mkdir)(n.join("/"),{recursive:!0}),n.push(e?`${e}.data.ts`:"Index.data.ts"),await c(n.join("/"),"")};0&&(module.exports={createData}); | ||
//# sourceMappingURL=add_data.js.map |
@@ -1,65 +0,5 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/start/add_route.ts | ||
var add_route_exports = {}; | ||
__export(add_route_exports, { | ||
createRoute: () => createRoute | ||
}); | ||
module.exports = __toCommonJS(add_route_exports); | ||
var import_promises = require("fs/promises"); | ||
// src/updates/index.ts | ||
var import_execa = require("execa"); | ||
var import_detect_package_manager = require("detect-package-manager"); | ||
var UPDATESQUEUE = globalThis.UPDATESQUEUE ?? []; | ||
globalThis.UPDATESQUEUE = UPDATESQUEUE; | ||
var queueUpdate = (update) => { | ||
UPDATESQUEUE.push(update); | ||
}; | ||
var unqueueUpdate = (name, type) => { | ||
const index = UPDATESQUEUE.findIndex((u) => u.name === name && u.type === type); | ||
if (index === -1) | ||
return; | ||
UPDATESQUEUE.splice(index, 1); | ||
}; | ||
// src/fs/index.ts | ||
var writeChecked = async (path, contents) => { | ||
unqueueUpdate(path, "file"); | ||
queueUpdate({ type: "file", name: path, contents, checked: true }); | ||
}; | ||
// src/start/add_route.ts | ||
var default_file = `export default function Route() { | ||
"use strict";var i=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var m=Object.getOwnPropertyNames;var u=Object.prototype.hasOwnProperty;var g=(t,e)=>{for(var n in e)i(t,n,{get:e[n],enumerable:!0})},f=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of m(e))!u.call(t,s)&&s!==n&&i(t,s,{get:()=>e[s],enumerable:!(a=l(e,s))||a.enumerable});return t};var U=t=>f(i({},"__esModule",{value:!0}),t);var E={};g(E,{createRoute:()=>k});module.exports=U(E);var d=require("fs/promises");var y=require("execa"),x=require("detect-package-manager"),r=globalThis.UPDATESQUEUE??[];globalThis.UPDATESQUEUE=r;var o=t=>{r.push(t)},p=(t,e)=>{let n=r.findIndex(a=>a.name===t&&a.type===e);n!==-1&&r.splice(n,1)};var c=async(t,e)=>{p(t,"file"),o({type:"file",name:t,contents:e,checked:!0})};var w=`export default function Route() { | ||
return <></>; | ||
} | ||
`; | ||
var createRoute = async (path, name) => { | ||
const path_parts = path.split("/"); | ||
path_parts.unshift("src", "routes"); | ||
await (0, import_promises.mkdir)(path_parts.join("/"), { recursive: true }); | ||
path_parts.push(name ? `(${name}).tsx` : "index.tsx"); | ||
await writeChecked(path_parts.join("/"), default_file); | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
createRoute | ||
}); | ||
`,k=async(t,e)=>{let n=t.split("/");n.unshift("src","routes"),await(0,d.mkdir)(n.join("/"),{recursive:!0}),n.push(e?`(${e}).tsx`:"index.tsx"),await c(n.join("/"),w)};0&&(module.exports={createRoute}); | ||
//# sourceMappingURL=add_route.js.map |
@@ -1,109 +0,5 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/start/index.ts | ||
var start_exports = {}; | ||
__export(start_exports, { | ||
createApi: () => createApi, | ||
createData: () => createData, | ||
createRoute: () => createRoute, | ||
isSolidStart: () => isSolidStart | ||
}); | ||
module.exports = __toCommonJS(start_exports); | ||
var import_promises4 = require("fs/promises"); | ||
// src/start/add_api.ts | ||
var import_promises = require("fs/promises"); | ||
// src/updates/index.ts | ||
var import_execa = require("execa"); | ||
var import_detect_package_manager = require("detect-package-manager"); | ||
var UPDATESQUEUE = globalThis.UPDATESQUEUE ?? []; | ||
globalThis.UPDATESQUEUE = UPDATESQUEUE; | ||
var queueUpdate = (update) => { | ||
UPDATESQUEUE.push(update); | ||
}; | ||
var unqueueUpdate = (name, type) => { | ||
const index = UPDATESQUEUE.findIndex((u) => u.name === name && u.type === type); | ||
if (index === -1) | ||
return; | ||
UPDATESQUEUE.splice(index, 1); | ||
}; | ||
// src/fs/index.ts | ||
var writeChecked = async (path, contents) => { | ||
unqueueUpdate(path, "file"); | ||
queueUpdate({ type: "file", name: path, contents, checked: true }); | ||
}; | ||
// src/start/add_api.ts | ||
var createApi = async (path, name) => { | ||
const path_parts = path.split("/"); | ||
path_parts.unshift("src", "routes", "api"); | ||
await (0, import_promises.mkdir)(path_parts.join("/"), { recursive: true }); | ||
path_parts.push(name ? `${name}.ts` : "hello.ts"); | ||
await writeChecked(path_parts.join("/"), ""); | ||
}; | ||
// src/start/add_data.ts | ||
var import_promises2 = require("fs/promises"); | ||
var createData = async (path, name) => { | ||
const path_parts = path.split("/"); | ||
path_parts.unshift("src", "routes"); | ||
await (0, import_promises2.mkdir)(path_parts.join("/"), { recursive: true }); | ||
path_parts.push(name ? `${name}.data.ts` : "Index.data.ts"); | ||
await writeChecked(path_parts.join("/"), ""); | ||
}; | ||
// src/start/add_route.ts | ||
var import_promises3 = require("fs/promises"); | ||
var default_file = `export default function Route() { | ||
"use strict";var p=Object.defineProperty;var g=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var U=Object.prototype.hasOwnProperty;var x=(n,t)=>{for(var e in t)p(n,e,{get:t[e],enumerable:!0})},w=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of y(t))!U.call(n,a)&&a!==e&&p(n,a,{get:()=>t[a],enumerable:!(r=g(t,a))||r.enumerable});return n};var k=n=>w(p({},"__esModule",{value:!0}),n);var Q={};x(Q,{createApi:()=>E,createData:()=>S,createRoute:()=>j,isSolidStart:()=>P});module.exports=k(Q);var f=require("fs/promises");var m=require("fs/promises");var h=require("execa"),F=require("detect-package-manager"),i=globalThis.UPDATESQUEUE??[];globalThis.UPDATESQUEUE=i;var c=n=>{i.push(n)},d=(n,t)=>{let e=i.findIndex(r=>r.name===n&&r.type===t);e!==-1&&i.splice(e,1)};var s=async(n,t)=>{d(n,"file"),c({type:"file",name:n,contents:t,checked:!0})};var E=async(n,t)=>{let e=n.split("/");e.unshift("src","routes","api"),await(0,m.mkdir)(e.join("/"),{recursive:!0}),e.push(t?`${t}.ts`:"hello.ts"),await s(e.join("/"),"")};var l=require("fs/promises");var S=async(n,t)=>{let e=n.split("/");e.unshift("src","routes"),await(0,l.mkdir)(e.join("/"),{recursive:!0}),e.push(t?`${t}.data.ts`:"Index.data.ts"),await s(e.join("/"),"")};var u=require("fs/promises");var C=`export default function Route() { | ||
return <></>; | ||
} | ||
`; | ||
var createRoute = async (path, name) => { | ||
const path_parts = path.split("/"); | ||
path_parts.unshift("src", "routes"); | ||
await (0, import_promises3.mkdir)(path_parts.join("/"), { recursive: true }); | ||
path_parts.push(name ? `(${name}).tsx` : "index.tsx"); | ||
await writeChecked(path_parts.join("/"), default_file); | ||
}; | ||
// src/start/index.ts | ||
var isSolidStart = async () => { | ||
const packageJsonStr = (await (0, import_promises4.readFile)("./package.json")).toString(); | ||
const packageJson = JSON.parse(packageJsonStr); | ||
const deps = Object.keys(packageJson["dependencies"] ?? {}); | ||
const devDeps = Object.keys(packageJson["devDependencies"] ?? {}); | ||
const allDeps = deps.concat(devDeps); | ||
for (let i = 0; i < allDeps.length; i++) { | ||
const dep = allDeps[i]; | ||
if (dep === "solid-start") | ||
return true; | ||
} | ||
return false; | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
createApi, | ||
createData, | ||
createRoute, | ||
isSolidStart | ||
}); | ||
`,j=async(n,t)=>{let e=n.split("/");e.unshift("src","routes"),await(0,u.mkdir)(e.join("/"),{recursive:!0}),e.push(t?`(${t}).tsx`:"index.tsx"),await s(e.join("/"),C)};var P=async()=>{let n=(await(0,f.readFile)("./package.json")).toString(),t=JSON.parse(n),e=Object.keys(t.dependencies??{}),r=Object.keys(t.devDependencies??{}),a=e.concat(r);for(let o=0;o<a.length;o++)if(a[o]==="solid-start")return!0;return!1};0&&(module.exports={createApi,createData,createRoute,isSolidStart}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,57 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/transform/index.ts | ||
var transform_exports = {}; | ||
__export(transform_exports, { | ||
transformPlugins: () => transformPlugins | ||
}); | ||
module.exports = __toCommonJS(transform_exports); | ||
var import_core = require("@swc/core"); | ||
var import_url = require("url"); | ||
var transformPlugins = async (new_plugins, config, force_transform = false, merge_configs = false, wasm_path = (0, import_url.fileURLToPath)(new URL("./swc_plugin_solid_cli-5c799acb.wasm?hash=5c799acb", "file://" + __filename))) => { | ||
const res = await (0, import_core.transform)(config.contents, { | ||
filename: config.name, | ||
jsc: { | ||
parser: { | ||
syntax: "typescript", | ||
tsx: false | ||
}, | ||
target: "es2022", | ||
experimental: { | ||
plugins: [ | ||
[ | ||
wasm_path, | ||
{ | ||
additionalPlugins: new_plugins, | ||
forceTransform: force_transform, | ||
mergeConfigs: merge_configs | ||
} | ||
] | ||
] | ||
} | ||
} | ||
}); | ||
return res.code; | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
transformPlugins | ||
}); | ||
"use strict";var o=Object.defineProperty;var l=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var m=Object.prototype.hasOwnProperty;var c=(t,e)=>{for(var s in e)o(t,s,{get:e[s],enumerable:!0})},f=(t,e,s,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of p(e))!m.call(t,n)&&n!==s&&o(t,n,{get:()=>e[n],enumerable:!(i=l(e,n))||i.enumerable});return t};var g=t=>f(o({},"__esModule",{value:!0}),t);var x={};c(x,{transformPlugins:()=>u});module.exports=g(x);var r=require("@swc/core"),a=require("url"),u=async(t,e,s=!1,i=!1,n=(0,a.fileURLToPath)(new URL("./swc_plugin_solid_cli-5c799acb.wasm?hash=5c799acb","file://"+__filename)))=>(await(0,r.transform)(e.contents,{filename:e.name,jsc:{parser:{syntax:"typescript",tsx:!1},target:"es2022",experimental:{plugins:[[n,{additionalPlugins:t,forceTransform:s,mergeConfigs:i}]]}}})).code;0&&(module.exports={transformPlugins}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,407 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/translations/index.ts | ||
var translations_exports = {}; | ||
__export(translations_exports, { | ||
locale: () => locale, | ||
setLocale: () => setLocale, | ||
t: () => t, | ||
validatedLocale: () => validatedLocale | ||
}); | ||
module.exports = __toCommonJS(translations_exports); | ||
// src/translations/translations.ts | ||
var import_reactivity2 = require("@solid-cli/reactivity"); | ||
// src/translations/types.ts | ||
var SupportedLanguages = ["en", "fr", "es", "de", "ru", "zh", "ja", "ko"]; | ||
// src/translations/translations.ts | ||
var import_reactivity3 = require("@solid-cli/reactivity"); | ||
var import_prompts = require("@clack/prompts"); | ||
// src/paths/index.ts | ||
var import_os = require("os"); | ||
var homedir = () => { | ||
return process.env.XDG_CONFIG_HOME ?? (0, import_os.homedir)(); | ||
}; | ||
// src/config/index.ts | ||
var import_path = require("path"); | ||
var import_smol_toml = require("smol-toml"); | ||
var import_reactivity = require("@solid-cli/reactivity"); | ||
var defaultConfig = { | ||
lang: Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0] | ||
}; | ||
var configPath = (0, import_path.join)(homedir(), "/solid-cli.config.toml"); | ||
var [config, setConfig] = (0, import_reactivity.createSignal)(defaultConfig); | ||
// src/translations/translations.ts | ||
var [locale, setLocale] = (0, import_reactivity2.createSignal)(null); | ||
var validatedLocale = (0, import_reactivity2.createMemo)(() => { | ||
const l = locale(); | ||
if (!l) | ||
return "en"; | ||
const supported = !!SupportedLanguages.find((lang) => lang.toLowerCase() === l.toLowerCase()); | ||
if (!supported) { | ||
import_prompts.log.warn(`Unsupported language: ${l}. Defaulting to English.`); | ||
} | ||
return supported ? l : "en"; | ||
}); | ||
(0, import_reactivity2.createEffect)( | ||
(0, import_reactivity3.on)( | ||
validatedLocale, | ||
(l) => { | ||
setConfig({ ...config(), lang: l }); | ||
}, | ||
{ defer: true } | ||
) | ||
); | ||
var TRANSLATIONS = { | ||
AUTOCOMPLETE_SELECTED: { | ||
en: "Selected Packages", | ||
es: "Paquetes seleccionados", | ||
fr: "Forfaits s\xE9lectionn\xE9s", | ||
ja: "\u9078\u629E\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8" | ||
}, | ||
AUTOCOMPLETE_NO_RESULTS: { | ||
en: "No results", | ||
es: "No hay resultados", | ||
fr: "Aucun r\xE9sultat", | ||
ja: "\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093" | ||
}, | ||
SELECT_START_ACTION: { | ||
en: "Select a start action", | ||
es: "Seleccione una acci\xF3n de inicio", | ||
fr: "S\xE9lectionnez une action de d\xE9marrage", | ||
ja: "\u958B\u59CB\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044" | ||
}, | ||
SELECT_ACTION: { | ||
en: "Select an action", | ||
es: "Seleccione una acci\xF3n", | ||
fr: "S\xE9lectionnez une action", | ||
ja: "\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044" | ||
}, | ||
ACTION_ADD: { | ||
en: "Add an integration", | ||
es: "A\xF1adir una integraci\xF3n", | ||
fr: "Ajouter une int\xE9gration", | ||
ja: "\u7D71\u5408\u3092\u8FFD\u52A0\u3059\u308B" | ||
}, | ||
ACTION_NEW: { | ||
en: "Create new project", | ||
es: "Crear nuevo proyecto", | ||
fr: "Cr\xE9er un nouveau projet", | ||
ja: "\u65B0\u3057\u3044\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210\u3059\u308B" | ||
}, | ||
ACTION_START: { | ||
en: "A start specific action", | ||
es: "Una acci\xF3n espec\xEDfica de inicio", | ||
fr: "Une action sp\xE9cifique de d\xE9marrage", | ||
ja: "\u7279\u5B9A\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u958B\u59CB\u3059\u308B" | ||
}, | ||
NEW_VARIATION_DESC: { | ||
en: "The variation to create, for example `bare`", | ||
es: "La variaci\xF3n a crear, por ejemplo `bare`", | ||
fr: "La variante \xE0 cr\xE9er, par exemple `bare`", | ||
ja: "\u4F5C\u6210\u3059\u308B\u30D0\u30EA\u30A8\u30FC\u30B7\u30E7\u30F3\u3001\u305F\u3068\u3048\u3070\u300Cbare\u300D" | ||
}, | ||
NEW_NAME_DESC: { | ||
en: "The name of the folder to create", | ||
es: "El nombre de la carpeta a crear.", | ||
fr: "Le nom du dossier \xE0 cr\xE9er", | ||
ja: "\u4F5C\u6210\u3059\u308B\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u540D\u524D" | ||
}, | ||
IS_START_PROJECT: { | ||
en: "Is this a Solid-Start project?", | ||
es: "\xBFEs este un proyecto de Solid-Start?", | ||
fr: "Est-ce un projet Solid-Start\xA0?", | ||
ja: "\u3053\u308C\u306F\u30BD\u30EA\u30C3\u30C9\u30B9\u30BF\u30FC\u30C8\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u3059\u304B?" | ||
}, | ||
START_MODE: { | ||
en: "Mode", | ||
es: "Modo", | ||
fr: "Mode", | ||
ja: "\u30E2\u30FC\u30C9" | ||
}, | ||
START_MODE_HINT: { | ||
en: "Changes the mode of the solid app (SSR, CSR, SSG)", | ||
es: "Cambia el modo de la aplicaci\xF3n s\xF3lida (SSR, CSR, SSG)", | ||
fr: "Modifie le mode de l'application solide (SSR, CSR, SSG)", | ||
ja: "\u30BD\u30EA\u30C3\u30C9\u30A2\u30D7\u30EA\u306E\u30E2\u30FC\u30C9\u3092\u5909\u66F4\u3057\u307E\u3059\uFF08SSR\u3001CSR\u3001SSG\uFF09" | ||
}, | ||
START_MODE_DESC: { | ||
en: "The rendering mode for solid to build for, and use.", | ||
es: "El modo de renderizado de solid para construir y usar.", | ||
fr: "Le mode de rendu du solid pour lequel construire et utiliser.", | ||
ja: "solid \u304C\u30D3\u30EB\u30C9\u3057\u3066\u4F7F\u7528\u3059\u308B\u30EC\u30F3\u30C0\u30EA\u30F3\u30B0 \u30E2\u30FC\u30C9\u3002" | ||
}, | ||
START_ROUTE: { | ||
en: "Route", | ||
es: "Ruta", | ||
fr: "Itin\xE9raire", | ||
ja: "\u30EB\u30FC\u30C8" | ||
}, | ||
START_ROUTE_HINT: { | ||
en: "Allows you to create a new file system route", | ||
es: "Le permite crear una nueva ruta de sistema de archivos", | ||
fr: "Vous permet de cr\xE9er une nouvelle route de syst\xE8me de fichiers", | ||
ja: "\u65B0\u3057\u3044\u30D5\u30A1\u30A4\u30EB \u30B7\u30B9\u30C6\u30E0 \u30EB\u30FC\u30C8\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059\u3002" | ||
}, | ||
START_ROUTE_DESC: { | ||
en: "The name of `.tsx` file to be generated", | ||
es: "El nombre del archivo `.tsx` que se generar\xE1", | ||
fr: "Le nom du fichier `.tsx` \xE0 g\xE9n\xE9rer", | ||
ja: "\u751F\u6210\u3055\u308C\u308B `.tsx` \u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D" | ||
}, | ||
START_DATA: { | ||
en: "Data File", | ||
es: "Archivo de datos", | ||
fr: "Fichier de donn\xE9es", | ||
ja: "\u30C7\u30FC\u30BF\u30D5\u30A1\u30A4\u30EB" | ||
}, | ||
START_DATA_HINT: { | ||
en: "Allows you to create a new data file within a route", | ||
es: "Le permite crear un nuevo archivo de datos dentro de una ruta", | ||
fr: "Permet de cr\xE9er un nouveau fichier de donn\xE9es au sein d'un itin\xE9raire", | ||
ja: "\u30EB\u30FC\u30C8\u5185\u306B\u65B0\u3057\u3044\u30C7\u30FC\u30BF \u30D5\u30A1\u30A4\u30EB\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059\u3002" | ||
}, | ||
START_DATA_DESC: { | ||
en: "The name of the `.data.ts` file to be generated.", | ||
es: "El nombre del archivo `.data.ts` que se generar\xE1.", | ||
fr: "Le nom du fichier `.data.ts` \xE0 g\xE9n\xE9rer.", | ||
ja: "\u751F\u6210\u3055\u308C\u308B `.data.ts` \u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D\u3002" | ||
}, | ||
START_ADAPTER: { | ||
en: "Adapter", | ||
es: "Adaptador", | ||
fr: "Adaptateur", | ||
ja: "\u30A2\u30C0\u30D7\u30BF" | ||
}, | ||
START_ADAPTER_HINT: { | ||
en: "Allows for setting and updating the adapter used to build a start app", | ||
es: "Permite configurar y actualizar el adaptador utilizado para crear una aplicaci\xF3n de inicio", | ||
fr: "Permet de d\xE9finir et de mettre \xE0 jour l'adaptateur utilis\xE9 pour cr\xE9er une application de d\xE9marrage", | ||
ja: "\u30B9\u30BF\u30FC\u30C8\u30A2\u30D7\u30EA\u306E\u69CB\u7BC9\u306B\u4F7F\u7528\u3055\u308C\u308B\u30A2\u30C0\u30D7\u30BF\u30FC\u306E\u8A2D\u5B9A\u3068\u66F4\u65B0\u304C\u53EF\u80FD" | ||
}, | ||
START_ADAPTER_DISPLAYNAME: { | ||
en: "Adapter name", | ||
es: "Nombre del adaptador", | ||
fr: "Nom de l'adaptateur", | ||
ja: "\u30A2\u30C0\u30D7\u30BF\u30FC\u540D" | ||
}, | ||
START_API: { | ||
en: "API", | ||
es: "API", | ||
fr: "API", | ||
ja: "API" | ||
}, | ||
START_API_HINT: { | ||
en: "Create an API route", | ||
es: "Crear una ruta API", | ||
fr: "Cr\xE9er une route d'API", | ||
ja: "API\u30EB\u30FC\u30C8\u3092\u4F5C\u6210\u3059\u308B" | ||
}, | ||
START_API_DISPLAYNAME: { | ||
en: "API file name", | ||
es: "Nombre de archivo API", | ||
fr: "Nom du fichier API", | ||
ja: "API\u30D5\u30A1\u30A4\u30EB\u540D" | ||
}, | ||
CANCELED: { | ||
en: "Canceled", | ||
es: "Cancelado", | ||
fr: "Annul\xE9", | ||
ja: "\u30AD\u30E3\u30F3\u30BB\u30EB" | ||
}, | ||
CONFIRM_INSTALL: (n) => ({ | ||
en: `Install the following (${n}) packages?`, | ||
es: `Instale lo siguiente (${n}) paquetes?`, | ||
fr: `Installez les \xE9l\xE9ments suivants (${n}) paquets?`, | ||
ja: `\u4EE5\u4E0B\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059 (${n}) \u30D1\u30C3\u30B1\u30FC\u30B8\uFF1F` | ||
}), | ||
NEW_START: { | ||
en: "Which template would you like to use?", | ||
es: "\xBFQu\xE9 plantilla te gustar\xEDa usar?", | ||
fr: "Quel mod\xE8le souhaitez-vous utiliser\xA0?", | ||
ja: "\u3069\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4F7F\u3044\u305F\u3044\u3067\u3059\u304B?" | ||
}, | ||
ADD_DESC: { | ||
en: "Can add and install integrations: `solid add unocss`.", | ||
es: "Puede agregar e instalar integraciones: `solid add unocss`.", | ||
fr: "Peut ajouter et installer des int\xE9grations\xA0: `solid add unocss`.", | ||
ja: "\u7D71\u5408\u3092\u8FFD\u52A0\u304A\u3088\u3073\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3067\u304D\u307E\u3059: `solid add unocss`\u3002" | ||
}, | ||
NEW_DESC: { | ||
en: "Creates a new solid project", | ||
es: "Crea un nuevo proyecto s\xF3lido.", | ||
fr: "Cr\xE9e un nouveau projet solide", | ||
ja: "\u65B0\u3057\u3044\u30BD\u30EA\u30C3\u30C9\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3059" | ||
}, | ||
ADD_PACKAGES: { | ||
en: "Add packages", | ||
es: "Agregar paquetes", | ||
fr: "Ajouter des forfaits", | ||
ja: "\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u8FFD\u52A0" | ||
}, | ||
NOTHING_SELECTED: { | ||
en: "Nothing selected", | ||
es: "Nada seleccionado", | ||
fr: "Rien de s\xE9lectionn\xE9", | ||
ja: "\u4F55\u3082\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093" | ||
}, | ||
YES: { | ||
en: "Yes", | ||
es: "S\xED", | ||
fr: "Oui", | ||
ja: "\u306F\u3044" | ||
}, | ||
NO: { | ||
en: "No", | ||
es: "No", | ||
fr: "Non", | ||
ja: "\u3044\u3044\u3048" | ||
}, | ||
YES_FORCE: { | ||
en: "Yes (force)", | ||
es: "S\xED (fuerza)", | ||
fr: "Oui (forcer)", | ||
ja: "\u306F\u3044\uFF08\u5F37\u5236\uFF09" | ||
}, | ||
PROJECT_CREATED: { | ||
en: "Project successfully created! \u{1F389}", | ||
es: "\xA1Proyecto creado con \xE9xito! \u{1F389}", | ||
fr: "Projet cr\xE9\xE9 avec succ\xE8s! \u{1F389}", | ||
ja: "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F\u3002 \u{1F389}" | ||
}, | ||
CREATING_PROJECT: { | ||
en: "Creating project", | ||
es: "Creando proyecto", | ||
fr: "Cr\xE9ation de projet", | ||
ja: "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4F5C\u6210" | ||
}, | ||
TEMPLATE: { | ||
en: "Template", | ||
es: "Plantilla", | ||
fr: "Mod\xE8le", | ||
ja: "\u30EC\u30F3\u30D7\u30EC\u30FC\u30C8" | ||
}, | ||
GET_STARTED: { | ||
en: "To get started, run:", | ||
es: "Para empezar, ejecuta:", | ||
fr: "Pour commencer, ex\xE9cutez\xA0:", | ||
ja: "\u958B\u59CB\u3059\u308B\u306B\u306F\u3001\u6B21\u3092\u5B9F\u884C\u3057\u307E\u3059\u3002" | ||
}, | ||
PROJECT_NAME: { | ||
en: "Project Name", | ||
es: "Nombre del proyecto", | ||
fr: "nom du projet", | ||
ja: "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D" | ||
}, | ||
LOADING_PRIMITIVES: { | ||
en: "Loading primitives", | ||
es: "Cargando primitivas", | ||
fr: "Chargement des primitives", | ||
ja: "\u30D7\u30EA\u30DF\u30C6\u30A3\u30D6\u306E\u30ED\u30FC\u30C9" | ||
}, | ||
PRIMITIVES_LOADED: { | ||
en: "Primitives loaded", | ||
es: "Primitivos cargados", | ||
fr: "Primitives charg\xE9es", | ||
ja: "\u30D7\u30EA\u30DF\u30C6\u30A3\u30D6\u304C\u30ED\u30FC\u30C9\u3055\u308C\u307E\u3057\u305F" | ||
}, | ||
INSTALLING_VIA: (pm) => ({ | ||
en: `Installing packages via ${pm}`, | ||
es: `Instalaci\xF3n de paquetes a trav\xE9s de ${pm}`, | ||
fr: `Installation de packages via ${pm}`, | ||
ja: `\u7D4C\u7531\u3067\u30D1\u30C3\u30B1\u30FC\u30B8\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3059\u308B ${pm}` | ||
}), | ||
CONFIG_UPDATED: { | ||
en: "Config updated", | ||
es: "Configuraci\xF3n actualizada", | ||
fr: "Configuration mise \xE0 jour", | ||
ja: "\u69CB\u6210\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F" | ||
}, | ||
PACKAGES_INSTALLED: { | ||
en: "Packages installed", | ||
es: "Paquetes instalados", | ||
fr: "Paquets install\xE9s", | ||
ja: "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8" | ||
}, | ||
POST_INSTALL: { | ||
en: "Running post install steps", | ||
es: "Ejecuci\xF3n de pasos posteriores a la instalaci\xF3n", | ||
fr: "Ex\xE9cution des \xE9tapes de post-installation", | ||
ja: "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5F8C\u306E\u624B\u9806\u306E\u5B9F\u884C" | ||
}, | ||
POST_INSTALL_COMPLETE: { | ||
en: "Post install complete", | ||
es: "Post instalaci\xF3n completa", | ||
fr: "Post-installation termin\xE9e", | ||
ja: "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5F8C\u306E\u5B8C\u4E86" | ||
}, | ||
NO_SUPPORT: (n) => ({ | ||
en: `Can't automatically configure ${n}: we don't support it.`, | ||
es: `No se puede configurar autom\xE1ticamente ${n}: no lo admitimos`, | ||
fr: `Impossible de configurer automatiquement ${n}: nous ne le prenons pas en charge`, | ||
ja: `${n} \u3092\u81EA\u52D5\u7684\u306B\u69CB\u6210\u3067\u304D\u307E\u305B\u3093: \u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093` | ||
}), | ||
OPENING_IN_BROWSER: (s) => ({ | ||
en: `Opening ${s} in browser`, | ||
es: `Abriendo ${s} en el navegador`, | ||
fr: `Ouverture de ${s} dans le navigateur`, | ||
ja: `\u30D6\u30E9\u30A6\u30B6\u3067 ${s} \u3092\u958B\u304F` | ||
}), | ||
OPENED_IN_BROWSER: { | ||
en: "Successfully Opened in Browser", | ||
es: "Abierto con \xE9xito en el navegador", | ||
fr: "Ouvert avec succ\xE8s dans le navigateur", | ||
ja: "\u30D6\u30E9\u30A6\u30B6\u3067\u6B63\u5E38\u306B\u958B\u304D\u307E\u3057\u305F" | ||
} | ||
}; | ||
var t = new Proxy(TRANSLATIONS, { | ||
get(target, p, _receiver) { | ||
const l = validatedLocale(); | ||
let text = target[p]; | ||
if (typeof text === "function") { | ||
return new Proxy(text, { | ||
apply(target2, thisArg, argArray) { | ||
const newT = Reflect.apply(target2, thisArg, argArray); | ||
if (l in newT) { | ||
return newT[l]; | ||
} | ||
return newT["en"]; | ||
} | ||
}); | ||
} | ||
if (l in text) { | ||
return text[l]; | ||
} | ||
return text["en"]; | ||
} | ||
}); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
locale, | ||
setLocale, | ||
t, | ||
validatedLocale | ||
}); | ||
"use strict";var i=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var R=(e,a)=>{for(var t in a)i(e,t,{get:a[t],enumerable:!0})},L=(e,a,t,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of I(a))!N.call(e,r)&&r!==t&&i(e,r,{get:()=>a[r],enumerable:!(n=_(a,r))||n.enumerable});return e};var O=e=>L(i({},"__esModule",{value:!0}),e);var x={};R(x,{locale:()=>E,setLocale:()=>h,t:()=>D,validatedLocale:()=>d});module.exports=O(x);var o=require("@solid-cli/reactivity");var l=["en","fr","es","de","ru","zh","ja","ko"];var m=require("@solid-cli/reactivity"),g=require("@clack/prompts");var c=require("os"),u=()=>process.env.XDG_CONFIG_HOME??(0,c.homedir)();var p=require("path"),f=require("smol-toml"),T=require("@solid-cli/reactivity");var y={lang:Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0]},$=(0,p.join)(u(),"/solid-cli.config.toml"),[S,A]=(0,T.createSignal)(y);var[E,h]=(0,o.createSignal)(null),d=(0,o.createMemo)(()=>{let e=E();if(!e)return"en";let a=!!l.find(t=>t.toLowerCase()===e.toLowerCase());return a||g.log.warn(`Unsupported language: ${e}. Defaulting to English.`),a?e:"en"});(0,o.createEffect)((0,m.on)(d,e=>{A({...S(),lang:e})},{defer:!0}));var v={AUTOCOMPLETE_SELECTED:{en:"Selected Packages",es:"Paquetes seleccionados",fr:"Forfaits s\xE9lectionn\xE9s",ja:"\u9078\u629E\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8"},AUTOCOMPLETE_NO_RESULTS:{en:"No results",es:"No hay resultados",fr:"Aucun r\xE9sultat",ja:"\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093"},SELECT_START_ACTION:{en:"Select a SolidStart specific action",es:"Seleccione una acci\xF3n espec\xEDfica de SolidStart",fr:"S\xE9lectionnez une action sp\xE9cifique \xE0 SolidStart",ja:"SolidStart \u56FA\u6709\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u307E\u3059"},SELECT_ACTION:{en:"Select an action",es:"Seleccione una acci\xF3n",fr:"S\xE9lectionnez une action",ja:"\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},ACTION_ADD:{en:"Add an integration",es:"A\xF1adir una integraci\xF3n",fr:"Ajouter une int\xE9gration",ja:"\u7D71\u5408\u3092\u8FFD\u52A0\u3059\u308B"},ACTION_NEW:{en:"Create new project",es:"Crear nuevo proyecto",fr:"Cr\xE9er un nouveau projet",ja:"\u65B0\u3057\u3044\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210\u3059\u308B"},ACTION_START:{en:"A start specific action",es:"Una acci\xF3n espec\xEDfica de inicio",fr:"Une action sp\xE9cifique de d\xE9marrage",ja:"\u7279\u5B9A\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u958B\u59CB\u3059\u308B"},NEW_VARIATION_DESC:{en:"The variation to create, for example `bare`",es:"La variaci\xF3n a crear, por ejemplo `bare`",fr:"La variante \xE0 cr\xE9er, par exemple `bare`",ja:"\u4F5C\u6210\u3059\u308B\u30D0\u30EA\u30A8\u30FC\u30B7\u30E7\u30F3\u3001\u305F\u3068\u3048\u3070\u300Cbare\u300D"},NEW_NAME_DESC:{en:"The name of the folder to create",es:"El nombre de la carpeta a crear.",fr:"Le nom du dossier \xE0 cr\xE9er",ja:"\u4F5C\u6210\u3059\u308B\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u540D\u524D"},IS_START_PROJECT:{en:"Is this a Solid-Start project?",es:"\xBFEs este un proyecto de Solid-Start?",fr:"Est-ce un projet Solid-Start\xA0?",ja:"\u3053\u308C\u306F\u30BD\u30EA\u30C3\u30C9\u30B9\u30BF\u30FC\u30C8\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u3059\u304B?"},START_MODE:{en:"Mode",es:"Modo",fr:"Mode",ja:"\u30E2\u30FC\u30C9"},START_MODE_HINT:{en:"Changes the mode of the solid app (SSR, CSR, SSG)",es:"Cambia el modo de la aplicaci\xF3n s\xF3lida (SSR, CSR, SSG)",fr:"Modifie le mode de l'application solide (SSR, CSR, SSG)",ja:"\u30BD\u30EA\u30C3\u30C9\u30A2\u30D7\u30EA\u306E\u30E2\u30FC\u30C9\u3092\u5909\u66F4\u3057\u307E\u3059\uFF08SSR\u3001CSR\u3001SSG\uFF09"},START_MODE_DESC:{en:"The rendering mode for solid to build for, and use.",es:"El modo de renderizado de solid para construir y usar.",fr:"Le mode de rendu du solid pour lequel construire et utiliser.",ja:"solid \u304C\u30D3\u30EB\u30C9\u3057\u3066\u4F7F\u7528\u3059\u308B\u30EC\u30F3\u30C0\u30EA\u30F3\u30B0 \u30E2\u30FC\u30C9\u3002"},START_ROUTE:{en:"Route",es:"Ruta",fr:"Itin\xE9raire",ja:"\u30EB\u30FC\u30C8"},START_ROUTE_HINT:{en:"Allows you to create a new file system route",es:"Le permite crear una nueva ruta de sistema de archivos",fr:"Vous permet de cr\xE9er une nouvelle route de syst\xE8me de fichiers",ja:"\u65B0\u3057\u3044\u30D5\u30A1\u30A4\u30EB \u30B7\u30B9\u30C6\u30E0 \u30EB\u30FC\u30C8\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059\u3002"},START_ROUTE_DESC:{en:"The name of `.tsx` file to be generated",es:"El nombre del archivo `.tsx` que se generar\xE1",fr:"Le nom du fichier `.tsx` \xE0 g\xE9n\xE9rer",ja:"\u751F\u6210\u3055\u308C\u308B `.tsx` \u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D"},START_DATA:{en:"Data File",es:"Archivo de datos",fr:"Fichier de donn\xE9es",ja:"\u30C7\u30FC\u30BF\u30D5\u30A1\u30A4\u30EB"},START_DATA_HINT:{en:"Allows you to create a new data file within a route",es:"Le permite crear un nuevo archivo de datos dentro de una ruta",fr:"Permet de cr\xE9er un nouveau fichier de donn\xE9es au sein d'un itin\xE9raire",ja:"\u30EB\u30FC\u30C8\u5185\u306B\u65B0\u3057\u3044\u30C7\u30FC\u30BF \u30D5\u30A1\u30A4\u30EB\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059\u3002"},START_DATA_DESC:{en:"The name of the `.data.ts` file to be generated.",es:"El nombre del archivo `.data.ts` que se generar\xE1.",fr:"Le nom du fichier `.data.ts` \xE0 g\xE9n\xE9rer.",ja:"\u751F\u6210\u3055\u308C\u308B `.data.ts` \u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D\u3002"},START_ADAPTER:{en:"Adapter",es:"Adaptador",fr:"Adaptateur",ja:"\u30A2\u30C0\u30D7\u30BF"},START_ADAPTER_HINT:{en:"Allows for setting and updating the adapter used to build a start app",es:"Permite configurar y actualizar el adaptador utilizado para crear una aplicaci\xF3n de inicio",fr:"Permet de d\xE9finir et de mettre \xE0 jour l'adaptateur utilis\xE9 pour cr\xE9er une application de d\xE9marrage",ja:"\u30B9\u30BF\u30FC\u30C8\u30A2\u30D7\u30EA\u306E\u69CB\u7BC9\u306B\u4F7F\u7528\u3055\u308C\u308B\u30A2\u30C0\u30D7\u30BF\u30FC\u306E\u8A2D\u5B9A\u3068\u66F4\u65B0\u304C\u53EF\u80FD"},START_ADAPTER_DISPLAYNAME:{en:"Adapter name",es:"Nombre del adaptador",fr:"Nom de l'adaptateur",ja:"\u30A2\u30C0\u30D7\u30BF\u30FC\u540D"},START_API:{en:"API",es:"API",fr:"API",ja:"API"},START_API_HINT:{en:"Create an API route",es:"Crear una ruta API",fr:"Cr\xE9er une route d'API",ja:"API\u30EB\u30FC\u30C8\u3092\u4F5C\u6210\u3059\u308B"},START_API_DISPLAYNAME:{en:"API file name",es:"Nombre de archivo API",fr:"Nom du fichier API",ja:"API\u30D5\u30A1\u30A4\u30EB\u540D"},CANCELED:{en:"Canceled",es:"Cancelado",fr:"Annul\xE9",ja:"\u30AD\u30E3\u30F3\u30BB\u30EB"},CONFIRM_INSTALL:e=>({en:`Install the following (${e}) packages?`,es:`Instale lo siguiente (${e}) paquetes?`,fr:`Installez les \xE9l\xE9ments suivants (${e}) paquets?`,ja:`\u4EE5\u4E0B\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059 (${e}) \u30D1\u30C3\u30B1\u30FC\u30B8\uFF1F`}),NEW_START:{en:"Which template would you like to use?",es:"\xBFQu\xE9 plantilla te gustar\xEDa usar?",fr:"Quel mod\xE8le souhaitez-vous utiliser\xA0?",ja:"\u3069\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4F7F\u3044\u305F\u3044\u3067\u3059\u304B?"},ADD_DESC:{en:"Can add and install integrations: `solid add unocss`.",es:"Puede agregar e instalar integraciones: `solid add unocss`.",fr:"Peut ajouter et installer des int\xE9grations\xA0: `solid add unocss`.",ja:"\u7D71\u5408\u3092\u8FFD\u52A0\u304A\u3088\u3073\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3067\u304D\u307E\u3059: `solid add unocss`\u3002"},NEW_DESC:{en:"Creates a new solid project",es:"Crea un nuevo proyecto s\xF3lido.",fr:"Cr\xE9e un nouveau projet solide",ja:"\u65B0\u3057\u3044\u30BD\u30EA\u30C3\u30C9\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3059"},ADD_PACKAGES:{en:"Add packages",es:"Agregar paquetes",fr:"Ajouter des forfaits",ja:"\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u8FFD\u52A0"},NOTHING_SELECTED:{en:"Nothing selected",es:"Nada seleccionado",fr:"Rien de s\xE9lectionn\xE9",ja:"\u4F55\u3082\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093"},YES:{en:"Yes",es:"S\xED",fr:"Oui",ja:"\u306F\u3044"},NO:{en:"No",es:"No",fr:"Non",ja:"\u3044\u3044\u3048"},YES_FORCE:{en:"Yes (force)",es:"S\xED (fuerza)",fr:"Oui (forcer)",ja:"\u306F\u3044\uFF08\u5F37\u5236\uFF09"},PROJECT_CREATED:{en:"Project successfully created! \u{1F389}",es:"\xA1Proyecto creado con \xE9xito! \u{1F389}",fr:"Projet cr\xE9\xE9 avec succ\xE8s! \u{1F389}",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F\u3002 \u{1F389}"},CREATING_PROJECT:{en:"Creating project",es:"Creando proyecto",fr:"Cr\xE9ation de projet",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4F5C\u6210"},TEMPLATE:{en:"Template",es:"Plantilla",fr:"Mod\xE8le",ja:"\u30EC\u30F3\u30D7\u30EC\u30FC\u30C8"},GET_STARTED:{en:"To get started, run:",es:"Para empezar, ejecuta:",fr:"Pour commencer, ex\xE9cutez\xA0:",ja:"\u958B\u59CB\u3059\u308B\u306B\u306F\u3001\u6B21\u3092\u5B9F\u884C\u3057\u307E\u3059\u3002"},PROJECT_NAME:{en:"Project Name",es:"Nombre del proyecto",fr:"nom du projet",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D"},LOADING_PRIMITIVES:{en:"Loading primitives",es:"Cargando primitivas",fr:"Chargement des primitives",ja:"\u30D7\u30EA\u30DF\u30C6\u30A3\u30D6\u306E\u30ED\u30FC\u30C9"},PRIMITIVES_LOADED:{en:"Primitives loaded",es:"Primitivos cargados",fr:"Primitives charg\xE9es",ja:"\u30D7\u30EA\u30DF\u30C6\u30A3\u30D6\u304C\u30ED\u30FC\u30C9\u3055\u308C\u307E\u3057\u305F"},INSTALLING_VIA:e=>({en:`Installing packages via ${e}`,es:`Instalaci\xF3n de paquetes a trav\xE9s de ${e}`,fr:`Installation de packages via ${e}`,ja:`\u7D4C\u7531\u3067\u30D1\u30C3\u30B1\u30FC\u30B8\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3059\u308B ${e}`}),CONFIG_UPDATED:{en:"Config updated",es:"Configuraci\xF3n actualizada",fr:"Configuration mise \xE0 jour",ja:"\u69CB\u6210\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F"},PACKAGES_INSTALLED:{en:"Packages installed",es:"Paquetes instalados",fr:"Paquets install\xE9s",ja:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8"},POST_INSTALL:{en:"Running post install steps",es:"Ejecuci\xF3n de pasos posteriores a la instalaci\xF3n",fr:"Ex\xE9cution des \xE9tapes de post-installation",ja:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5F8C\u306E\u624B\u9806\u306E\u5B9F\u884C"},POST_INSTALL_COMPLETE:{en:"Post install complete",es:"Post instalaci\xF3n completa",fr:"Post-installation termin\xE9e",ja:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5F8C\u306E\u5B8C\u4E86"},NO_SUPPORT:e=>({en:`Can't automatically configure ${e}: we don't support it.`,es:`No se puede configurar autom\xE1ticamente ${e}: no lo admitimos`,fr:`Impossible de configurer automatiquement ${e}: nous ne le prenons pas en charge`,ja:`${e} \u3092\u81EA\u52D5\u7684\u306B\u69CB\u6210\u3067\u304D\u307E\u305B\u3093: \u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093`}),OPENING_IN_BROWSER:e=>({en:`Opening ${e} in browser`,es:`Abriendo ${e} en el navegador`,fr:`Ouverture de ${e} dans le navigateur`,ja:`\u30D6\u30E9\u30A6\u30B6\u3067 ${e} \u3092\u958B\u304F`}),OPENED_IN_BROWSER:{en:"Successfully Opened in Browser",es:"Abierto con \xE9xito en el navegador",fr:"Ouvert avec succ\xE8s dans le navigateur",ja:"\u30D6\u30E9\u30A6\u30B6\u3067\u6B63\u5E38\u306B\u958B\u304D\u307E\u3057\u305F"}},D=new Proxy(v,{get(e,a,t){let n=d(),r=e[a];return typeof r=="function"?new Proxy(r,{apply(j,P,C){let s=Reflect.apply(j,P,C);return n in s?s[n]:s.en}}):n in r?r[n]:r.en}});0&&(module.exports={locale,setLocale,t,validatedLocale}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,405 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/translations/translations.ts | ||
var translations_exports = {}; | ||
__export(translations_exports, { | ||
locale: () => locale, | ||
setLocale: () => setLocale, | ||
t: () => t, | ||
validatedLocale: () => validatedLocale | ||
}); | ||
module.exports = __toCommonJS(translations_exports); | ||
var import_reactivity2 = require("@solid-cli/reactivity"); | ||
// src/translations/types.ts | ||
var SupportedLanguages = ["en", "fr", "es", "de", "ru", "zh", "ja", "ko"]; | ||
// src/translations/translations.ts | ||
var import_reactivity3 = require("@solid-cli/reactivity"); | ||
var import_prompts = require("@clack/prompts"); | ||
// src/paths/index.ts | ||
var import_os = require("os"); | ||
var homedir = () => { | ||
return process.env.XDG_CONFIG_HOME ?? (0, import_os.homedir)(); | ||
}; | ||
// src/config/index.ts | ||
var import_path = require("path"); | ||
var import_smol_toml = require("smol-toml"); | ||
var import_reactivity = require("@solid-cli/reactivity"); | ||
var defaultConfig = { | ||
lang: Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0] | ||
}; | ||
var configPath = (0, import_path.join)(homedir(), "/solid-cli.config.toml"); | ||
var [config, setConfig] = (0, import_reactivity.createSignal)(defaultConfig); | ||
// src/translations/translations.ts | ||
var [locale, setLocale] = (0, import_reactivity2.createSignal)(null); | ||
var validatedLocale = (0, import_reactivity2.createMemo)(() => { | ||
const l = locale(); | ||
if (!l) | ||
return "en"; | ||
const supported = !!SupportedLanguages.find((lang) => lang.toLowerCase() === l.toLowerCase()); | ||
if (!supported) { | ||
import_prompts.log.warn(`Unsupported language: ${l}. Defaulting to English.`); | ||
} | ||
return supported ? l : "en"; | ||
}); | ||
(0, import_reactivity2.createEffect)( | ||
(0, import_reactivity3.on)( | ||
validatedLocale, | ||
(l) => { | ||
setConfig({ ...config(), lang: l }); | ||
}, | ||
{ defer: true } | ||
) | ||
); | ||
var TRANSLATIONS = { | ||
AUTOCOMPLETE_SELECTED: { | ||
en: "Selected Packages", | ||
es: "Paquetes seleccionados", | ||
fr: "Forfaits s\xE9lectionn\xE9s", | ||
ja: "\u9078\u629E\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8" | ||
}, | ||
AUTOCOMPLETE_NO_RESULTS: { | ||
en: "No results", | ||
es: "No hay resultados", | ||
fr: "Aucun r\xE9sultat", | ||
ja: "\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093" | ||
}, | ||
SELECT_START_ACTION: { | ||
en: "Select a start action", | ||
es: "Seleccione una acci\xF3n de inicio", | ||
fr: "S\xE9lectionnez une action de d\xE9marrage", | ||
ja: "\u958B\u59CB\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044" | ||
}, | ||
SELECT_ACTION: { | ||
en: "Select an action", | ||
es: "Seleccione una acci\xF3n", | ||
fr: "S\xE9lectionnez une action", | ||
ja: "\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044" | ||
}, | ||
ACTION_ADD: { | ||
en: "Add an integration", | ||
es: "A\xF1adir una integraci\xF3n", | ||
fr: "Ajouter une int\xE9gration", | ||
ja: "\u7D71\u5408\u3092\u8FFD\u52A0\u3059\u308B" | ||
}, | ||
ACTION_NEW: { | ||
en: "Create new project", | ||
es: "Crear nuevo proyecto", | ||
fr: "Cr\xE9er un nouveau projet", | ||
ja: "\u65B0\u3057\u3044\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210\u3059\u308B" | ||
}, | ||
ACTION_START: { | ||
en: "A start specific action", | ||
es: "Una acci\xF3n espec\xEDfica de inicio", | ||
fr: "Une action sp\xE9cifique de d\xE9marrage", | ||
ja: "\u7279\u5B9A\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u958B\u59CB\u3059\u308B" | ||
}, | ||
NEW_VARIATION_DESC: { | ||
en: "The variation to create, for example `bare`", | ||
es: "La variaci\xF3n a crear, por ejemplo `bare`", | ||
fr: "La variante \xE0 cr\xE9er, par exemple `bare`", | ||
ja: "\u4F5C\u6210\u3059\u308B\u30D0\u30EA\u30A8\u30FC\u30B7\u30E7\u30F3\u3001\u305F\u3068\u3048\u3070\u300Cbare\u300D" | ||
}, | ||
NEW_NAME_DESC: { | ||
en: "The name of the folder to create", | ||
es: "El nombre de la carpeta a crear.", | ||
fr: "Le nom du dossier \xE0 cr\xE9er", | ||
ja: "\u4F5C\u6210\u3059\u308B\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u540D\u524D" | ||
}, | ||
IS_START_PROJECT: { | ||
en: "Is this a Solid-Start project?", | ||
es: "\xBFEs este un proyecto de Solid-Start?", | ||
fr: "Est-ce un projet Solid-Start\xA0?", | ||
ja: "\u3053\u308C\u306F\u30BD\u30EA\u30C3\u30C9\u30B9\u30BF\u30FC\u30C8\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u3059\u304B?" | ||
}, | ||
START_MODE: { | ||
en: "Mode", | ||
es: "Modo", | ||
fr: "Mode", | ||
ja: "\u30E2\u30FC\u30C9" | ||
}, | ||
START_MODE_HINT: { | ||
en: "Changes the mode of the solid app (SSR, CSR, SSG)", | ||
es: "Cambia el modo de la aplicaci\xF3n s\xF3lida (SSR, CSR, SSG)", | ||
fr: "Modifie le mode de l'application solide (SSR, CSR, SSG)", | ||
ja: "\u30BD\u30EA\u30C3\u30C9\u30A2\u30D7\u30EA\u306E\u30E2\u30FC\u30C9\u3092\u5909\u66F4\u3057\u307E\u3059\uFF08SSR\u3001CSR\u3001SSG\uFF09" | ||
}, | ||
START_MODE_DESC: { | ||
en: "The rendering mode for solid to build for, and use.", | ||
es: "El modo de renderizado de solid para construir y usar.", | ||
fr: "Le mode de rendu du solid pour lequel construire et utiliser.", | ||
ja: "solid \u304C\u30D3\u30EB\u30C9\u3057\u3066\u4F7F\u7528\u3059\u308B\u30EC\u30F3\u30C0\u30EA\u30F3\u30B0 \u30E2\u30FC\u30C9\u3002" | ||
}, | ||
START_ROUTE: { | ||
en: "Route", | ||
es: "Ruta", | ||
fr: "Itin\xE9raire", | ||
ja: "\u30EB\u30FC\u30C8" | ||
}, | ||
START_ROUTE_HINT: { | ||
en: "Allows you to create a new file system route", | ||
es: "Le permite crear una nueva ruta de sistema de archivos", | ||
fr: "Vous permet de cr\xE9er une nouvelle route de syst\xE8me de fichiers", | ||
ja: "\u65B0\u3057\u3044\u30D5\u30A1\u30A4\u30EB \u30B7\u30B9\u30C6\u30E0 \u30EB\u30FC\u30C8\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059\u3002" | ||
}, | ||
START_ROUTE_DESC: { | ||
en: "The name of `.tsx` file to be generated", | ||
es: "El nombre del archivo `.tsx` que se generar\xE1", | ||
fr: "Le nom du fichier `.tsx` \xE0 g\xE9n\xE9rer", | ||
ja: "\u751F\u6210\u3055\u308C\u308B `.tsx` \u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D" | ||
}, | ||
START_DATA: { | ||
en: "Data File", | ||
es: "Archivo de datos", | ||
fr: "Fichier de donn\xE9es", | ||
ja: "\u30C7\u30FC\u30BF\u30D5\u30A1\u30A4\u30EB" | ||
}, | ||
START_DATA_HINT: { | ||
en: "Allows you to create a new data file within a route", | ||
es: "Le permite crear un nuevo archivo de datos dentro de una ruta", | ||
fr: "Permet de cr\xE9er un nouveau fichier de donn\xE9es au sein d'un itin\xE9raire", | ||
ja: "\u30EB\u30FC\u30C8\u5185\u306B\u65B0\u3057\u3044\u30C7\u30FC\u30BF \u30D5\u30A1\u30A4\u30EB\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059\u3002" | ||
}, | ||
START_DATA_DESC: { | ||
en: "The name of the `.data.ts` file to be generated.", | ||
es: "El nombre del archivo `.data.ts` que se generar\xE1.", | ||
fr: "Le nom du fichier `.data.ts` \xE0 g\xE9n\xE9rer.", | ||
ja: "\u751F\u6210\u3055\u308C\u308B `.data.ts` \u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D\u3002" | ||
}, | ||
START_ADAPTER: { | ||
en: "Adapter", | ||
es: "Adaptador", | ||
fr: "Adaptateur", | ||
ja: "\u30A2\u30C0\u30D7\u30BF" | ||
}, | ||
START_ADAPTER_HINT: { | ||
en: "Allows for setting and updating the adapter used to build a start app", | ||
es: "Permite configurar y actualizar el adaptador utilizado para crear una aplicaci\xF3n de inicio", | ||
fr: "Permet de d\xE9finir et de mettre \xE0 jour l'adaptateur utilis\xE9 pour cr\xE9er une application de d\xE9marrage", | ||
ja: "\u30B9\u30BF\u30FC\u30C8\u30A2\u30D7\u30EA\u306E\u69CB\u7BC9\u306B\u4F7F\u7528\u3055\u308C\u308B\u30A2\u30C0\u30D7\u30BF\u30FC\u306E\u8A2D\u5B9A\u3068\u66F4\u65B0\u304C\u53EF\u80FD" | ||
}, | ||
START_ADAPTER_DISPLAYNAME: { | ||
en: "Adapter name", | ||
es: "Nombre del adaptador", | ||
fr: "Nom de l'adaptateur", | ||
ja: "\u30A2\u30C0\u30D7\u30BF\u30FC\u540D" | ||
}, | ||
START_API: { | ||
en: "API", | ||
es: "API", | ||
fr: "API", | ||
ja: "API" | ||
}, | ||
START_API_HINT: { | ||
en: "Create an API route", | ||
es: "Crear una ruta API", | ||
fr: "Cr\xE9er une route d'API", | ||
ja: "API\u30EB\u30FC\u30C8\u3092\u4F5C\u6210\u3059\u308B" | ||
}, | ||
START_API_DISPLAYNAME: { | ||
en: "API file name", | ||
es: "Nombre de archivo API", | ||
fr: "Nom du fichier API", | ||
ja: "API\u30D5\u30A1\u30A4\u30EB\u540D" | ||
}, | ||
CANCELED: { | ||
en: "Canceled", | ||
es: "Cancelado", | ||
fr: "Annul\xE9", | ||
ja: "\u30AD\u30E3\u30F3\u30BB\u30EB" | ||
}, | ||
CONFIRM_INSTALL: (n) => ({ | ||
en: `Install the following (${n}) packages?`, | ||
es: `Instale lo siguiente (${n}) paquetes?`, | ||
fr: `Installez les \xE9l\xE9ments suivants (${n}) paquets?`, | ||
ja: `\u4EE5\u4E0B\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059 (${n}) \u30D1\u30C3\u30B1\u30FC\u30B8\uFF1F` | ||
}), | ||
NEW_START: { | ||
en: "Which template would you like to use?", | ||
es: "\xBFQu\xE9 plantilla te gustar\xEDa usar?", | ||
fr: "Quel mod\xE8le souhaitez-vous utiliser\xA0?", | ||
ja: "\u3069\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4F7F\u3044\u305F\u3044\u3067\u3059\u304B?" | ||
}, | ||
ADD_DESC: { | ||
en: "Can add and install integrations: `solid add unocss`.", | ||
es: "Puede agregar e instalar integraciones: `solid add unocss`.", | ||
fr: "Peut ajouter et installer des int\xE9grations\xA0: `solid add unocss`.", | ||
ja: "\u7D71\u5408\u3092\u8FFD\u52A0\u304A\u3088\u3073\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3067\u304D\u307E\u3059: `solid add unocss`\u3002" | ||
}, | ||
NEW_DESC: { | ||
en: "Creates a new solid project", | ||
es: "Crea un nuevo proyecto s\xF3lido.", | ||
fr: "Cr\xE9e un nouveau projet solide", | ||
ja: "\u65B0\u3057\u3044\u30BD\u30EA\u30C3\u30C9\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3059" | ||
}, | ||
ADD_PACKAGES: { | ||
en: "Add packages", | ||
es: "Agregar paquetes", | ||
fr: "Ajouter des forfaits", | ||
ja: "\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u8FFD\u52A0" | ||
}, | ||
NOTHING_SELECTED: { | ||
en: "Nothing selected", | ||
es: "Nada seleccionado", | ||
fr: "Rien de s\xE9lectionn\xE9", | ||
ja: "\u4F55\u3082\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093" | ||
}, | ||
YES: { | ||
en: "Yes", | ||
es: "S\xED", | ||
fr: "Oui", | ||
ja: "\u306F\u3044" | ||
}, | ||
NO: { | ||
en: "No", | ||
es: "No", | ||
fr: "Non", | ||
ja: "\u3044\u3044\u3048" | ||
}, | ||
YES_FORCE: { | ||
en: "Yes (force)", | ||
es: "S\xED (fuerza)", | ||
fr: "Oui (forcer)", | ||
ja: "\u306F\u3044\uFF08\u5F37\u5236\uFF09" | ||
}, | ||
PROJECT_CREATED: { | ||
en: "Project successfully created! \u{1F389}", | ||
es: "\xA1Proyecto creado con \xE9xito! \u{1F389}", | ||
fr: "Projet cr\xE9\xE9 avec succ\xE8s! \u{1F389}", | ||
ja: "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F\u3002 \u{1F389}" | ||
}, | ||
CREATING_PROJECT: { | ||
en: "Creating project", | ||
es: "Creando proyecto", | ||
fr: "Cr\xE9ation de projet", | ||
ja: "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4F5C\u6210" | ||
}, | ||
TEMPLATE: { | ||
en: "Template", | ||
es: "Plantilla", | ||
fr: "Mod\xE8le", | ||
ja: "\u30EC\u30F3\u30D7\u30EC\u30FC\u30C8" | ||
}, | ||
GET_STARTED: { | ||
en: "To get started, run:", | ||
es: "Para empezar, ejecuta:", | ||
fr: "Pour commencer, ex\xE9cutez\xA0:", | ||
ja: "\u958B\u59CB\u3059\u308B\u306B\u306F\u3001\u6B21\u3092\u5B9F\u884C\u3057\u307E\u3059\u3002" | ||
}, | ||
PROJECT_NAME: { | ||
en: "Project Name", | ||
es: "Nombre del proyecto", | ||
fr: "nom du projet", | ||
ja: "\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D" | ||
}, | ||
LOADING_PRIMITIVES: { | ||
en: "Loading primitives", | ||
es: "Cargando primitivas", | ||
fr: "Chargement des primitives", | ||
ja: "\u30D7\u30EA\u30DF\u30C6\u30A3\u30D6\u306E\u30ED\u30FC\u30C9" | ||
}, | ||
PRIMITIVES_LOADED: { | ||
en: "Primitives loaded", | ||
es: "Primitivos cargados", | ||
fr: "Primitives charg\xE9es", | ||
ja: "\u30D7\u30EA\u30DF\u30C6\u30A3\u30D6\u304C\u30ED\u30FC\u30C9\u3055\u308C\u307E\u3057\u305F" | ||
}, | ||
INSTALLING_VIA: (pm) => ({ | ||
en: `Installing packages via ${pm}`, | ||
es: `Instalaci\xF3n de paquetes a trav\xE9s de ${pm}`, | ||
fr: `Installation de packages via ${pm}`, | ||
ja: `\u7D4C\u7531\u3067\u30D1\u30C3\u30B1\u30FC\u30B8\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3059\u308B ${pm}` | ||
}), | ||
CONFIG_UPDATED: { | ||
en: "Config updated", | ||
es: "Configuraci\xF3n actualizada", | ||
fr: "Configuration mise \xE0 jour", | ||
ja: "\u69CB\u6210\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F" | ||
}, | ||
PACKAGES_INSTALLED: { | ||
en: "Packages installed", | ||
es: "Paquetes instalados", | ||
fr: "Paquets install\xE9s", | ||
ja: "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8" | ||
}, | ||
POST_INSTALL: { | ||
en: "Running post install steps", | ||
es: "Ejecuci\xF3n de pasos posteriores a la instalaci\xF3n", | ||
fr: "Ex\xE9cution des \xE9tapes de post-installation", | ||
ja: "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5F8C\u306E\u624B\u9806\u306E\u5B9F\u884C" | ||
}, | ||
POST_INSTALL_COMPLETE: { | ||
en: "Post install complete", | ||
es: "Post instalaci\xF3n completa", | ||
fr: "Post-installation termin\xE9e", | ||
ja: "\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5F8C\u306E\u5B8C\u4E86" | ||
}, | ||
NO_SUPPORT: (n) => ({ | ||
en: `Can't automatically configure ${n}: we don't support it.`, | ||
es: `No se puede configurar autom\xE1ticamente ${n}: no lo admitimos`, | ||
fr: `Impossible de configurer automatiquement ${n}: nous ne le prenons pas en charge`, | ||
ja: `${n} \u3092\u81EA\u52D5\u7684\u306B\u69CB\u6210\u3067\u304D\u307E\u305B\u3093: \u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093` | ||
}), | ||
OPENING_IN_BROWSER: (s) => ({ | ||
en: `Opening ${s} in browser`, | ||
es: `Abriendo ${s} en el navegador`, | ||
fr: `Ouverture de ${s} dans le navigateur`, | ||
ja: `\u30D6\u30E9\u30A6\u30B6\u3067 ${s} \u3092\u958B\u304F` | ||
}), | ||
OPENED_IN_BROWSER: { | ||
en: "Successfully Opened in Browser", | ||
es: "Abierto con \xE9xito en el navegador", | ||
fr: "Ouvert avec succ\xE8s dans le navigateur", | ||
ja: "\u30D6\u30E9\u30A6\u30B6\u3067\u6B63\u5E38\u306B\u958B\u304D\u307E\u3057\u305F" | ||
} | ||
}; | ||
var t = new Proxy(TRANSLATIONS, { | ||
get(target, p, _receiver) { | ||
const l = validatedLocale(); | ||
let text = target[p]; | ||
if (typeof text === "function") { | ||
return new Proxy(text, { | ||
apply(target2, thisArg, argArray) { | ||
const newT = Reflect.apply(target2, thisArg, argArray); | ||
if (l in newT) { | ||
return newT[l]; | ||
} | ||
return newT["en"]; | ||
} | ||
}); | ||
} | ||
if (l in text) { | ||
return text[l]; | ||
} | ||
return text["en"]; | ||
} | ||
}); | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
locale, | ||
setLocale, | ||
t, | ||
validatedLocale | ||
}); | ||
"use strict";var i=Object.defineProperty;var _=Object.getOwnPropertyDescriptor;var I=Object.getOwnPropertyNames;var N=Object.prototype.hasOwnProperty;var R=(e,a)=>{for(var t in a)i(e,t,{get:a[t],enumerable:!0})},L=(e,a,t,n)=>{if(a&&typeof a=="object"||typeof a=="function")for(let r of I(a))!N.call(e,r)&&r!==t&&i(e,r,{get:()=>a[r],enumerable:!(n=_(a,r))||n.enumerable});return e};var O=e=>L(i({},"__esModule",{value:!0}),e);var x={};R(x,{locale:()=>E,setLocale:()=>h,t:()=>D,validatedLocale:()=>d});module.exports=O(x);var o=require("@solid-cli/reactivity");var l=["en","fr","es","de","ru","zh","ja","ko"];var m=require("@solid-cli/reactivity"),g=require("@clack/prompts");var c=require("os"),u=()=>process.env.XDG_CONFIG_HOME??(0,c.homedir)();var p=require("path"),f=require("smol-toml"),T=require("@solid-cli/reactivity");var y={lang:Intl.DateTimeFormat().resolvedOptions().locale.split("-")[0]},$=(0,p.join)(u(),"/solid-cli.config.toml"),[S,A]=(0,T.createSignal)(y);var[E,h]=(0,o.createSignal)(null),d=(0,o.createMemo)(()=>{let e=E();if(!e)return"en";let a=!!l.find(t=>t.toLowerCase()===e.toLowerCase());return a||g.log.warn(`Unsupported language: ${e}. Defaulting to English.`),a?e:"en"});(0,o.createEffect)((0,m.on)(d,e=>{A({...S(),lang:e})},{defer:!0}));var v={AUTOCOMPLETE_SELECTED:{en:"Selected Packages",es:"Paquetes seleccionados",fr:"Forfaits s\xE9lectionn\xE9s",ja:"\u9078\u629E\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8"},AUTOCOMPLETE_NO_RESULTS:{en:"No results",es:"No hay resultados",fr:"Aucun r\xE9sultat",ja:"\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093"},SELECT_START_ACTION:{en:"Select a SolidStart specific action",es:"Seleccione una acci\xF3n espec\xEDfica de SolidStart",fr:"S\xE9lectionnez une action sp\xE9cifique \xE0 SolidStart",ja:"SolidStart \u56FA\u6709\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u307E\u3059"},SELECT_ACTION:{en:"Select an action",es:"Seleccione una acci\xF3n",fr:"S\xE9lectionnez une action",ja:"\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u9078\u629E\u3057\u3066\u304F\u3060\u3055\u3044"},ACTION_ADD:{en:"Add an integration",es:"A\xF1adir una integraci\xF3n",fr:"Ajouter une int\xE9gration",ja:"\u7D71\u5408\u3092\u8FFD\u52A0\u3059\u308B"},ACTION_NEW:{en:"Create new project",es:"Crear nuevo proyecto",fr:"Cr\xE9er un nouveau projet",ja:"\u65B0\u3057\u3044\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210\u3059\u308B"},ACTION_START:{en:"A start specific action",es:"Una acci\xF3n espec\xEDfica de inicio",fr:"Une action sp\xE9cifique de d\xE9marrage",ja:"\u7279\u5B9A\u306E\u30A2\u30AF\u30B7\u30E7\u30F3\u3092\u958B\u59CB\u3059\u308B"},NEW_VARIATION_DESC:{en:"The variation to create, for example `bare`",es:"La variaci\xF3n a crear, por ejemplo `bare`",fr:"La variante \xE0 cr\xE9er, par exemple `bare`",ja:"\u4F5C\u6210\u3059\u308B\u30D0\u30EA\u30A8\u30FC\u30B7\u30E7\u30F3\u3001\u305F\u3068\u3048\u3070\u300Cbare\u300D"},NEW_NAME_DESC:{en:"The name of the folder to create",es:"El nombre de la carpeta a crear.",fr:"Le nom du dossier \xE0 cr\xE9er",ja:"\u4F5C\u6210\u3059\u308B\u30D5\u30A9\u30EB\u30C0\u30FC\u306E\u540D\u524D"},IS_START_PROJECT:{en:"Is this a Solid-Start project?",es:"\xBFEs este un proyecto de Solid-Start?",fr:"Est-ce un projet Solid-Start\xA0?",ja:"\u3053\u308C\u306F\u30BD\u30EA\u30C3\u30C9\u30B9\u30BF\u30FC\u30C8\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3067\u3059\u304B?"},START_MODE:{en:"Mode",es:"Modo",fr:"Mode",ja:"\u30E2\u30FC\u30C9"},START_MODE_HINT:{en:"Changes the mode of the solid app (SSR, CSR, SSG)",es:"Cambia el modo de la aplicaci\xF3n s\xF3lida (SSR, CSR, SSG)",fr:"Modifie le mode de l'application solide (SSR, CSR, SSG)",ja:"\u30BD\u30EA\u30C3\u30C9\u30A2\u30D7\u30EA\u306E\u30E2\u30FC\u30C9\u3092\u5909\u66F4\u3057\u307E\u3059\uFF08SSR\u3001CSR\u3001SSG\uFF09"},START_MODE_DESC:{en:"The rendering mode for solid to build for, and use.",es:"El modo de renderizado de solid para construir y usar.",fr:"Le mode de rendu du solid pour lequel construire et utiliser.",ja:"solid \u304C\u30D3\u30EB\u30C9\u3057\u3066\u4F7F\u7528\u3059\u308B\u30EC\u30F3\u30C0\u30EA\u30F3\u30B0 \u30E2\u30FC\u30C9\u3002"},START_ROUTE:{en:"Route",es:"Ruta",fr:"Itin\xE9raire",ja:"\u30EB\u30FC\u30C8"},START_ROUTE_HINT:{en:"Allows you to create a new file system route",es:"Le permite crear una nueva ruta de sistema de archivos",fr:"Vous permet de cr\xE9er une nouvelle route de syst\xE8me de fichiers",ja:"\u65B0\u3057\u3044\u30D5\u30A1\u30A4\u30EB \u30B7\u30B9\u30C6\u30E0 \u30EB\u30FC\u30C8\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059\u3002"},START_ROUTE_DESC:{en:"The name of `.tsx` file to be generated",es:"El nombre del archivo `.tsx` que se generar\xE1",fr:"Le nom du fichier `.tsx` \xE0 g\xE9n\xE9rer",ja:"\u751F\u6210\u3055\u308C\u308B `.tsx` \u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D"},START_DATA:{en:"Data File",es:"Archivo de datos",fr:"Fichier de donn\xE9es",ja:"\u30C7\u30FC\u30BF\u30D5\u30A1\u30A4\u30EB"},START_DATA_HINT:{en:"Allows you to create a new data file within a route",es:"Le permite crear un nuevo archivo de datos dentro de una ruta",fr:"Permet de cr\xE9er un nouveau fichier de donn\xE9es au sein d'un itin\xE9raire",ja:"\u30EB\u30FC\u30C8\u5185\u306B\u65B0\u3057\u3044\u30C7\u30FC\u30BF \u30D5\u30A1\u30A4\u30EB\u3092\u4F5C\u6210\u3067\u304D\u307E\u3059\u3002"},START_DATA_DESC:{en:"The name of the `.data.ts` file to be generated.",es:"El nombre del archivo `.data.ts` que se generar\xE1.",fr:"Le nom du fichier `.data.ts` \xE0 g\xE9n\xE9rer.",ja:"\u751F\u6210\u3055\u308C\u308B `.data.ts` \u30D5\u30A1\u30A4\u30EB\u306E\u540D\u524D\u3002"},START_ADAPTER:{en:"Adapter",es:"Adaptador",fr:"Adaptateur",ja:"\u30A2\u30C0\u30D7\u30BF"},START_ADAPTER_HINT:{en:"Allows for setting and updating the adapter used to build a start app",es:"Permite configurar y actualizar el adaptador utilizado para crear una aplicaci\xF3n de inicio",fr:"Permet de d\xE9finir et de mettre \xE0 jour l'adaptateur utilis\xE9 pour cr\xE9er une application de d\xE9marrage",ja:"\u30B9\u30BF\u30FC\u30C8\u30A2\u30D7\u30EA\u306E\u69CB\u7BC9\u306B\u4F7F\u7528\u3055\u308C\u308B\u30A2\u30C0\u30D7\u30BF\u30FC\u306E\u8A2D\u5B9A\u3068\u66F4\u65B0\u304C\u53EF\u80FD"},START_ADAPTER_DISPLAYNAME:{en:"Adapter name",es:"Nombre del adaptador",fr:"Nom de l'adaptateur",ja:"\u30A2\u30C0\u30D7\u30BF\u30FC\u540D"},START_API:{en:"API",es:"API",fr:"API",ja:"API"},START_API_HINT:{en:"Create an API route",es:"Crear una ruta API",fr:"Cr\xE9er une route d'API",ja:"API\u30EB\u30FC\u30C8\u3092\u4F5C\u6210\u3059\u308B"},START_API_DISPLAYNAME:{en:"API file name",es:"Nombre de archivo API",fr:"Nom du fichier API",ja:"API\u30D5\u30A1\u30A4\u30EB\u540D"},CANCELED:{en:"Canceled",es:"Cancelado",fr:"Annul\xE9",ja:"\u30AD\u30E3\u30F3\u30BB\u30EB"},CONFIRM_INSTALL:e=>({en:`Install the following (${e}) packages?`,es:`Instale lo siguiente (${e}) paquetes?`,fr:`Installez les \xE9l\xE9ments suivants (${e}) paquets?`,ja:`\u4EE5\u4E0B\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u307E\u3059 (${e}) \u30D1\u30C3\u30B1\u30FC\u30B8\uFF1F`}),NEW_START:{en:"Which template would you like to use?",es:"\xBFQu\xE9 plantilla te gustar\xEDa usar?",fr:"Quel mod\xE8le souhaitez-vous utiliser\xA0?",ja:"\u3069\u306E\u30C6\u30F3\u30D7\u30EC\u30FC\u30C8\u3092\u4F7F\u3044\u305F\u3044\u3067\u3059\u304B?"},ADD_DESC:{en:"Can add and install integrations: `solid add unocss`.",es:"Puede agregar e instalar integraciones: `solid add unocss`.",fr:"Peut ajouter et installer des int\xE9grations\xA0: `solid add unocss`.",ja:"\u7D71\u5408\u3092\u8FFD\u52A0\u304A\u3088\u3073\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3067\u304D\u307E\u3059: `solid add unocss`\u3002"},NEW_DESC:{en:"Creates a new solid project",es:"Crea un nuevo proyecto s\xF3lido.",fr:"Cr\xE9e un nouveau projet solide",ja:"\u65B0\u3057\u3044\u30BD\u30EA\u30C3\u30C9\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u3092\u4F5C\u6210\u3057\u307E\u3059"},ADD_PACKAGES:{en:"Add packages",es:"Agregar paquetes",fr:"Ajouter des forfaits",ja:"\u30D1\u30C3\u30B1\u30FC\u30B8\u306E\u8FFD\u52A0"},NOTHING_SELECTED:{en:"Nothing selected",es:"Nada seleccionado",fr:"Rien de s\xE9lectionn\xE9",ja:"\u4F55\u3082\u9078\u629E\u3055\u308C\u3066\u3044\u307E\u305B\u3093"},YES:{en:"Yes",es:"S\xED",fr:"Oui",ja:"\u306F\u3044"},NO:{en:"No",es:"No",fr:"Non",ja:"\u3044\u3044\u3048"},YES_FORCE:{en:"Yes (force)",es:"S\xED (fuerza)",fr:"Oui (forcer)",ja:"\u306F\u3044\uFF08\u5F37\u5236\uFF09"},PROJECT_CREATED:{en:"Project successfully created! \u{1F389}",es:"\xA1Proyecto creado con \xE9xito! \u{1F389}",fr:"Projet cr\xE9\xE9 avec succ\xE8s! \u{1F389}",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u304C\u6B63\u5E38\u306B\u4F5C\u6210\u3055\u308C\u307E\u3057\u305F\u3002 \u{1F389}"},CREATING_PROJECT:{en:"Creating project",es:"Creando proyecto",fr:"Cr\xE9ation de projet",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u306E\u4F5C\u6210"},TEMPLATE:{en:"Template",es:"Plantilla",fr:"Mod\xE8le",ja:"\u30EC\u30F3\u30D7\u30EC\u30FC\u30C8"},GET_STARTED:{en:"To get started, run:",es:"Para empezar, ejecuta:",fr:"Pour commencer, ex\xE9cutez\xA0:",ja:"\u958B\u59CB\u3059\u308B\u306B\u306F\u3001\u6B21\u3092\u5B9F\u884C\u3057\u307E\u3059\u3002"},PROJECT_NAME:{en:"Project Name",es:"Nombre del proyecto",fr:"nom du projet",ja:"\u30D7\u30ED\u30B8\u30A7\u30AF\u30C8\u540D"},LOADING_PRIMITIVES:{en:"Loading primitives",es:"Cargando primitivas",fr:"Chargement des primitives",ja:"\u30D7\u30EA\u30DF\u30C6\u30A3\u30D6\u306E\u30ED\u30FC\u30C9"},PRIMITIVES_LOADED:{en:"Primitives loaded",es:"Primitivos cargados",fr:"Primitives charg\xE9es",ja:"\u30D7\u30EA\u30DF\u30C6\u30A3\u30D6\u304C\u30ED\u30FC\u30C9\u3055\u308C\u307E\u3057\u305F"},INSTALLING_VIA:e=>({en:`Installing packages via ${e}`,es:`Instalaci\xF3n de paquetes a trav\xE9s de ${e}`,fr:`Installation de packages via ${e}`,ja:`\u7D4C\u7531\u3067\u30D1\u30C3\u30B1\u30FC\u30B8\u3092\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3059\u308B ${e}`}),CONFIG_UPDATED:{en:"Config updated",es:"Configuraci\xF3n actualizada",fr:"Configuration mise \xE0 jour",ja:"\u69CB\u6210\u304C\u66F4\u65B0\u3055\u308C\u307E\u3057\u305F"},PACKAGES_INSTALLED:{en:"Packages installed",es:"Paquetes instalados",fr:"Paquets install\xE9s",ja:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u305F\u30D1\u30C3\u30B1\u30FC\u30B8"},POST_INSTALL:{en:"Running post install steps",es:"Ejecuci\xF3n de pasos posteriores a la instalaci\xF3n",fr:"Ex\xE9cution des \xE9tapes de post-installation",ja:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5F8C\u306E\u624B\u9806\u306E\u5B9F\u884C"},POST_INSTALL_COMPLETE:{en:"Post install complete",es:"Post instalaci\xF3n completa",fr:"Post-installation termin\xE9e",ja:"\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u5F8C\u306E\u5B8C\u4E86"},NO_SUPPORT:e=>({en:`Can't automatically configure ${e}: we don't support it.`,es:`No se puede configurar autom\xE1ticamente ${e}: no lo admitimos`,fr:`Impossible de configurer automatiquement ${e}: nous ne le prenons pas en charge`,ja:`${e} \u3092\u81EA\u52D5\u7684\u306B\u69CB\u6210\u3067\u304D\u307E\u305B\u3093: \u30B5\u30DD\u30FC\u30C8\u3055\u308C\u3066\u3044\u307E\u305B\u3093`}),OPENING_IN_BROWSER:e=>({en:`Opening ${e} in browser`,es:`Abriendo ${e} en el navegador`,fr:`Ouverture de ${e} dans le navigateur`,ja:`\u30D6\u30E9\u30A6\u30B6\u3067 ${e} \u3092\u958B\u304F`}),OPENED_IN_BROWSER:{en:"Successfully Opened in Browser",es:"Abierto con \xE9xito en el navegador",fr:"Ouvert avec succ\xE8s dans le navigateur",ja:"\u30D6\u30E9\u30A6\u30B6\u3067\u6B63\u5E38\u306B\u958B\u304D\u307E\u3057\u305F"}},D=new Proxy(v,{get(e,a,t){let n=d(),r=e[a];return typeof r=="function"?new Proxy(r,{apply(j,P,C){let s=Reflect.apply(j,P,C);return n in s?s[n]:s.en}}):n in r?r[n]:r.en}});0&&(module.exports={locale,setLocale,t,validatedLocale}); | ||
//# sourceMappingURL=translations.js.map |
@@ -1,31 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/translations/types.ts | ||
var types_exports = {}; | ||
__export(types_exports, { | ||
SupportedLanguages: () => SupportedLanguages | ||
}); | ||
module.exports = __toCommonJS(types_exports); | ||
var SupportedLanguages = ["en", "fr", "es", "de", "ru", "zh", "ja", "ko"]; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
SupportedLanguages | ||
}); | ||
"use strict";var r=Object.defineProperty;var s=Object.getOwnPropertyDescriptor;var p=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var u=(a,e)=>{for(var n in e)r(a,n,{get:e[n],enumerable:!0})},i=(a,e,n,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let t of p(e))!g.call(a,t)&&t!==n&&r(a,t,{get:()=>e[t],enumerable:!(o=s(e,t))||o.enumerable});return a};var l=a=>i(r({},"__esModule",{value:!0}),a);var c={};u(c,{SupportedLanguages:()=>L});module.exports=l(c);var L=["en","fr","es","de","ru","zh","ja","ko"];0&&(module.exports={SupportedLanguages}); | ||
//# sourceMappingURL=types.js.map |
@@ -1,127 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __export = (target, all) => { | ||
for (var name in all) | ||
__defProp(target, name, { get: all[name], enumerable: true }); | ||
}; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/updates/index.ts | ||
var updates_exports = {}; | ||
__export(updates_exports, { | ||
UPDATESQUEUE: () => UPDATESQUEUE, | ||
clearQueue: () => clearQueue, | ||
flushCommandUpdates: () => flushCommandUpdates, | ||
flushFileUpdates: () => flushFileUpdates, | ||
flushPackageUpdates: () => flushPackageUpdates, | ||
flushQueue: () => flushQueue, | ||
queueUpdate: () => queueUpdate, | ||
readQueued: () => readQueued, | ||
readQueuedFile: () => readQueuedFile, | ||
summarizeUpdates: () => summarizeUpdates, | ||
unqueueUpdate: () => unqueueUpdate | ||
}); | ||
module.exports = __toCommonJS(updates_exports); | ||
var import_promises = require("fs/promises"); | ||
var import_execa = require("execa"); | ||
var import_detect_package_manager = require("detect-package-manager"); | ||
var UPDATESQUEUE = globalThis.UPDATESQUEUE ?? []; | ||
globalThis.UPDATESQUEUE = UPDATESQUEUE; | ||
var installCommand = (pM) => { | ||
switch (pM) { | ||
case "npm": | ||
return "install"; | ||
case "yarn": | ||
return "add"; | ||
case "pnpm": | ||
return "add"; | ||
} | ||
}; | ||
var clearQueue = () => { | ||
UPDATESQUEUE.length = 0; | ||
}; | ||
var summarizeUpdates = () => { | ||
const fileUpdates = UPDATESQUEUE.filter((u) => u.type === "file").map((s) => s.name); | ||
const packageUpdates = UPDATESQUEUE.filter((u) => u.type === "package").map((s) => s.name); | ||
const commandUpdates = UPDATESQUEUE.filter((u) => u.type === "command").map((s) => s.name); | ||
return { packageUpdates, commandUpdates, fileUpdates }; | ||
}; | ||
var queueUpdate = (update) => { | ||
UPDATESQUEUE.push(update); | ||
}; | ||
var unqueueUpdate = (name, type) => { | ||
const index = UPDATESQUEUE.findIndex((u) => u.name === name && u.type === type); | ||
if (index === -1) | ||
return; | ||
UPDATESQUEUE.splice(index, 1); | ||
}; | ||
var readQueued = (name) => { | ||
return UPDATESQUEUE.find((u) => u.name === name); | ||
}; | ||
var readQueuedFile = (name) => { | ||
const queued = readQueued(name); | ||
if (!queued || queued.type !== "file") | ||
return null; | ||
return queued; | ||
}; | ||
var flushFileUpdates = async () => { | ||
const fileUpdates = UPDATESQUEUE.filter((u) => u.type === "file"); | ||
for (const update of fileUpdates) { | ||
if (!update.checked) { | ||
await (0, import_promises.writeFile)(update.name, update.contents); | ||
continue; | ||
} | ||
const handle = await (0, import_promises.open)(update.name, "wx"); | ||
try { | ||
await handle.writeFile(update.contents); | ||
} finally { | ||
await handle.close(); | ||
} | ||
} | ||
}; | ||
var flushPackageUpdates = async () => { | ||
const packageUpdates = UPDATESQUEUE.filter((u) => u.type === "package"); | ||
const pM = await (0, import_detect_package_manager.detect)(); | ||
const instlCmd = installCommand(pM); | ||
for (const update of packageUpdates) { | ||
await import_execa.$`${pM} ${instlCmd} ${update.name}`; | ||
} | ||
}; | ||
var flushCommandUpdates = async () => { | ||
const commandUpdates = UPDATESQUEUE.filter((u) => u.type === "command"); | ||
for (const update of commandUpdates) { | ||
await import_execa.$`${update.name}`; | ||
} | ||
}; | ||
var flushQueue = async () => { | ||
await flushFileUpdates(); | ||
await flushPackageUpdates(); | ||
await flushCommandUpdates(); | ||
clearQueue(); | ||
}; | ||
// Annotate the CommonJS export names for ESM import in node: | ||
0 && (module.exports = { | ||
UPDATESQUEUE, | ||
clearQueue, | ||
flushCommandUpdates, | ||
flushFileUpdates, | ||
flushPackageUpdates, | ||
flushQueue, | ||
queueUpdate, | ||
readQueued, | ||
readQueuedFile, | ||
summarizeUpdates, | ||
unqueueUpdate | ||
}); | ||
"use strict";var r=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var y=Object.getOwnPropertyNames;var g=Object.prototype.hasOwnProperty;var x=(t,e)=>{for(var n in e)r(t,n,{get:e[n],enumerable:!0})},w=(t,e,n,a)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of y(e))!g.call(t,s)&&s!==n&&r(t,s,{get:()=>e[s],enumerable:!(a=f(e,s))||a.enumerable});return t};var h=t=>w(r({},"__esModule",{value:!0}),t);var S={};x(S,{UPDATESQUEUE:()=>p,clearQueue:()=>i,flushCommandUpdates:()=>u,flushFileUpdates:()=>l,flushPackageUpdates:()=>U,flushQueue:()=>C,queueUpdate:()=>P,readQueued:()=>m,readQueuedFile:()=>Q,summarizeUpdates:()=>E,unqueueUpdate:()=>F});module.exports=h(S);var o=require("fs/promises"),c=require("execa"),d=require("detect-package-manager"),p=globalThis.UPDATESQUEUE??[];globalThis.UPDATESQUEUE=p;var k=t=>{switch(t){case"npm":return"install";case"yarn":return"add";case"pnpm":return"add"}},i=()=>{p.length=0},E=()=>{let t=p.filter(a=>a.type==="file").map(a=>a.name),e=p.filter(a=>a.type==="package").map(a=>a.name),n=p.filter(a=>a.type==="command").map(a=>a.name);return{packageUpdates:e,commandUpdates:n,fileUpdates:t}},P=t=>{p.push(t)},F=(t,e)=>{let n=p.findIndex(a=>a.name===t&&a.type===e);n!==-1&&p.splice(n,1)},m=t=>p.find(e=>e.name===t),Q=t=>{let e=m(t);return!e||e.type!=="file"?null:e},l=async()=>{let t=p.filter(e=>e.type==="file");for(let e of t){if(!e.checked){await(0,o.writeFile)(e.name,e.contents);continue}let n=await(0,o.open)(e.name,"wx");try{await n.writeFile(e.contents)}finally{await n.close()}}},U=async()=>{let t=p.filter(a=>a.type==="package"),e=await(0,d.detect)(),n=k(e);for(let a of t)await c.$`${e} ${n} ${a.name}`},u=async()=>{let t=p.filter(e=>e.type==="command");for(let e of t)await c.$`${e.name}`},C=async()=>{await l(),await U(),await u(),i()};0&&(module.exports={UPDATESQUEUE,clearQueue,flushCommandUpdates,flushFileUpdates,flushPackageUpdates,flushQueue,queueUpdate,readQueued,readQueuedFile,summarizeUpdates,unqueueUpdate}); | ||
//# sourceMappingURL=index.js.map |
@@ -1,19 +0,2 @@ | ||
"use strict"; | ||
var __defProp = Object.defineProperty; | ||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor; | ||
var __getOwnPropNames = Object.getOwnPropertyNames; | ||
var __hasOwnProp = Object.prototype.hasOwnProperty; | ||
var __copyProps = (to, from, except, desc) => { | ||
if (from && typeof from === "object" || typeof from === "function") { | ||
for (let key of __getOwnPropNames(from)) | ||
if (!__hasOwnProp.call(to, key) && key !== except) | ||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); | ||
} | ||
return to; | ||
}; | ||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); | ||
// src/util-types/index.ts | ||
var util_types_exports = {}; | ||
module.exports = __toCommonJS(util_types_exports); | ||
"use strict";var e=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var o=(n,t,g,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of a(t))!l.call(n,i)&&i!==g&&e(n,i,{get:()=>t[i],enumerable:!(r=p(t,i))||r.enumerable});return n};var s=n=>o(e({},"__esModule",{value:!0}),n);var u={};module.exports=s(u); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@solid-cli/utils", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "A collection of utilities for the Solid CLI", | ||
@@ -68,6 +68,6 @@ "license": "MIT", | ||
"detect-package-manager": "^2.0.1", | ||
"execa": "^7.2.0", | ||
"execa": "^8.0.1", | ||
"picocolors": "^1.0.0", | ||
"smol-toml": "^1.1.1", | ||
"@solid-cli/reactivity": "0.0.8" | ||
"@solid-cli/reactivity": "0.0.10" | ||
}, | ||
@@ -74,0 +74,0 @@ "scripts": { |
@@ -39,6 +39,6 @@ import { createEffect, createMemo, createSignal } from "@solid-cli/reactivity"; | ||
SELECT_START_ACTION: { | ||
en: "Select a start action", | ||
es: "Seleccione una acción de inicio", | ||
fr: "Sélectionnez une action de démarrage", | ||
ja: "開始アクションを選択してください", | ||
en: "Select a SolidStart specific action", | ||
es: "Seleccione una acción específica de SolidStart", | ||
fr: "Sélectionnez une action spécifique à SolidStart", | ||
ja: "SolidStart 固有のアクションを選択します", | ||
}, | ||
@@ -45,0 +45,0 @@ SELECT_ACTION: { |
@@ -11,3 +11,4 @@ import { defineConfig } from "tsup"; | ||
clean: true, | ||
minify: true, | ||
esbuildPlugins: [metaUrlPlugin()], | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5126699
1225
17
5
+ Added@solid-cli/reactivity@0.0.10(transitive)
+ Addedexeca@8.0.1(transitive)
+ Addedget-stream@8.0.1(transitive)
+ Addedhuman-signals@5.0.0(transitive)
+ Addedsignal-exit@4.1.0(transitive)
- Removed@solid-cli/reactivity@0.0.8(transitive)
- Removedexeca@7.2.0(transitive)
- Removedhuman-signals@4.3.1(transitive)
Updated@solid-cli/reactivity@0.0.10
Updatedexeca@^8.0.1