code-languages 1.8.0 → 1.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -1
- package/dist/api.cjs +124 -0
- package/dist/api.cjs.map +1 -1
- package/dist/api.d.cts +79 -0
- package/dist/api.d.ts +79 -0
- package/dist/api.js +124 -0
- package/dist/api.js.map +1 -1
- package/dist/detect.cjs +88 -0
- package/dist/detect.cjs.map +1 -1
- package/dist/detect.js +88 -0
- package/dist/detect.js.map +1 -1
- package/dist/index.cjs +127 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +79 -0
- package/dist/index.d.ts +79 -0
- package/dist/index.js +128 -1
- package/dist/index.js.map +1 -1
- package/dist/languages/batch.cjs +33 -0
- package/dist/languages/batch.cjs.map +1 -0
- package/dist/languages/batch.d.cts +28 -0
- package/dist/languages/batch.d.ts +28 -0
- package/dist/languages/batch.js +31 -0
- package/dist/languages/batch.js.map +1 -0
- package/dist/languages/git.cjs +33 -0
- package/dist/languages/git.cjs.map +1 -0
- package/dist/languages/git.d.cts +28 -0
- package/dist/languages/git.d.ts +28 -0
- package/dist/languages/git.js +31 -0
- package/dist/languages/git.js.map +1 -0
- package/dist/languages/gradle.cjs +34 -0
- package/dist/languages/gradle.cjs.map +1 -0
- package/dist/languages/gradle.d.cts +29 -0
- package/dist/languages/gradle.d.ts +29 -0
- package/dist/languages/gradle.js +32 -0
- package/dist/languages/gradle.js.map +1 -0
- package/package.json +16 -1
package/dist/index.cjs
CHANGED
|
@@ -199,6 +199,43 @@ var init_bash = __esm({
|
|
|
199
199
|
}
|
|
200
200
|
});
|
|
201
201
|
|
|
202
|
+
// src/languages/batch.ts
|
|
203
|
+
var batch_exports = {};
|
|
204
|
+
__export(batch_exports, {
|
|
205
|
+
batch: () => exports.batch
|
|
206
|
+
});
|
|
207
|
+
exports.batch = void 0;
|
|
208
|
+
var init_batch = __esm({
|
|
209
|
+
"src/languages/batch.ts"() {
|
|
210
|
+
exports.batch = {
|
|
211
|
+
slug: "batch",
|
|
212
|
+
publishedDate: "1981-08-12",
|
|
213
|
+
extensions: [".bat", ".cmd"],
|
|
214
|
+
author: "Microsoft / IBM",
|
|
215
|
+
website: "https://learn.microsoft.com/windows-server/administration/windows-commands/windows-commands",
|
|
216
|
+
paradigms: ["command", "imperative", "scripting", "shell"],
|
|
217
|
+
tooling: {
|
|
218
|
+
runtimes: ["Command Prompt", "cmd.exe", "MS-DOS"],
|
|
219
|
+
ecosystems: ["Windows", "DOS", "Automation"]
|
|
220
|
+
},
|
|
221
|
+
version: "Windows Command Processor",
|
|
222
|
+
logo: "https://icons.iconarchive.com/icons/simpleicons-team/simple/128/windowsterminal-icon.png",
|
|
223
|
+
i18n: {
|
|
224
|
+
en: {
|
|
225
|
+
name: "Batch",
|
|
226
|
+
description: "A Windows command scripting format used to automate command-line tasks with cmd.exe.",
|
|
227
|
+
longDescription: "Batch files contain commands interpreted by the Windows Command Processor, including command invocation, variables, labels, conditionals, loops, argument handling, and process control.\n\nThey are used for Windows setup scripts, developer shortcuts, administrative automation, legacy DOS workflows, and simple command-line task orchestration on Windows systems."
|
|
228
|
+
},
|
|
229
|
+
es: {
|
|
230
|
+
name: "Batch",
|
|
231
|
+
description: "Un formato de scripting de comandos de Windows usado para automatizar tareas con cmd.exe.",
|
|
232
|
+
longDescription: "Los archivos Batch contienen comandos interpretados por Windows Command Processor, incluyendo invocacion de comandos, variables, etiquetas, condicionales, bucles, manejo de argumentos y control de procesos.\n\nSe usan para scripts de configuracion en Windows, accesos rapidos de desarrollo, automatizacion administrativa, flujos legacy de DOS y orquestacion simple de tareas de linea de comandos en sistemas Windows."
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
});
|
|
238
|
+
|
|
202
239
|
// src/languages/c.ts
|
|
203
240
|
var c_exports = {};
|
|
204
241
|
__export(c_exports, {
|
|
@@ -609,6 +646,43 @@ var init_fsharp = __esm({
|
|
|
609
646
|
}
|
|
610
647
|
});
|
|
611
648
|
|
|
649
|
+
// src/languages/git.ts
|
|
650
|
+
var git_exports = {};
|
|
651
|
+
__export(git_exports, {
|
|
652
|
+
git: () => exports.git
|
|
653
|
+
});
|
|
654
|
+
exports.git = void 0;
|
|
655
|
+
var init_git = __esm({
|
|
656
|
+
"src/languages/git.ts"() {
|
|
657
|
+
exports.git = {
|
|
658
|
+
slug: "git",
|
|
659
|
+
publishedDate: "2005-04-07",
|
|
660
|
+
extensions: [".git", ".gitignore", ".gitattributes", ".gitmodules", ".gitkeep"],
|
|
661
|
+
author: "Linus Torvalds / Junio C Hamano",
|
|
662
|
+
website: "https://git-scm.com",
|
|
663
|
+
paradigms: ["configuration", "version-control", "ignore-patterns"],
|
|
664
|
+
tooling: {
|
|
665
|
+
runtimes: ["Git"],
|
|
666
|
+
ecosystems: ["Version Control", "DevOps", "Source Control"]
|
|
667
|
+
},
|
|
668
|
+
version: "2.54.0",
|
|
669
|
+
logo: "https://cdn.simpleicons.org/git/F05032",
|
|
670
|
+
i18n: {
|
|
671
|
+
en: {
|
|
672
|
+
name: "Git",
|
|
673
|
+
description: "Metadata and configuration files used by Git repositories and version-control workflows.",
|
|
674
|
+
longDescription: "Git-related files define repository ignore rules, attributes, submodules, local configuration, placeholders, and repository metadata used by Git tooling.\n\nThey are used in software projects to control which files are tracked, how paths are treated, how submodules are linked, and how repository-specific automation or conventions behave."
|
|
675
|
+
},
|
|
676
|
+
es: {
|
|
677
|
+
name: "Git",
|
|
678
|
+
description: "Archivos de metadata y configuracion usados por repositorios Git y flujos de control de versiones.",
|
|
679
|
+
longDescription: "Los archivos relacionados con Git definen reglas de ignorado, atributos, submodulos, configuracion local, placeholders y metadata de repositorio usada por herramientas Git.\n\nSe usan en proyectos de software para controlar que archivos se versionan, como se tratan las rutas, como se enlazan submodulos y como se comportan automatizaciones o convenciones especificas del repositorio."
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
};
|
|
683
|
+
}
|
|
684
|
+
});
|
|
685
|
+
|
|
612
686
|
// src/languages/go.ts
|
|
613
687
|
var go_exports = {};
|
|
614
688
|
__export(go_exports, {
|
|
@@ -647,6 +721,44 @@ var init_go = __esm({
|
|
|
647
721
|
}
|
|
648
722
|
});
|
|
649
723
|
|
|
724
|
+
// src/languages/gradle.ts
|
|
725
|
+
var gradle_exports = {};
|
|
726
|
+
__export(gradle_exports, {
|
|
727
|
+
gradle: () => exports.gradle
|
|
728
|
+
});
|
|
729
|
+
exports.gradle = void 0;
|
|
730
|
+
var init_gradle = __esm({
|
|
731
|
+
"src/languages/gradle.ts"() {
|
|
732
|
+
exports.gradle = {
|
|
733
|
+
slug: "gradle",
|
|
734
|
+
publishedDate: "2007-07-01",
|
|
735
|
+
extensions: [".gradle", ".gradle.kts"],
|
|
736
|
+
author: "Hans Dockter / Gradle Inc.",
|
|
737
|
+
website: "https://gradle.org",
|
|
738
|
+
paradigms: ["build-automation", "declarative", "imperative", "configuration"],
|
|
739
|
+
tooling: {
|
|
740
|
+
runtimes: ["JVM", "Gradle"],
|
|
741
|
+
packageManagers: ["Gradle"],
|
|
742
|
+
ecosystems: ["JVM", "Android", "Java", "Kotlin", "Groovy"]
|
|
743
|
+
},
|
|
744
|
+
version: "9.5.0",
|
|
745
|
+
logo: "https://cdn.simpleicons.org/gradle/02303A",
|
|
746
|
+
i18n: {
|
|
747
|
+
en: {
|
|
748
|
+
name: "Gradle",
|
|
749
|
+
description: "A build automation DSL and tool used to define, configure, and run software builds.",
|
|
750
|
+
longDescription: "Gradle build scripts define projects, plugins, dependencies, repositories, tasks, test suites, publishing rules, and multi-project build logic using Groovy DSL or Kotlin DSL files.\n\nIt is widely used in Java, Kotlin, Android, JVM, and polyglot projects that need reproducible builds, dependency management, custom automation, and integration with CI/CD pipelines."
|
|
751
|
+
},
|
|
752
|
+
es: {
|
|
753
|
+
name: "Gradle",
|
|
754
|
+
description: "Un DSL y herramienta de automatizacion de builds usado para definir, configurar y ejecutar builds.",
|
|
755
|
+
longDescription: "Los scripts de build de Gradle definen proyectos, plugins, dependencias, repositorios, tareas, suites de prueba, reglas de publicacion y logica de builds multiproyecto usando archivos Groovy DSL o Kotlin DSL.\n\nSe usa ampliamente en proyectos Java, Kotlin, Android, JVM y poliglotas que necesitan builds reproducibles, gestion de dependencias, automatizacion personalizada e integracion con pipelines CI/CD."
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
};
|
|
759
|
+
}
|
|
760
|
+
});
|
|
761
|
+
|
|
650
762
|
// src/languages/graphql.ts
|
|
651
763
|
var graphql_exports = {};
|
|
652
764
|
__export(graphql_exports, {
|
|
@@ -2059,6 +2171,7 @@ init_asp();
|
|
|
2059
2171
|
init_assembly();
|
|
2060
2172
|
init_astro();
|
|
2061
2173
|
init_bash();
|
|
2174
|
+
init_batch();
|
|
2062
2175
|
init_c();
|
|
2063
2176
|
init_cmake();
|
|
2064
2177
|
init_cobol();
|
|
@@ -2070,7 +2183,9 @@ init_cuda();
|
|
|
2070
2183
|
init_dart();
|
|
2071
2184
|
init_dockerfile();
|
|
2072
2185
|
init_fsharp();
|
|
2186
|
+
init_git();
|
|
2073
2187
|
init_go();
|
|
2188
|
+
init_gradle();
|
|
2074
2189
|
init_graphql();
|
|
2075
2190
|
init_groovy();
|
|
2076
2191
|
init_html();
|
|
@@ -2115,6 +2230,7 @@ var languages = [
|
|
|
2115
2230
|
exports.astro,
|
|
2116
2231
|
exports.assembly,
|
|
2117
2232
|
exports.bash,
|
|
2233
|
+
exports.batch,
|
|
2118
2234
|
exports.c,
|
|
2119
2235
|
exports.cmake,
|
|
2120
2236
|
exports.coffeescript,
|
|
@@ -2126,7 +2242,9 @@ var languages = [
|
|
|
2126
2242
|
exports.dart,
|
|
2127
2243
|
exports.dockerfile,
|
|
2128
2244
|
exports.fsharp,
|
|
2245
|
+
exports.git,
|
|
2129
2246
|
exports.go,
|
|
2247
|
+
exports.gradle,
|
|
2130
2248
|
exports.graphql,
|
|
2131
2249
|
exports.groovy,
|
|
2132
2250
|
exports.html,
|
|
@@ -2229,6 +2347,7 @@ var languageIndex = [
|
|
|
2229
2347
|
slug: "bash",
|
|
2230
2348
|
extensions: [".sh", ".bash", ".bashrc", ".bash_profile", ".bash_login", ".profile"]
|
|
2231
2349
|
},
|
|
2350
|
+
{ slug: "batch", extensions: [".bat", ".cmd"] },
|
|
2232
2351
|
{ slug: "c", extensions: [".c", ".h"] },
|
|
2233
2352
|
{ slug: "cmake", extensions: ["CMakeLists.txt", ".cmake"] },
|
|
2234
2353
|
{ slug: "coffeescript", extensions: [".coffee", ".litcoffee", ".cson"] },
|
|
@@ -2240,7 +2359,9 @@ var languageIndex = [
|
|
|
2240
2359
|
{ slug: "dart", extensions: [".dart"] },
|
|
2241
2360
|
{ slug: "dockerfile", extensions: ["Dockerfile", ".dockerfile"] },
|
|
2242
2361
|
{ slug: "fsharp", extensions: [".fs", ".fsi", ".fsx", ".fsscript"] },
|
|
2362
|
+
{ slug: "git", extensions: [".git", ".gitignore", ".gitattributes", ".gitmodules", ".gitkeep"] },
|
|
2243
2363
|
{ slug: "go", extensions: [".go"] },
|
|
2364
|
+
{ slug: "gradle", extensions: [".gradle", ".gradle.kts"] },
|
|
2244
2365
|
{ slug: "graphql", extensions: [".graphql", ".gql", ".graphqls"] },
|
|
2245
2366
|
{ slug: "groovy", extensions: [".groovy", ".gvy", ".gy", ".gsh"] },
|
|
2246
2367
|
{ slug: "html", extensions: [".html", ".htm"] },
|
|
@@ -2292,6 +2413,7 @@ var languageLoaders = {
|
|
|
2292
2413
|
assembly: () => Promise.resolve().then(() => (init_assembly(), assembly_exports)).then((module) => module.assembly),
|
|
2293
2414
|
astro: () => Promise.resolve().then(() => (init_astro(), astro_exports)).then((module) => module.astro),
|
|
2294
2415
|
bash: () => Promise.resolve().then(() => (init_bash(), bash_exports)).then((module) => module.bash),
|
|
2416
|
+
batch: () => Promise.resolve().then(() => (init_batch(), batch_exports)).then((module) => module.batch),
|
|
2295
2417
|
c: () => Promise.resolve().then(() => (init_c(), c_exports)).then((module) => module.c),
|
|
2296
2418
|
cmake: () => Promise.resolve().then(() => (init_cmake(), cmake_exports)).then((module) => module.cmake),
|
|
2297
2419
|
cobol: () => Promise.resolve().then(() => (init_cobol(), cobol_exports)).then((module) => module.cobol),
|
|
@@ -2303,7 +2425,9 @@ var languageLoaders = {
|
|
|
2303
2425
|
dart: () => Promise.resolve().then(() => (init_dart(), dart_exports)).then((module) => module.dart),
|
|
2304
2426
|
dockerfile: () => Promise.resolve().then(() => (init_dockerfile(), dockerfile_exports)).then((module) => module.dockerfile),
|
|
2305
2427
|
fsharp: () => Promise.resolve().then(() => (init_fsharp(), fsharp_exports)).then((module) => module.fsharp),
|
|
2428
|
+
git: () => Promise.resolve().then(() => (init_git(), git_exports)).then((module) => module.git),
|
|
2306
2429
|
go: () => Promise.resolve().then(() => (init_go(), go_exports)).then((module) => module.go),
|
|
2430
|
+
gradle: () => Promise.resolve().then(() => (init_gradle(), gradle_exports)).then((module) => module.gradle),
|
|
2307
2431
|
graphql: () => Promise.resolve().then(() => (init_graphql(), graphql_exports)).then((module) => module.graphql),
|
|
2308
2432
|
groovy: () => Promise.resolve().then(() => (init_groovy(), groovy_exports)).then((module) => module.groovy),
|
|
2309
2433
|
html: () => Promise.resolve().then(() => (init_html(), html_exports)).then((module) => module.html),
|
|
@@ -2444,6 +2568,7 @@ init_asp();
|
|
|
2444
2568
|
init_astro();
|
|
2445
2569
|
init_assembly();
|
|
2446
2570
|
init_bash();
|
|
2571
|
+
init_batch();
|
|
2447
2572
|
init_c();
|
|
2448
2573
|
init_cmake();
|
|
2449
2574
|
init_coffeescript();
|
|
@@ -2455,7 +2580,9 @@ init_cuda();
|
|
|
2455
2580
|
init_dart();
|
|
2456
2581
|
init_dockerfile();
|
|
2457
2582
|
init_fsharp();
|
|
2583
|
+
init_git();
|
|
2458
2584
|
init_go();
|
|
2585
|
+
init_gradle();
|
|
2459
2586
|
init_graphql();
|
|
2460
2587
|
init_groovy();
|
|
2461
2588
|
init_html();
|