locusts 0.0.1

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.
Files changed (93) hide show
  1. checksums.yaml +7 -0
  2. data/.changeset/README.md +8 -0
  3. data/.changeset/cold-tomatoes-prove.md +5 -0
  4. data/.changeset/config.json +15 -0
  5. data/.changeset/purple-trainers-wash.md +5 -0
  6. data/.clang-format +270 -0
  7. data/.editorconfig +364 -0
  8. data/.eslintrc.js +9 -0
  9. data/.formatter.exs +4 -0
  10. data/.standard.yml +3 -0
  11. data/.syncpackrc +14 -0
  12. data/.vscode/settings.json +19 -0
  13. data/CMakeLists.txt +41 -0
  14. data/CONTRIBUTING.md +35 -0
  15. data/Cargo.lock +7 -0
  16. data/Cargo.toml +11 -0
  17. data/Dockerfile +15 -0
  18. data/GNUmakefile.am +11 -0
  19. data/LICENSE +12 -0
  20. data/Locusts.sln +28 -0
  21. data/README.md +69 -0
  22. data/Rakefile +15 -0
  23. data/build.gradle.kts +99 -0
  24. data/configure.ac +10 -0
  25. data/contrib/tag-repo +8 -0
  26. data/contrib/version-bump +23 -0
  27. data/deno.json +5 -0
  28. data/deno.lock +71 -0
  29. data/docs/.NET.md +29 -0
  30. data/docs/BEAM.md +25 -0
  31. data/docs/C.md +51 -0
  32. data/docs/Docker.md +14 -0
  33. data/docs/Go.md +33 -0
  34. data/docs/JVM.md +5 -0
  35. data/docs/JavaScript.md +8 -0
  36. data/docs/Python.md +34 -0
  37. data/docs/Rust.md +41 -0
  38. data/go.mod +3 -0
  39. data/gradle/libs.versions.toml +13 -0
  40. data/gradle/wrapper/gradle-wrapper.jar +0 -0
  41. data/gradle/wrapper/gradle-wrapper.properties +7 -0
  42. data/gradle.properties +7 -0
  43. data/gradlew +252 -0
  44. data/gradlew.bat +94 -0
  45. data/include/locusts.go +10 -0
  46. data/include/locusts.h +21 -0
  47. data/locusts.go +9 -0
  48. data/locusts_test.go +13 -0
  49. data/meson.build +21 -0
  50. data/mix.exs +44 -0
  51. data/mix.lock +8 -0
  52. data/ocusts.pc.in +9 -0
  53. data/package.json +25 -0
  54. data/pnpm-lock.yaml +5825 -0
  55. data/pnpm-workspace.yaml +2 -0
  56. data/pyproject.toml +17 -0
  57. data/requirements.txt +1 -0
  58. data/settings.gradle.kts +13 -0
  59. data/src/Locusts.cs +20 -0
  60. data/src/Locusts.csproj +37 -0
  61. data/src/__init__.py +0 -0
  62. data/src/lib.rs +23 -0
  63. data/src/locusts.c +3 -0
  64. data/src/locusts.ex +19 -0
  65. data/src/locusts.py +6 -0
  66. data/src/locusts.rb +14 -0
  67. data/src/main/kotlin/io/github/Locusts.kt +12 -0
  68. data/src/packages/eslint-config/README.md +3 -0
  69. data/src/packages/eslint-config/library.js +34 -0
  70. data/src/packages/eslint-config/package.json +17 -0
  71. data/src/packages/locusts/.eslintrc.js +9 -0
  72. data/src/packages/locusts/README.md +1 -0
  73. data/src/packages/locusts/deno.json +14 -0
  74. data/src/packages/locusts/mod.ts +15 -0
  75. data/src/packages/locusts/mod_test.ts +11 -0
  76. data/src/packages/locusts/package.json +35 -0
  77. data/src/packages/locusts/src/index.ts +17 -0
  78. data/src/packages/locusts/tests/locusts.test.ts +9 -0
  79. data/src/packages/locusts/tsconfig.json +13 -0
  80. data/src/packages/typescript-config/base.json +20 -0
  81. data/src/packages/typescript-config/package.json +9 -0
  82. data/src/test/kotlin/io/github/LocustsTest.kt +14 -0
  83. data/src/test_locusts.py +9 -0
  84. data/tests/GlobalUsings.cs +1 -0
  85. data/tests/Locusts.Testing.csproj +23 -0
  86. data/tests/Locusts.cs +12 -0
  87. data/tests/locusts_test.exs +8 -0
  88. data/tests/test_helper.exs +1 -0
  89. data/tests/test_helper.rb +7 -0
  90. data/tests/test_locusts.c +6 -0
  91. data/tests/test_locusts.rb +10 -0
  92. data/turbo.json +28 -0
  93. metadata +138 -0
@@ -0,0 +1,2 @@
1
+ packages:
2
+ - "src/packages/**/*"
data/pyproject.toml ADDED
@@ -0,0 +1,17 @@
1
+ [build-system]
2
+ requires = ["setuptools"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "locusts-r-us"
7
+ version = "0.0.0"
8
+ authors = [
9
+ { name = "Matt Strapp", email = "matt+locusts@mattstrapp.net"}
10
+ ]
11
+ description = "A Python package that introduces locusts into your codebase"
12
+ readme = "docs/Python.md"
13
+ classifiers = [
14
+ "Programming Language :: Python",
15
+ "License :: OSI Approved :: Zero-Clause BSD (0BSD)",
16
+ "Operating System :: OS Independent"
17
+ ]
data/requirements.txt ADDED
@@ -0,0 +1 @@
1
+ build
@@ -0,0 +1,13 @@
1
+ /*
2
+ * This file was generated by the Gradle 'init' task.
3
+ *
4
+ * The settings file is used to specify which projects to include in your build.
5
+ * For more detailed information on multi-project builds, please refer to https://docs.gradle.org/8.10.2/userguide/multi_project_builds.html in the Gradle documentation.
6
+ * This project uses @Incubating APIs which are subject to change.
7
+ */
8
+
9
+ plugins {
10
+ // Apply the foojay-resolver plugin to allow automatic download of JDKs
11
+ id("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
12
+ }
13
+
data/src/Locusts.cs ADDED
@@ -0,0 +1,20 @@
1
+ namespace Locusts;
2
+
3
+ /// <summary>
4
+ /// The locusts class.
5
+ /// </summary>
6
+ public static class Locusts
7
+ {
8
+ /// <summary>
9
+ /// Introduce locusts into your codebase.
10
+ /// </summary>
11
+ /// <remarks>
12
+ /// This method will introduce locusts into your codebase.
13
+ ///
14
+ /// Locusts are not included with this library, you must provide your own.
15
+ /// </remarks>
16
+ public static void IntroduceLocusts()
17
+ {
18
+ // Method intentionally left empty.
19
+ }
20
+ }
@@ -0,0 +1,37 @@
1
+ <Project Sdk="Microsoft.NET.Sdk">
2
+
3
+ <PropertyGroup Condition="'$(CI)' == 'true'">
4
+ <ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
5
+ </PropertyGroup>
6
+
7
+ <PropertyGroup>
8
+ <TargetFrameworks>net20;netstandard2.0</TargetFrameworks>
9
+ <LangVersion>latest</LangVersion>
10
+ <IsPackable>true</IsPackable>
11
+ <IsTrimmable Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0'))">true</IsTrimmable>
12
+ <IsAotCompatible Condition="$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net7.0'))">true</IsAotCompatible>
13
+ <ImplicitUsings>disable</ImplicitUsings>
14
+ <Nullable>enable</Nullable>
15
+
16
+ <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
17
+ <PackageLicenseExpression>0BSD</PackageLicenseExpression>
18
+ <PackageReadmeFile>.NET.md</PackageReadmeFile>
19
+ <RepositoryURL>https://github.com/locusts-r-us/locusts</RepositoryURL>
20
+ <RepositoryType>git</RepositoryType>
21
+ <GenerateDocumentationFile>True</GenerateDocumentationFile>
22
+ <IncludeSymbols>True</IncludeSymbols>
23
+ <SymbolPackageFormat>snupkg</SymbolPackageFormat>
24
+ <EmbedUntrackedSources>true</EmbedUntrackedSources>
25
+ <Title>Locusts</Title>
26
+ <Description>A .NET library that introduces locusts into your codebase.</Description>
27
+ </PropertyGroup>
28
+
29
+ <ItemGroup>
30
+ <None Include="..\docs\.NET.md" Pack="true" PackagePath="\" />
31
+ <PackageReference Include="Microsoft.SourceLink.GitHub" Version="*-*" PrivateAssets="all" />
32
+ <PackageReference Include="MinVer" Version="*-*">
33
+ <PrivateAssets>all</PrivateAssets>
34
+ <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
35
+ </PackageReference>
36
+ </ItemGroup>
37
+ </Project>
data/src/__init__.py ADDED
File without changes
data/src/lib.rs ADDED
@@ -0,0 +1,23 @@
1
+ #![no_std]
2
+ /// Add locusts to your codebase.
3
+ ///
4
+ /// Note that locusts are not included with this package, you must provide your own.
5
+ ///
6
+ /// # Examples
7
+ ///
8
+ /// ```
9
+ /// use locusts::introduce_locusts;
10
+ ///
11
+ /// introduce_locusts();
12
+ /// ```
13
+ pub fn introduce_locusts() {}
14
+
15
+ #[cfg(test)]
16
+ mod tests {
17
+ use super::*;
18
+
19
+ #[test]
20
+ fn test() {
21
+ introduce_locusts();
22
+ }
23
+ }
data/src/locusts.c ADDED
@@ -0,0 +1,3 @@
1
+ #include "locusts.h"
2
+
3
+ void introduce_locusts(void) { return; }
data/src/locusts.ex ADDED
@@ -0,0 +1,19 @@
1
+ defmodule Locusts do
2
+ @moduledoc """
3
+ Documentation for `Locusts`.
4
+ """
5
+
6
+ @doc """
7
+ Introduce locusts into your codebase.
8
+
9
+ Note that locusts are not included with this package, you must provide your own.
10
+
11
+ ## Examples
12
+
13
+ iex> Locusts.introduce_locusts()
14
+ nil
15
+
16
+ """
17
+ def introduce_locusts do
18
+ end
19
+ end
data/src/locusts.py ADDED
@@ -0,0 +1,6 @@
1
+ def introduce_locusts():
2
+ """
3
+ Introduce locusts into your codebase.
4
+
5
+ Note that locusts are not included with this package, you must provide your own.
6
+ """
data/src/locusts.rb ADDED
@@ -0,0 +1,14 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ module Locusts
5
+ class Locusts
6
+ # Add locusts into your codebase.
7
+ # Note that locusts are not included with this package, you must provide your own.
8
+ #
9
+ # @return [nil]
10
+ def self.introduceLocusts
11
+ nil
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,12 @@
1
+ /*
2
+ * This source file was generated by the Gradle 'init' task
3
+ */
4
+ package io.github.locustsRUs.locusts
5
+
6
+ class Locusts {
7
+ companion object {
8
+ fun introduceLocusts() {
9
+ return
10
+ }
11
+ }
12
+ }
@@ -0,0 +1,3 @@
1
+ # `@turbo/eslint-config`
2
+
3
+ Collection of internal eslint configurations.
@@ -0,0 +1,34 @@
1
+ const { resolve } = require("node:path");
2
+
3
+ const project = resolve(process.cwd(), "tsconfig.json");
4
+
5
+ /** @type {import("eslint").Linter.Config} */
6
+ module.exports = {
7
+ extends: ["eslint:recommended", "prettier", "turbo"],
8
+ plugins: ["only-warn"],
9
+ globals: {
10
+ React: true,
11
+ JSX: true,
12
+ },
13
+ env: {
14
+ node: true,
15
+ },
16
+ settings: {
17
+ "import/resolver": {
18
+ typescript: {
19
+ project,
20
+ },
21
+ },
22
+ },
23
+ ignorePatterns: [
24
+ // Ignore dotfiles
25
+ ".*.js",
26
+ "node_modules/",
27
+ "dist/",
28
+ ],
29
+ overrides: [
30
+ {
31
+ files: ["*.js?(x)", "*.ts?(x)"],
32
+ },
33
+ ],
34
+ };
@@ -0,0 +1,17 @@
1
+ {
2
+ "name": "@repo/eslint-config",
3
+ "version": "0.0.0",
4
+ "devDependencies": {
5
+ "@typescript-eslint/eslint-plugin": "8.12.2",
6
+ "@typescript-eslint/parser": "8.12.2",
7
+ "@vercel/style-guide": "6.0.0",
8
+ "eslint-config-prettier": "^9.1.0",
9
+ "eslint-config-turbo": "^2.2.3",
10
+ "eslint-plugin-only-warn": "^1.1.0",
11
+ "typescript": "^5.6.3"
12
+ },
13
+ "files": [
14
+ "library.js"
15
+ ],
16
+ "private": true
17
+ }
@@ -0,0 +1,9 @@
1
+ /** @type {import("eslint").Linter.Config} */
2
+ module.exports = {
3
+ root: true,
4
+ extends: ["@repo/eslint-config/library.js"],
5
+ parser: "@typescript-eslint/parser",
6
+ parserOptions: {
7
+ project: true,
8
+ },
9
+ };
@@ -0,0 +1 @@
1
+ ../../../docs/JavaScript.md
@@ -0,0 +1,14 @@
1
+ {
2
+ "name": "@locusts-r-us/locusts",
3
+ "version": "0.0.0",
4
+ "exports": "./mod.ts",
5
+ "tasks": {
6
+ "dev": "deno test --watch mod.ts"
7
+ },
8
+ "license": "MIT",
9
+ "imports": {
10
+ "@std/testing": "jsr:@std/testing@1",
11
+ "@std/expect": "jsr:@std/expect@1",
12
+ "locusts": "npm:locusts"
13
+ }
14
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * This module introduces locusts to your application.
3
+ *
4
+ * Why would you want to do that? I don't know, but you can.
5
+ *
6
+ * @example
7
+ * ```typescript
8
+ * import { introduceLocusts } from "@locusts-r-us/locusts"
9
+ *
10
+ * introduceLocusts()
11
+ * ```
12
+ * @module
13
+ */
14
+
15
+ export * from "./src/index.ts"
@@ -0,0 +1,11 @@
1
+ import { describe, it } from "jsr:@std/testing/bdd";
2
+ import { expect } from "jsr:@std/expect";
3
+
4
+ import { introduceLocusts } from "./mod.ts";
5
+
6
+ describe("Locusts", () => {
7
+ it("should be introduced", () => {
8
+ const result = introduceLocusts()
9
+ expect(result).toBe(undefined);
10
+ });
11
+ });
@@ -0,0 +1,35 @@
1
+ {
2
+ "name": "locusts",
3
+ "description": "An npm package that introduces locusts into your codebase.",
4
+ "version": "0.0.0",
5
+ "author": "Matt Strapp <matt+locusts@mattstrapp.net> (https://mattstrapp.net)",
6
+ "bugs": "https://github.com/locusts-r-us/locusts/issues",
7
+ "devDependencies": {
8
+ "@repo/eslint-config": "workspace:*",
9
+ "@repo/typescript-config": "workspace:*",
10
+ "@types/node": "^22.8.4",
11
+ "tsup": "^8.3.5",
12
+ "tsx": "^4.19.2",
13
+ "typescript": "^5.6.3"
14
+ },
15
+ "keywords": [],
16
+ "license": "0BSD",
17
+ "main": "./dist/index.js",
18
+ "module": "./dist/index.mjs",
19
+ "repository": {
20
+ "type": "git",
21
+ "url": "git+https://github.com/locusts-r-us/locusts.git",
22
+ "directory": "packages/locusts"
23
+ },
24
+ "scripts": {
25
+ "build": "tsup src/index.ts --format cjs,esm --dts",
26
+ "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
27
+ "lint": "eslint src --fix",
28
+ "lint:ci": "eslint src",
29
+ "test": "node --test --import tsx ./tests/locusts.test.ts"
30
+ },
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "types": "./dist/index.d.ts"
35
+ }
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Introduce locusts into your codebase.
3
+ * @remarks
4
+ * Locusts are not included in this package. You must provide your own locusts.
5
+ * @public
6
+ * @example
7
+ * ```js
8
+ * import introduceLocusts from 'locusts';
9
+ * introduceLocusts();
10
+ * ```
11
+ * @returns void
12
+ */
13
+ export function introduceLocusts() {
14
+ // This space intentionally left blank
15
+ }
16
+
17
+ export default introduceLocusts;
@@ -0,0 +1,9 @@
1
+ import { describe, it } from "node:test";
2
+ import introduceLocusts from "../src/index.ts";
3
+
4
+ describe("Locusts", () => {
5
+ it("should be able to be introduced to the environment", () => {
6
+ introduceLocusts();
7
+ // Test code here
8
+ });
9
+ });
@@ -0,0 +1,13 @@
1
+ {
2
+ "extends": "@repo/typescript-config/base.json",
3
+ "compilerOptions": {
4
+ "outDir": "dist"
5
+ },
6
+ "include": [
7
+ "src"
8
+ ],
9
+ "exclude": [
10
+ "node_modules",
11
+ "dist"
12
+ ]
13
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "display": "Default",
4
+ "compilerOptions": {
5
+ "declaration": true,
6
+ "declarationMap": true,
7
+ "esModuleInterop": true,
8
+ "incremental": false,
9
+ "isolatedModules": true,
10
+ "lib": ["es2022", "DOM", "DOM.Iterable"],
11
+ "module": "NodeNext",
12
+ "moduleDetection": "force",
13
+ "moduleResolution": "NodeNext",
14
+ "noUncheckedIndexedAccess": true,
15
+ "resolveJsonModule": true,
16
+ "skipLibCheck": true,
17
+ "strict": true,
18
+ "target": "ES2022"
19
+ }
20
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "name": "@repo/typescript-config",
3
+ "version": "0.0.0",
4
+ "license": "MIT",
5
+ "private": true,
6
+ "publishConfig": {
7
+ "access": "public"
8
+ }
9
+ }
@@ -0,0 +1,14 @@
1
+ /*
2
+ * This source file was generated by the Gradle 'init' task
3
+ */
4
+ package io.github.locustsRUs.locusts
5
+
6
+ import kotlin.test.Test
7
+ import kotlin.test.assertEquals
8
+
9
+ class LibraryTest {
10
+ @Test
11
+ fun locustsShouldGetIntroduced() {
12
+ assertEquals(Locusts.introduceLocusts(), Unit, "Locusts should be introduced")
13
+ }
14
+ }
@@ -0,0 +1,9 @@
1
+ import unittest
2
+ from locusts import introduce_locusts
3
+
4
+ class TestLocusts(unittest.TestCase):
5
+ def test_introduce_locusts(self):
6
+ self.assertIsNone(introduce_locusts())
7
+
8
+ if __name__ == '__main__':
9
+ unittest.main()
@@ -0,0 +1 @@
1
+ global using Microsoft.VisualStudio.TestTools.UnitTesting;
@@ -0,0 +1,23 @@
1
+ <Project Sdk="Microsoft.NET.Sdk">
2
+
3
+ <PropertyGroup>
4
+ <TargetFramework>net8.0</TargetFramework>
5
+ <LangVersion>latest</LangVersion>
6
+ <ImplicitUsings>enable</ImplicitUsings>
7
+ <Nullable>enable</Nullable>
8
+
9
+ <IsPackable>false</IsPackable>
10
+ <IsTestProject>true</IsTestProject>
11
+ </PropertyGroup>
12
+
13
+ <ItemGroup>
14
+ <PackageReference Include="Microsoft.NET.Test.Sdk" Version="*-*" />
15
+ <PackageReference Include="MSTest.TestAdapter" Version="*-*" />
16
+ <PackageReference Include="MSTest.TestFramework" Version="*-*" />
17
+ <PackageReference Include="coverlet.collector" Version="*-*" />
18
+ </ItemGroup>
19
+
20
+ <ItemGroup>
21
+ <ProjectReference Include="..\src\Locusts.csproj" />
22
+ </ItemGroup>
23
+ </Project>
data/tests/Locusts.cs ADDED
@@ -0,0 +1,12 @@
1
+ namespace Locusts.Testing;
2
+
3
+ [TestClass]
4
+ public class Test
5
+ {
6
+ [TestMethod]
7
+ public void TestLocusts()
8
+ {
9
+ Locusts.IntroduceLocusts();
10
+ Assert.IsTrue(1==1);
11
+ }
12
+ }
@@ -0,0 +1,8 @@
1
+ defmodule LocustsTest do
2
+ use ExUnit.Case
3
+ doctest Locusts
4
+
5
+ test "greets the world" do
6
+ assert Locusts.introduce_locusts() == nil
7
+ end
8
+ end
@@ -0,0 +1 @@
1
+ ExUnit.start()
@@ -0,0 +1,7 @@
1
+ # typed: strict
2
+ # frozen_string_literal: true
3
+
4
+ $LOAD_PATH.unshift File.expand_path("../src", __dir__)
5
+ require "locusts"
6
+
7
+ require "minitest/autorun"
@@ -0,0 +1,6 @@
1
+ #include "locusts.h"
2
+
3
+ int main(void) {
4
+ introduce_locusts();
5
+ return 0;
6
+ }
@@ -0,0 +1,10 @@
1
+ # typed: true
2
+ # frozen_string_literal: true
3
+
4
+ require "test_helper"
5
+
6
+ class TestLocusts < Minitest::Test
7
+ def test_it_does_something_useful
8
+ assert_nil ::Locusts::Locusts.introduceLocusts
9
+ end
10
+ end
data/turbo.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "$schema": "https://turbo.build/schema.json",
3
+ "ui": "tui",
4
+ "tasks": {
5
+ "build": {
6
+ "dependsOn": [
7
+ "^build"
8
+ ],
9
+ "inputs": [
10
+ "$TURBO_DEFAULT$",
11
+ ".env*"
12
+ ],
13
+ "outputs": [
14
+ "dist/**"
15
+ ]
16
+ },
17
+ "lint": {
18
+ "dependsOn": [
19
+ "^lint"
20
+ ]
21
+ },
22
+ "dev": {
23
+ "cache": false,
24
+ "persistent": true
25
+ },
26
+ "test": {}
27
+ }
28
+ }