Skip to content

Commit f450954

Browse files
committed
customized package
1 parent 83e98c4 commit f450954

File tree

15 files changed

+18
-289
lines changed

15 files changed

+18
-289
lines changed

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ jobs:
2222
NODE_AUTH_TOKEN: ${{github.token}}
2323
NODE_ENV: production
2424
- name: Compile
25-
run: npm run build-all
25+
run: npm run build
2626
- name: Run tests
2727
run: npm run test

dist/headers.js

Lines changed: 0 additions & 19 deletions
This file was deleted.

dist/legacy/index.min.user.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

dist/legacy/js-sample.user.js

Lines changed: 0 additions & 70 deletions
This file was deleted.

dist/legacy/ts-sample.user.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

dist/modern/index.min.user.js

Lines changed: 0 additions & 21 deletions
This file was deleted.

dist/modern/js-sample.user.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

dist/modern/ts-sample.user.js

Lines changed: 0 additions & 27 deletions
This file was deleted.

package.json

Lines changed: 14 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,44 @@
11
{
2-
"name": "@userscripters/template",
3-
"version": "1.0.0",
4-
"description": "template repository for userscripters' projects",
2+
"name": "@userscripters/stackexchange-helpers",
3+
"version": "0.1.0",
4+
"description": "Various helpers for interacting with the Stack Exchange network",
55
"scripts": {
66
"test": "mocha",
77
"lint": "eslint src --fix --ext .js,.ts",
88
"clean": "rm -rf dist",
99
"prebuild": "npm run lint && npm run clean",
10-
"uglify-modern": "uglifyjs dist/modern/* --compress --mangle -o dist/modern/index.min.js",
11-
"uglify-legacy": "uglifyjs dist/legacy/* --compress --mangle -o dist/legacy/index.min.js",
12-
"build-modern": "tsc --outDir dist/modern && npm run uglify-modern",
13-
"build-legacy": "tsc --target es5 --outDir dist/legacy && npm run uglify-legacy",
14-
"build-all": "bash ./scripts/build.sh",
15-
"headers-tm": "bash ./scripts/headers.sh",
10+
"build": "npm run prebuild && tsc",
1611
"readme": "generate-readme",
1712
"postversion": "bash ./scripts/postversion.sh"
1813
},
1914
"repository": {
2015
"type": "git",
21-
"url": "git+https://github.com/userscripters/template.git"
16+
"url": "git+https://github.com/userscripters/stackexchange-helpers.git"
2217
},
2318
"keywords": [
2419
"userscripts",
25-
"stackoverflow"
20+
"stackoverflow",
21+
"stackexchange",
22+
"utilities"
2623
],
2724
"author": {
28-
"name": "Jane Doe",
29-
"email": "jane@doe.com"
25+
"name": "Oleg Valter",
26+
"email": "oleg.a.valter@gmail.com"
3027
},
31-
"contributors": [
32-
{
33-
"name": "John Doe",
34-
"email": "[email protected]"
35-
}
36-
],
28+
"contributors": [],
3729
"license": "GPL-3.0-or-later",
3830
"bugs": {
39-
"url": "https://github.com/userscripters/template/issues"
31+
"url": "https://github.com/userscripters/stackexchange-helpers/issues"
4032
},
41-
"homepage": "https://github.com/userscripters/template#readme",
33+
"homepage": "https://github.com/userscripters/stackexchange-helpers#readme",
4234
"devDependencies": {
4335
"@types/chai": "^4.2.21",
4436
"@types/chai-as-promised": "^7.1.4",
45-
"@types/greasemonkey": "^4.0.2",
46-
"@types/jquery": "^3.5.6",
4737
"@types/mocha": "^9.0.0",
48-
"@types/tampermonkey": "^4.0.2",
4938
"@types/node": "^16.7.1",
5039
"@typescript-eslint/eslint-plugin": "^4.29.2",
5140
"@typescript-eslint/parser": "^4.29.2",
52-
"@userscripters/generate-headers": "^2.5.0",
53-
"@userscripters/generate-readme": "^1.1.0",
41+
"@userscripters/generate-readme": "^2.0.0",
5442
"@userscripters/stackexchange-global-types": "^1.3.1",
5543
"chai": "^4.3.4",
5644
"chai-as-promised": "^7.1.1",

scripts/build.sh

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)