@decaf-ts/utils 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.md +157 -0
- package/README.md +95 -0
- package/dist/esm/utils.js +1 -0
- package/dist/types/bin/tag-release.d.ts +1 -0
- package/dist/types/bin/update-scripts.d.ts +1 -0
- package/dist/types/cli/command.d.ts +110 -0
- package/dist/types/cli/commands/index.d.ts +2 -0
- package/dist/types/cli/commands/tag-release.d.ts +105 -0
- package/dist/types/cli/commands/update-scripts.d.ts +211 -0
- package/dist/types/cli/constants.d.ts +73 -0
- package/dist/types/cli/index.d.ts +4 -0
- package/dist/types/cli/types.d.ts +28 -0
- package/dist/types/index.d.ts +39 -0
- package/dist/types/input/index.d.ts +2 -0
- package/dist/types/input/input.d.ts +472 -0
- package/dist/types/input/types.d.ts +76 -0
- package/dist/types/output/common.d.ts +51 -0
- package/dist/types/output/index.d.ts +3 -0
- package/dist/types/output/logging.d.ts +177 -0
- package/dist/types/output/types.d.ts +203 -0
- package/dist/types/utils/accumulator.d.ts +105 -0
- package/dist/types/utils/constants.d.ts +136 -0
- package/dist/types/utils/environment.d.ts +57 -0
- package/dist/types/utils/fs.d.ts +133 -0
- package/dist/types/utils/http.d.ts +41 -0
- package/dist/types/utils/index.d.ts +7 -0
- package/dist/types/utils/md.d.ts +156 -0
- package/dist/types/utils/tests.d.ts +170 -0
- package/dist/types/utils/text.d.ts +106 -0
- package/dist/types/utils/timeout.d.ts +1 -0
- package/dist/types/utils/types.d.ts +81 -0
- package/dist/types/utils/utils.d.ts +91 -0
- package/dist/types/utils/web.d.ts +7 -0
- package/dist/types/writers/OutputWriter.d.ts +49 -0
- package/dist/types/writers/RegexpOutputWriter.d.ts +69 -0
- package/dist/types/writers/StandardOutputWriter.d.ts +91 -0
- package/dist/types/writers/index.d.ts +4 -0
- package/dist/types/writers/types.d.ts +29 -0
- package/dist/utils.js +1 -0
- package/lib/assets/slogans.json +802 -0
- package/lib/bin/tag-release.cjs +12 -0
- package/lib/bin/update-scripts.cjs +12 -0
- package/lib/cli/command.cjs +153 -0
- package/lib/cli/commands/index.cjs +20 -0
- package/lib/cli/commands/tag-release.cjs +168 -0
- package/lib/cli/commands/update-scripts.cjs +511 -0
- package/lib/cli/constants.cjs +80 -0
- package/lib/cli/index.cjs +22 -0
- package/lib/cli/types.cjs +4 -0
- package/lib/esm/assets/slogans.json +802 -0
- package/lib/esm/bin/tag-release.js +10 -0
- package/lib/esm/bin/update-scripts.js +10 -0
- package/lib/esm/cli/command.js +149 -0
- package/lib/esm/cli/commands/index.js +4 -0
- package/lib/esm/cli/commands/tag-release.js +164 -0
- package/lib/esm/cli/commands/update-scripts.js +504 -0
- package/lib/esm/cli/constants.js +77 -0
- package/lib/esm/cli/index.js +6 -0
- package/lib/esm/cli/types.js +3 -0
- package/lib/esm/index.js +41 -0
- package/lib/esm/input/index.js +4 -0
- package/lib/esm/input/input.js +570 -0
- package/lib/esm/input/types.js +3 -0
- package/lib/esm/output/common.js +93 -0
- package/lib/esm/output/index.js +5 -0
- package/lib/esm/output/logging.js +350 -0
- package/lib/esm/output/types.js +3 -0
- package/lib/esm/utils/accumulator.js +145 -0
- package/lib/esm/utils/constants.js +176 -0
- package/lib/esm/utils/environment.js +91 -0
- package/lib/esm/utils/fs.js +271 -0
- package/lib/esm/utils/http.js +70 -0
- package/lib/esm/utils/index.js +9 -0
- package/lib/esm/utils/md.js +3 -0
- package/lib/esm/utils/tests.js +223 -0
- package/lib/esm/utils/text.js +142 -0
- package/lib/esm/utils/timeout.js +5 -0
- package/lib/esm/utils/types.js +3 -0
- package/lib/esm/utils/utils.js +220 -0
- package/lib/esm/utils/web.js +12 -0
- package/lib/esm/writers/OutputWriter.js +3 -0
- package/lib/esm/writers/RegexpOutputWriter.js +98 -0
- package/lib/esm/writers/StandardOutputWriter.js +127 -0
- package/lib/esm/writers/index.js +6 -0
- package/lib/esm/writers/types.js +3 -0
- package/lib/index.cjs +58 -0
- package/lib/input/index.cjs +20 -0
- package/lib/input/input.cjs +577 -0
- package/lib/input/types.cjs +4 -0
- package/lib/output/common.cjs +100 -0
- package/lib/output/index.cjs +21 -0
- package/lib/output/logging.cjs +355 -0
- package/lib/output/types.cjs +4 -0
- package/lib/utils/accumulator.cjs +149 -0
- package/lib/utils/constants.cjs +179 -0
- package/lib/utils/environment.cjs +95 -0
- package/lib/utils/fs.cjs +288 -0
- package/lib/utils/http.cjs +77 -0
- package/lib/utils/index.cjs +25 -0
- package/lib/utils/md.cjs +4 -0
- package/lib/utils/tests.cjs +263 -0
- package/lib/utils/text.cjs +153 -0
- package/lib/utils/timeout.cjs +8 -0
- package/lib/utils/types.cjs +4 -0
- package/lib/utils/utils.cjs +226 -0
- package/lib/utils/web.cjs +15 -0
- package/lib/writers/OutputWriter.cjs +4 -0
- package/lib/writers/RegexpOutputWriter.cjs +102 -0
- package/lib/writers/StandardOutputWriter.cjs +131 -0
- package/lib/writers/index.cjs +22 -0
- package/lib/writers/types.cjs +4 -0
- package/package.json +121 -0
package/package.json
ADDED
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@decaf-ts/utils",
|
|
3
|
+
"version": "0.1.6",
|
|
4
|
+
"description": "module management utils for decaf-ts",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"exports": {
|
|
7
|
+
"require": "./lib/index.cjs",
|
|
8
|
+
"import": "./lib/esm/index.js"
|
|
9
|
+
},
|
|
10
|
+
"types": "dist/types/index.d.ts",
|
|
11
|
+
"scripts": {
|
|
12
|
+
"do-install": "TOKEN=$(cat .token) npm install",
|
|
13
|
+
"update-scripts": "node ./bin/update-scripts.cjs",
|
|
14
|
+
"on-first-run": "node ./bin/update-scripts.cjs --boot",
|
|
15
|
+
"set-git-auth": "git config url.\"https://api:$(cat .token)@github.com/\".insteadOf \"https://github.com/\" && git config url.\"https://ssh:$(cat .token)@github.com/\".insteadOf \"ssh://git@github.com/\" && git config url.\"https://git:$(cat .token)@github.com/\".insteadOf \"git@github.com:\"",
|
|
16
|
+
"flash-forward": "npx npm-check-updates -u && npm run do-install",
|
|
17
|
+
"reset": "rm -rf * && git checkout . && git pull && npm run do-install",
|
|
18
|
+
"build": "rimraf ./lib && rimraf ./dist && gulp dev",
|
|
19
|
+
"build:prod": "rimraf ./lib && rimraf ./dist && gulp prod",
|
|
20
|
+
"test": "jest --runInBand --detectOpenHandles",
|
|
21
|
+
"test:unit": "jest --testPathPattern=\"/tests/unit\" --passWithNoTests --detectOpenHandles",
|
|
22
|
+
"test:integration": "jest --testPathPattern=\"/tests/(integration)\" --passWithNoTests --detectOpenHandles",
|
|
23
|
+
"test:all": "jest --testPathPattern=\"/tests\" --passWithNoTests --detectOpenHandles",
|
|
24
|
+
"test:circular": "dpdm -T --no-warning --no-tree ./src/index.ts",
|
|
25
|
+
"coverage": "rimraf ./workdocs/reports/data/*.json && npm run test:all -- --coverage --config=./workdocs/reports/jest.coverage.config.ts",
|
|
26
|
+
"lint": "eslint .",
|
|
27
|
+
"lint-fix": "eslint --fix .",
|
|
28
|
+
"prepare-release": "npm run lint-fix && npm run build && npm run coverage && npm run docs",
|
|
29
|
+
"release": "./bin/tag-release.sh",
|
|
30
|
+
"clean-publish": "npx clean-publish",
|
|
31
|
+
"drawings": "for FILE in workdocs/drawings/*.drawio; do echo \"converting $FILE to image...\" && docker run --rm -v $(pwd):/data rlespinasse/drawio-export --format png $FILE; done && cp -rf workdocs/drawings/export/* workdocs/resources/",
|
|
32
|
+
"uml": "cd workdocs/uml && for FILE in ./*.puml; do docker run --rm -v $(pwd):/work -w /work miy4/plantuml -DPLANTUML_LIMIT_SIZE=8192 -tpng $FILE; done && cd ../.. && cp -fr workdocs/uml/*.png workdocs/resources/",
|
|
33
|
+
"docs": "npx rimraf ./docs && mkdir docs && npm run do-install -- better-docs taffydb && gulp docs; npm remove better-docs taffydb",
|
|
34
|
+
"publish-docs": "docker run -it --rm --user $(id -u):$(id -g) -v \"$(pwd)/workdocs/confluence:/content\" -e ATLASSIAN_API_TOKEN=$(cat .confluence-token) ghcr.io/markdown-confluence/publish:latest"
|
|
35
|
+
},
|
|
36
|
+
"repository": {
|
|
37
|
+
"type": "git",
|
|
38
|
+
"url": "git+https://github.com/decaf-ts/utils.git"
|
|
39
|
+
},
|
|
40
|
+
"engines": {
|
|
41
|
+
"node": ">=20.0.0",
|
|
42
|
+
"npm": ">=10.0.0"
|
|
43
|
+
},
|
|
44
|
+
"files": [
|
|
45
|
+
"lib",
|
|
46
|
+
"dist"
|
|
47
|
+
],
|
|
48
|
+
"keywords": [
|
|
49
|
+
"plantuml",
|
|
50
|
+
"mermaid",
|
|
51
|
+
"uml",
|
|
52
|
+
"drawio",
|
|
53
|
+
"mddocs",
|
|
54
|
+
"md",
|
|
55
|
+
"jsdoc",
|
|
56
|
+
"doc",
|
|
57
|
+
"docs",
|
|
58
|
+
"documentation",
|
|
59
|
+
"ci/cd",
|
|
60
|
+
"ci",
|
|
61
|
+
"cd",
|
|
62
|
+
"template",
|
|
63
|
+
"typescript",
|
|
64
|
+
"ts"
|
|
65
|
+
],
|
|
66
|
+
"author": "Tiago Venceslau",
|
|
67
|
+
"license": "LGPL-3.0-or-later",
|
|
68
|
+
"bugs": {
|
|
69
|
+
"url": "https://github.com/decaf-ts/utils/issues"
|
|
70
|
+
},
|
|
71
|
+
"homepage": "https://github.com/decaf-ts/utils#readme",
|
|
72
|
+
"devDependencies": {
|
|
73
|
+
"@eslint/js": "^9.23.0",
|
|
74
|
+
"@stylistic/eslint-plugin": "^4.2.0",
|
|
75
|
+
"@types/jest": "^29.5.14",
|
|
76
|
+
"@types/prompts": "^2.4.9",
|
|
77
|
+
"clean-publish": "^5.1.0",
|
|
78
|
+
"dpdm": "^3.14.0",
|
|
79
|
+
"eslint": "^9.23.0",
|
|
80
|
+
"eslint-config-prettier": "^10.1.1",
|
|
81
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
82
|
+
"globals": "^16.0.0",
|
|
83
|
+
"gulp": "^5.0.0",
|
|
84
|
+
"gulp-if": "^3.0.0",
|
|
85
|
+
"gulp-rename": "^2.0.0",
|
|
86
|
+
"gulp-replace": "^1.1.4",
|
|
87
|
+
"gulp-run-command": "^0.0.10",
|
|
88
|
+
"gulp-sourcemaps": "^2.6.5",
|
|
89
|
+
"gulp-typescript": "^6.0.0-alpha.1",
|
|
90
|
+
"gulp-uglify": "^3.0.2",
|
|
91
|
+
"jest": "^29.7.0",
|
|
92
|
+
"jest-html-reporters": "^3.1.7",
|
|
93
|
+
"jest-junit": "^16.0.0",
|
|
94
|
+
"jsdoc": "^4.0.4",
|
|
95
|
+
"jsdoc-mermaid": "^1.0.0",
|
|
96
|
+
"markdown-include": "^0.4.3",
|
|
97
|
+
"merge-stream": "^2.0.0",
|
|
98
|
+
"minimist": "^1.2.8",
|
|
99
|
+
"nodemon": "^3.1.9",
|
|
100
|
+
"npm-check-updates": "^17.1.16",
|
|
101
|
+
"prettier": "3.5.3",
|
|
102
|
+
"prompts": "^2.4.2",
|
|
103
|
+
"rimraf": "^6.0.1",
|
|
104
|
+
"ts-jest": "^29.2.6",
|
|
105
|
+
"ts-loader": "^9.5.2",
|
|
106
|
+
"ts-node": "^10.9.2",
|
|
107
|
+
"typescript": "^5.8.3",
|
|
108
|
+
"typescript-eslint": "^8.30.1",
|
|
109
|
+
"vinyl-named": "^1.1.0",
|
|
110
|
+
"webpack-node-externals": "^3.0.0",
|
|
111
|
+
"webpack-stream": "^7.0.0"
|
|
112
|
+
},
|
|
113
|
+
"overrides": {
|
|
114
|
+
"gulp-run-command": {
|
|
115
|
+
"cross-spawn": "^7.0.6"
|
|
116
|
+
}
|
|
117
|
+
},
|
|
118
|
+
"dependencies": {
|
|
119
|
+
"styled-string-builder": "^1.4.6"
|
|
120
|
+
}
|
|
121
|
+
}
|