From 7d555a96ea3ea97d15a97b8b3e3afcdc736d78ac Mon Sep 17 00:00:00 2001 From: Vendicated Date: Sat, 22 Oct 2022 01:22:44 +0200 Subject: fix userscript, lint new files --- scripts/build/build.mjs | 18 ++++++++++++++++++ scripts/build/buildWeb.mjs | 20 +++++++++++++++++++- scripts/build/common.mjs | 18 ++++++++++++++++++ 3 files changed, 55 insertions(+), 1 deletion(-) mode change 100644 => 100755 scripts/build/buildWeb.mjs (limited to 'scripts/build') diff --git a/scripts/build/build.mjs b/scripts/build/build.mjs index 73d220d..f6304b1 100755 --- a/scripts/build/build.mjs +++ b/scripts/build/build.mjs @@ -1,4 +1,22 @@ #!/usr/bin/node +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import esbuild from "esbuild"; import { commonOpts, gitHashPlugin, globPlugins, makeAllPackagesExternalPlugin } from "./common.mjs"; diff --git a/scripts/build/buildWeb.mjs b/scripts/build/buildWeb.mjs old mode 100644 new mode 100755 index 6299398..8abac2c --- a/scripts/build/buildWeb.mjs +++ b/scripts/build/buildWeb.mjs @@ -1,4 +1,22 @@ -// TODO: Modularise the plugins since both build scripts use them +#!/usr/bin/node +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { createWriteStream, readFileSync } from "fs"; import yazl from "yazl"; diff --git a/scripts/build/common.mjs b/scripts/build/common.mjs index 0def0c2..6143fb2 100644 --- a/scripts/build/common.mjs +++ b/scripts/build/common.mjs @@ -1,3 +1,21 @@ +/* + * Vencord, a modification for Discord's desktop app + * Copyright (c) 2022 Vendicated and contributors + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . +*/ + import { execSync } from "child_process"; import esbuild from "esbuild"; import { existsSync } from "fs"; -- cgit