Initial Commit
This commit is contained in:
13
packages/devtools/docker/README.md
Normal file
13
packages/devtools/docker/README.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# `docker`
|
||||
|
||||
Docker helpers and GPU runtime configuration.
|
||||
|
||||
<!-- begin:auto-docs -->
|
||||
## Packages in `docker`
|
||||
|
||||
1 package.
|
||||
|
||||
| Package | Description |
|
||||
|---|---|
|
||||
| [`@suaveplan/docker-nvidia`](./docker-nvidia/README.md) | A collection of docker / docker-compose scripts configured for use with WSL / Nvidia |
|
||||
<!-- end:auto-docs -->
|
||||
1
packages/devtools/docker/_intro.md
Normal file
1
packages/devtools/docker/_intro.md
Normal file
@@ -0,0 +1 @@
|
||||
Docker helpers and GPU runtime configuration.
|
||||
5
packages/devtools/docker/docker-nvidia/README.md
Normal file
5
packages/devtools/docker/docker-nvidia/README.md
Normal file
@@ -0,0 +1,5 @@
|
||||
# @suaveplan/docker-wsl - Docker Scripts for WSL2
|
||||
|
||||
## Summary
|
||||
|
||||
A collection of docker / docker-compose scripts configured for use with WSL / Nvidia
|
||||
27
packages/devtools/docker/docker-nvidia/package.json
Normal file
27
packages/devtools/docker/docker-nvidia/package.json
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
"name": "@suaveplan/docker-nvidia",
|
||||
"version": "0.1.0",
|
||||
"type": "module",
|
||||
"sideEffects": false,
|
||||
"description": "A collection of docker / docker-compose scripts configured for use with WSL / Nvidia",
|
||||
"license": "MIT",
|
||||
"author": "Suaveplan Team",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.js",
|
||||
"types": "./dist/index.d.ts",
|
||||
"scripts": {
|
||||
},
|
||||
"dependencies": {
|
||||
},
|
||||
"devDependencies": {
|
||||
},
|
||||
"publishConfig": {
|
||||
"registry": "https://npmjs.fq.io/",
|
||||
"access": "public"
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"src",
|
||||
"README.md"
|
||||
]
|
||||
}
|
||||
12
packages/devtools/docker/docker-nvidia/tsconfig.lib.json
Normal file
12
packages/devtools/docker/docker-nvidia/tsconfig.lib.json
Normal file
@@ -0,0 +1,12 @@
|
||||
{
|
||||
"$schema": "https://json.schemastore.org/tsconfig",
|
||||
"extends": "../../../../tsconfig.base.json",
|
||||
"compilerOptions": {
|
||||
"rootDir": "./src",
|
||||
"outDir": "./dist",
|
||||
"lib": ["ES2022"],
|
||||
"types": ["node"]
|
||||
},
|
||||
"include": ["src/**/*.ts"],
|
||||
"exclude": ["src/**/*.test.ts", "dist", "node_modules"]
|
||||
}
|
||||
27
packages/devtools/docker/docker-nvidia/vite.config.ts
Normal file
27
packages/devtools/docker/docker-nvidia/vite.config.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { defineConfig } from "vite";
|
||||
import dts from "vite-plugin-dts";
|
||||
|
||||
export default defineConfig({
|
||||
root: __dirname,
|
||||
cacheDir: "../../../node_modules/.vite/packages/suppression",
|
||||
plugins: [dts({ entryRoot: "src", tsconfigPath: "./tsconfig.lib.json", insertTypesEntry: true })],
|
||||
build: {
|
||||
outDir: "./dist",
|
||||
emptyOutDir: true,
|
||||
reportCompressedSize: true,
|
||||
sourcemap: true,
|
||||
lib: { entry: "src/index.ts", formats: ["es"] },
|
||||
rollupOptions: {
|
||||
treeshake: true,
|
||||
output: { preserveModules: true, preserveModulesRoot: "src", entryFileNames: "[name].js" },
|
||||
external: [
|
||||
"@suaveplan/error",
|
||||
"@suaveplan/types",
|
||||
"tslib",
|
||||
"zod",
|
||||
"@opentelemetry/api",
|
||||
/^node:/,
|
||||
],
|
||||
},
|
||||
},
|
||||
});
|
||||
25
packages/devtools/docker/docker-nvidia/vitest.config.ts
Normal file
25
packages/devtools/docker/docker-nvidia/vitest.config.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { defineConfig } from "vitest/config";
|
||||
|
||||
export default defineConfig({
|
||||
test: {
|
||||
globals: false,
|
||||
environment: "node",
|
||||
pool: "forks",
|
||||
setupFiles: ["./tests/setup/polyfills.ts"],
|
||||
include: ["src/**/*.test.ts", "tests/**/*.test.ts"],
|
||||
exclude: ["dist/**", "node_modules/**"],
|
||||
coverage: {
|
||||
provider: "istanbul",
|
||||
reporter: ["text", "html", "lcov"],
|
||||
include: ["src/**/*.ts"],
|
||||
exclude: [
|
||||
"src/**/*.test.ts",
|
||||
"src/**/*.types.ts",
|
||||
"src/**/index.ts",
|
||||
"tests/**",
|
||||
],
|
||||
thresholds: { statements: 100, branches: 100, functions: 100, lines: 100 },
|
||||
},
|
||||
testTimeout: 30000,
|
||||
},
|
||||
});
|
||||
Reference in New Issue
Block a user