initial commit
This commit is contained in:
+32
@@ -0,0 +1,32 @@
|
||||
import * as esbuild from "esbuild";
|
||||
|
||||
await esbuild.build({
|
||||
entryPoints: ["src/userscript/index.ts"],
|
||||
outfile: "dist/whatsapp-bridge.user.js",
|
||||
|
||||
bundle: true,
|
||||
format: "iife",
|
||||
platform: "browser",
|
||||
target: "es2020",
|
||||
|
||||
banner: {
|
||||
js: `
|
||||
// ==UserScript==
|
||||
// @name WhatsApp Web Bridge
|
||||
// @namespace https://rul.sh/
|
||||
// @version 0.0.1
|
||||
// @description WhatsApp Web WebSocket bridge
|
||||
// @match https://web.whatsapp.com/*
|
||||
// @updateURL https://example.com/my-script.user.js
|
||||
// @downloadURL https://example.com/my-script.user.js
|
||||
// @require https://github.com/wppconnect-team/wa-js/releases/download/nightly/wppconnect-wa.js
|
||||
// @grant none
|
||||
// @run-at document-idle
|
||||
// ==/UserScript==
|
||||
`,
|
||||
},
|
||||
|
||||
sourcemap: true,
|
||||
});
|
||||
|
||||
console.log("Built dist/whatsapp-bridge.user.js");
|
||||
Reference in New Issue
Block a user