generated from trim21/webpack-userscript-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
59 additions
and
188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,14 @@ | ||
const { | ||
author, | ||
dependencies, | ||
repository, | ||
version, | ||
} = require("../package.json"); | ||
const { name, author, repository, version } = require("../package.json"); | ||
|
||
module.exports = { | ||
name: { | ||
"": "webpack-userscript-template", | ||
cn: "中文名", | ||
en: "english name", | ||
}, | ||
namespace: "https://trim21.me/", | ||
version: version, | ||
author: author, | ||
"": name, | ||
en: "Twitch Drops Manager", | ||
}, // 'license': 'MIT', | ||
author, | ||
description: "Twitch Drops Manager", | ||
match: ["https://*.twitch.tv/drops/*"], | ||
source: repository.url, | ||
// 'license': 'MIT', | ||
match: ["*://www.example.com/", "*://example.com/*"], | ||
require: [ | ||
`https://cdn.jsdelivr.net/npm/jquery@${dependencies.jquery}/dist/jquery.min.js`, | ||
], | ||
grant: ["GM.xmlHttpRequest"], | ||
connect: ["httpbin.org"], | ||
"run-at": "document-end", | ||
version, | ||
require: [], | ||
}; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,34 @@ | ||
{ | ||
"name": "webpack-userscript-template", | ||
"description": "Build your UserScript with webpack", | ||
"version": "0.0.0", | ||
"name": "twich-drops-manager", | ||
"description": "Twitch Drops Manager", | ||
"version": "dev", | ||
"author": { | ||
"name": "Trim21", | ||
"email": "[email protected]" | ||
"name": "ComiR", | ||
"email": "[email protected]" | ||
}, | ||
"scripts": { | ||
"format": "prettier -w ./", | ||
"analize": "cross-env npm_config_report=true npm run build", | ||
"build": "webpack --config config/webpack.config.prod.cjs", | ||
"dev": "webpack --config config/webpack.config.dev.cjs", | ||
"prepare": "husky install", | ||
"lint-staged": "lint-staged" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/trim21/webpack-userscript-template" | ||
"url": "https://github.com/ComiR/twitch-drops-manager" | ||
}, | ||
"private": true, | ||
"dependencies": { | ||
"@trim21/gm-fetch": "^0.1.6", | ||
"jquery": "^3.6.1" | ||
"@trim21/gm-fetch": "^0.1.6" | ||
}, | ||
"lint-staged": { | ||
"*.{js,jsx,ts,tsx,json}": [ | ||
"prettier --ignore-path ./.prettierignore --write " | ||
] | ||
}, | ||
"devDependencies": { | ||
"@types/greasemonkey": "^4.0.4", | ||
"@types/jquery": "^3.5.14", | ||
"@types/node": "^18.11.3", | ||
"@types/tampermonkey": "^4.0.5", | ||
"browserslist": "^4.21.4", | ||
"cross-env": "^7.0.3", | ||
"css-loader": "^6.7.1", | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.