-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
180 lines (180 loc) · 10.8 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
{
"name": "xunn.at",
"version": "1.0.0",
"private": true,
"description": "https://xunn.at",
"homepage": "https://xunn.at",
"repository": {
"type": "git",
"url": "https://github.com/Xunnamius/xunn.at",
"lens": "next"
},
"license": "MIT",
"author": "Xunnamius",
"type": "commonjs",
"scripts": {
"__test:repeat:all": "echo 'Repeating test suite [initializing]...'; (i=0; while [ \"$((( i += 1 ) <= 100 ))\" -ne 0 ]; do sleep 0.1 && echo \"\\r\\033[1A\\033[0KRepeating test suite [run $i/100]...\" && JEST_SILENT_REPORTER_SHOW_WARNINGS=true NODE_ENV=test npx jest --reporters=jest-silent-reporter || exit; done) && echo \"All tests passed! Congrats!\"",
"__test:repeat:unit": "echo 'Repeating test suite [initializing]...'; (i=0; while [ \"$((( i += 1 ) <= 100 ))\" -ne 0 ]; do sleep 0.1 && echo \"\\r\\033[1A\\033[0KRepeating test suite [run $i/100]...\" && JEST_SILENT_REPORTER_SHOW_WARNINGS=true NODE_ENV=test npx jest --reporters=jest-silent-reporter --testPathIgnorePatterns '/(integration|e2e).*?\\.test\\.tsx?' '/dist/' || exit; done) && echo \"All tests passed! Congrats!\"",
"build": "npm run build:dist --",
"build-changelog": "conventional-changelog --outfile CHANGELOG.md --config conventional.config.js --release-count 0 --skip-unstable && (if [ \"$CHANGELOG_SKIP_TITLE\" != 'true' ]; then { node -e 'console.log(require(\"./conventional.config.js\").changelogTitle)'; cat CHANGELOG.md; } > CHANGELOG.md.ignore && mv CHANGELOG.md.ignore CHANGELOG.md; fi) && remark -o --use reference-links --use gfm --use frontmatter CHANGELOG.md && prettier --write CHANGELOG.md",
"build:dist": "if [ -r ./next.config.js ]; then next build; else NODE_ENV=production tsc --project tsconfig.types.json && NODE_ENV=production webpack --config-name lib && if [ -r ./src/cli.ts ]; then NODE_ENV=production webpack --config-name cli && chmod +x ./dist/cli.js; fi && NODE_ENV=esm babel src --extensions .ts --out-dir dist/esm --out-file-extension .mjs; fi",
"build:docs": "if [ -r ./next.config.js ]; then typedoc --plugin typedoc-plugin-markdown --out docs --readme none lib src test types external-scripts --exclude '**/*.test.*' --exclude external-scripts/bin; else ENTRY=`node -e 'console.log((x => typeof x==\"string\"?x:x.default)(require(\"./package.json\").exports[\".\"]).replace(/\\.\\/dist\\/(.+)\\.[a-zA-Z0-9]+$/, \"./src/$1.ts\"))'` && echo 'Entry file:' \"$ENTRY\" && typedoc --plugin typedoc-plugin-markdown --out docs --readme none $ENTRY && find docs -name '*.md' -exec sed -i -e 's/Project: //g' {} + && sed -i -e 1,4d docs/README.md; fi && find docs -name '*.md' -exec sed -i -e 's/`__namedParameters`/`\\(destructured\\)`/g' {} + && find docs -name '*.md' -exec sed -i -E 's/`__namedParameters\\.([^`]+)`/`\\({ \\1 }\\)`/g' {} +",
"build:externals": "NODE_ENV=external webpack --config-name externals",
"build:stats": "NODE_ENV=production webpack --json > bundle-stats.ignore.json",
"clean": "rm -rf dist coverage external-scripts/bin bundle-stats.ignore.json && git ls-files --exclude-standard --ignored --others --directory dist | xargs rm -rf {} +",
"dev": "next -p `npx -q acquire-port`",
"format": "sort-package-json && remark -o --use reference-links --use gfm --use frontmatter '{{,.}*.md,!(node_modules)/**/{,.}*.md,.*/**/{,.}*.md}' && prettier --write '{{,.}*.md,!(node_modules)/**/{,.}*.md,.*/**/{,.}*.md}' && if [ -z \"$ALLOW_DISABLED_LINKS\" ] && grep -qR --exclude-dir=node_modules --include='*.md' '\\\\\\[[^\\]*\\]\\\\' .; then echo '---\nWARNING: disabled links were found in the following files:'; grep -R --color=always --exclude-dir=node_modules --include='*.md' '\\\\\\[[^\\]*\\]\\\\' .; echo '(to ignore this error, run this command again with ALLOW_DISABLED_LINKS=1)'; exit 1; fi",
"lint": "stdbuf -i0 -o0 -e0 tsc --project tsconfig.lint.json; X=$?; stdbuf -i0 -o0 -e0 eslint --parser-options=project:tsconfig.lint.json src; Y=$?; remark --quiet --use gfm --use frontmatter --use lint-final-newline --use lint-no-auto-link-without-protocol --use lint-no-blockquote-without-marker --use lint-ordered-list-marker-style --use lint-hard-break-spaces --use lint-no-duplicate-definitions --use lint-no-heading-content-indent --use lint-no-inline-padding --use lint-no-undefined-references --use lint-no-unused-definitions --use validate-links '{{,.}*.md,!(node_modules)/**/{,.}*.md,.*/**/{,.}*.md}'; Z=$?; [ $X -eq 0 ] && [ $Y -eq 0 ] && [ $Z -eq 0 ]",
"lint:all": "stdbuf -i0 -o0 -e0 tsc --project tsconfig.lint.json; X=$?; stdbuf -i0 -o0 -e0 eslint --parser-options=project:tsconfig.lint.json lib src test; Y=$?; remark --quiet --use gfm --use frontmatter --use lint-final-newline --use lint-no-auto-link-without-protocol --use lint-no-blockquote-without-marker --use lint-ordered-list-marker-style --use lint-hard-break-spaces --use lint-no-duplicate-definitions --use lint-no-heading-content-indent --use lint-no-inline-padding --use lint-no-undefined-references --use lint-no-unused-definitions --use validate-links '{{,.}*.md,!(node_modules)/**/{,.}*.md,.*/**/{,.}*.md}'; Z=$?; [ $X -eq 0 ] && [ $Y -eq 0 ] && [ $Z -eq 0 ]",
"list-tasks": "node -e 'console.log(Object.keys(require(\"./package.json\").scripts).join(\"\\n\"))'",
"prepare": "if [ -z \"$CI\" ] && ([ -z \"$NODE_ENV\" ] || [ \"$NODE_ENV\" = \"development\" ]); then npx --no husky install; else echo 'skipped installing husky git hooks'; fi",
"start": "next start",
"test": "npm run test:unit --",
"test:all": "NODE_ENV=test jest --coverage",
"test:e2e": "NODE_ENV=test jest 'e2e.*?\\.test\\.tsx?' --testPathIgnorePatterns '/dist/'",
"test:integration": "NODE_ENV=test jest '/integration.*?\\.test\\.tsx?' --testPathIgnorePatterns '/dist/'",
"test:integration:client": "NODE_ENV=test jest '/integration-client.*?\\.test\\.tsx?' --testPathIgnorePatterns '/dist/'",
"test:integration:compile": "NODE_ENV=test jest '/integration-compile.*?\\.test\\.tsx?' --testPathIgnorePatterns '/dist/'",
"test:integration:node": "NODE_ENV=test jest '/integration-node.*?\\.test\\.tsx?' --testPathIgnorePatterns '/dist/'",
"test:repeat:all": "npm run __test:repeat:all --silent",
"test:repeat:unit": "npm run __test:repeat:unit --silent",
"test:unit": "NODE_ENV=test jest --coverage --testPathIgnorePatterns '/(integration|e2e).*?\\.test\\.tsx?' '/dist/'"
},
"config": {
"mongodbMemoryServer": {
"version": "5.0.9"
}
},
"dependencies": {
"@babel/core": "^7.20.12",
"@babel/plugin-proposal-export-default-from": "^7.18.10",
"@babel/plugin-proposal-function-bind": "^7.18.9",
"@babel/plugin-transform-react-jsx-source": "^7.19.6",
"@babel/preset-env": "^7.20.2",
"@babel/preset-react": "^7.18.6",
"@babel/preset-typescript": "^7.18.6",
"@next/bundle-analyzer": "^13.1.5",
"@octokit/rest": "^19.0.7",
"@types/bytes": "^3.1.1",
"@types/cors": "^2.8.13",
"@types/debug": "^4.1.7",
"@types/folder-hash": "^4.0.2",
"@types/node": "^18.11.18",
"@types/react": "^18.0.27",
"@types/request-ip": "^0.0.37",
"@xunnamius/next-types": "^1.0.9",
"@xunnamius/types": "^1.3.0",
"babel-plugin-explicit-exports-references": "^1.0.2",
"babel-plugin-transform-default-named-imports": "^1.2.2",
"bytes": "^3.1.2",
"clone-deep": "^4.0.1",
"cors": "^2.8.5",
"find-up": "^5.0.0",
"gunzip-maybe": "^1.4.2",
"is-plain-object": "^5.0.0",
"is-server-side": "^1.0.2",
"isomorphic-json-fetch": "^1.0.15",
"mongodb": "^4.13.0",
"named-app-errors": "^4.0.0",
"next": "^13.1.5",
"node-fetch": "cjs",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-use": "^17.4.0",
"request-ip": "^3.3.0",
"swr": "^2.0.2",
"tar-stream": "^2.2.0",
"toss-expression": "^0.1.2",
"typescript": "^4.9.4"
},
"devDependencies": {
"@babel/cli": "^7.20.7",
"@babel/eslint-parser": "^7.19.1",
"@commitlint/cli": "^17.4.2",
"@commitlint/config-conventional": "^17.4.2",
"@next/eslint-plugin-next": "^13.1.5",
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^13.4.0",
"@types/clone-deep": "^4.0.1",
"@types/confusing-browser-globals": "^1.0.0",
"@types/content-type": "^1.1.5",
"@types/fast-shuffle": "^4.5.0",
"@types/jest": "^29.4.0",
"@types/node-fetch": "^2.5.12",
"@types/semver": "^7.3.13",
"@types/tar-stream": "^2.2.2",
"@types/test-listen": "^1.1.0",
"@types/webpack": "^5.28.0",
"@typescript-eslint/eslint-plugin": "^5.49.0",
"@typescript-eslint/parser": "^5.49.0",
"@xunnamius/conventional-changelog-projector": "^1.2.1",
"@xunnamius/jest-types": "^1.1.3",
"babel-jest": "^29.4.1",
"babel-loader": "^9.1.2",
"confusing-browser-globals": "^1.0.11",
"content-type": "^1.0.4",
"conventional-changelog-cli": "^2.2.2",
"dot-prop": "^7.2.0",
"dotenv": "^16.0.3",
"eslint": "^8.32.0",
"eslint-config-next": "^13.1.5",
"eslint-import-resolver-alias": "^1.1.2",
"eslint-import-resolver-typescript": "^3.5.3",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-jest": "^27.2.1",
"eslint-plugin-jest-dom": "^4.0.3",
"eslint-plugin-react": "^7.32.1",
"execa": "^5.1.1",
"fast-shuffle": "^5.0.2",
"http-terminator": "^3.2.0",
"husky": "^8.0.3",
"jest": "^29.4.1",
"jest-circus": "^29.4.1",
"jest-environment-jsdom": "^29.4.1",
"jest-extended": "^3.2.3",
"jest-silent-reporter": "^0.5.0",
"lint-staged": "^13.1.0",
"mongodb-memory-server": "^8.11.4",
"msw": "^1.0.0",
"next-test-api-route-handler": "^3.1.8",
"prettier": "^2.8.3",
"random-case": "^1.0.0",
"raw-body": "^2.5.1",
"remark-cli": "^11.0.0",
"remark-frontmatter": "^4.0.1",
"remark-gfm": "^3.0.1",
"remark-lint-final-newline": "^2.1.1",
"remark-lint-hard-break-spaces": "^3.1.1",
"remark-lint-no-auto-link-without-protocol": "^3.1.1",
"remark-lint-no-blockquote-without-marker": "^5.1.1",
"remark-lint-no-duplicate-definitions": "^3.1.1",
"remark-lint-no-heading-content-indent": "^4.1.1",
"remark-lint-no-inline-padding": "^4.1.1",
"remark-lint-no-undefined-references": "^4.2.0",
"remark-lint-no-unused-definitions": "^3.1.1",
"remark-lint-ordered-list-marker-style": "^3.1.1",
"remark-reference-links": "^6.0.1",
"remark-validate-links": "^12.1.0",
"semantic-release": "https://xunn.at/semantic-release-atam",
"simple-git": "^3.16.0",
"sort-package-json": "^2.2.0",
"spellchecker": "^3.7.1",
"test-listen": "^1.1.0",
"text-extensions": "^2.4.0",
"threads": "^1.7.0",
"type-fest": "^3.5.3",
"typedoc": "^0.23.24",
"typedoc-plugin-markdown": "^3.14.0",
"unfetch": "^4.2.0",
"unique-filename": "^3.0.0",
"webpack": "^5.75.0",
"webpack-cli": "^5.0.1",
"webpack-node-externals": "^3.0.0"
},
"engines": {
"node": ">=16"
}
}