Add local CLI (#144)

This commit is contained in:
Andras Schmelczer 2025-10-21 22:45:47 +01:00 committed by GitHub
parent a31c2d87b5
commit 90752e687a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
24 changed files with 1616 additions and 99 deletions

View file

@ -0,0 +1,30 @@
const path = require("path");
const webpack = require("webpack");
module.exports = {
entry: "./src/cli.ts",
target: "node",
mode: "production",
optimization: {
minimize: false
},
module: {
rules: [
{
test: /\.ts$/,
use: "ts-loader"
}
]
},
resolve: {
extensions: [".ts", ".js"]
},
output: {
globalObject: "this",
filename: "cli.js",
path: path.resolve(__dirname, "dist")
},
plugins: [
new webpack.BannerPlugin({ banner: "#!/usr/bin/env node", raw: true })
]
};