Skip to content

Commit cf9ab9c

Browse files
committed
Update naming of tampermonkey snippet, and include variable declaration to make copy pasting easier
1 parent 9c3af50 commit cf9ab9c

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
node_modules
22
dist/webpackTools.user.js
33
dist/webpackTools.runtime.js
4-
dist/webpackTools.runtime.json
4+
dist/webpackTools.tampermonkey-runtime.js
55
dist/webpackTools.snippet.js

build/build.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ const templateStr = await fs.promises.readFile("userscriptTemplate.js", { encodi
2525
const runtimeStr = JSON.stringify(runtimeWithSourceUrl);
2626

2727
fs.promises.writeFile("dist/webpackTools.user.js", templateStr.replace('"{{ REPLACE_ME RUNTIME }}"', runtimeStr));
28-
fs.promises.writeFile("dist/webpackTools.runtime.json", runtimeStr);
2928
fs.promises.writeFile("dist/webpackTools.runtime.js", userscriptBuildResult.outputFiles[0].text);
29+
fs.promises.writeFile("dist/webpackTools.tampermonkey-runtime.js", "const runtime = " + runtimeStr + ";\n");

dist/index.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
<h1>webpackTools</h1>
1010
<div><a href="https://github.com/moonlight-mod/webpackTools">Readme!</a></div>
1111
<div><a href="webpackTools.user.js">Click here to install</a></div>
12-
<div><a href="webpackTools.runtime.json">Click here for latest stringified runtime (you probably want this to update)</a></div>
13-
<div><a href="webpackTools.runtime.js">Click here for latest runtime</a></div>
12+
<div><a href="webpackTools.tampermonkey-runtime.js">Copy paste over your original runtime in your userscript to update</a></div>
13+
14+
<div><a href="webpackTools.runtime.js">Runtime (standalone)</a></div>
1415
</body>
1516
</html>

0 commit comments

Comments
 (0)