@decaf-ts/cli 0.0.14 → 0.3.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/cli",
3
- "version": "0.0.14",
3
+ "version": "0.3.0",
4
4
  "description": "cli for decaf-ts projects",
5
5
  "type": "module",
6
6
  "exports": {
@@ -9,27 +9,33 @@
9
9
  },
10
10
  "types": "lib/index.d.ts",
11
11
  "bin": {
12
- "decaf": "lib/cli.cjs"
12
+ "decaf": "lib/bin/cli.cjs"
13
13
  },
14
14
  "scripts": {
15
15
  "do-install": "TOKEN=$(cat .token) npm install",
16
+ "update-dependencies": "npm update @decaf-ts/*",
17
+ "update-scripts": "npx update-scripts",
18
+ "on-first-run": "npx update-scripts --boot",
19
+ "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
20
  "flash-forward": "npx npm-check-updates -u && npm run do-install",
17
21
  "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 --coverage --testPathPattern=\"/tests/unit\" --passWithNoTests --detectOpenHandles",
21
- "test:integration": "jest --coverage --testPathPattern=\"/tests/(integration)\" --passWithNoTests --detectOpenHandles",
22
- "test:all": "jest --coverage --testPathPattern=\"/tests/(unit|integration)\" --passWithNoTests",
22
+ "build": "npx build-scripts --dev",
23
+ "build:prod": "npx build-scripts --prod",
24
+ "test": "jest --runInBand --coverage --detectOpenHandles",
25
+ "test:unit": "jest --testPathPattern=\"/tests/unit\" --passWithNoTests --detectOpenHandles",
26
+ "test:integration": "jest --testPathPattern=\"/tests/(integration)\" --passWithNoTests --detectOpenHandles",
27
+ "test:all": "jest --testPathPattern=\"/tests\" --passWithNoTests",
28
+ "test:circular": "dpdm -T --no-warning --no-tree ./src/index.ts",
29
+ "coverage": "rimraf ./workdocs/reports/data/*.json && npm run test:all -- --coverage --config=./workdocs/reports/jest.coverage.config.ts",
23
30
  "lint": "eslint .",
24
31
  "lint-fix": "eslint --fix .",
25
- "test:circular": "dpdm -T --no-warning --no-tree ./src/index.ts",
26
32
  "prepare-release": "npm run lint-fix && npm run build:prod && npm run coverage && npm run docs",
27
33
  "release": "./bin/tag-release.sh",
28
34
  "clean-publish": "npx clean-publish",
29
- "coverage": "npm run test:all && cd workdocs && jest-coverage-badges",
30
35
  "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/",
31
36
  "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/",
32
- "docs": "npx rimraf ./docs && mkdir docs && npm run do-install -- better-docs taffydb && gulp docs; npm remove better-docs taffydb"
37
+ "docs": "npx rimraf ./docs && mkdir docs && npx build-scripts --docs",
38
+ "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"
33
39
  },
34
40
  "repository": {
35
41
  "type": "git",
@@ -68,50 +74,39 @@
68
74
  },
69
75
  "homepage": "https://github.com/decaf-ts/cli#readme",
70
76
  "devDependencies": {
71
- "@eslint/js": "^9.22.0",
77
+ "@decaf-ts/utils": "latest",
78
+ "@eslint/js": "^9.25.1",
79
+ "@rollup/plugin-commonjs": "^28.0.3",
80
+ "@rollup/plugin-json": "^6.1.0",
81
+ "@rollup/plugin-node-resolve": "^16.0.1",
82
+ "@rollup/plugin-typescript": "^12.1.2",
72
83
  "@stylistic/eslint-plugin": "^4.2.0",
73
84
  "@types/jest": "^29.5.14",
74
85
  "clean-publish": "^5.1.0",
75
86
  "dpdm": "^3.14.0",
76
- "eslint": "^9.22.0",
77
- "eslint-config-prettier": "^10.1.1",
78
- "eslint-plugin-prettier": "^5.2.3",
87
+ "eslint": "^9.25.1",
88
+ "eslint-config-prettier": "^10.1.2",
89
+ "eslint-plugin-prettier": "^5.2.6",
79
90
  "globals": "^16.0.0",
80
- "gulp": "^5.0.0",
81
- "gulp-if": "^3.0.0",
82
- "gulp-rename": "^2.0.0",
83
- "gulp-replace": "^1.1.4",
84
- "gulp-run-command": "^0.0.10",
85
- "gulp-sourcemaps": "^2.6.5",
86
- "gulp-typescript": "^6.0.0-alpha.1",
87
- "gulp-uglify": "^3.0.2",
88
91
  "jest": "^29.7.0",
89
- "jest-coverage-badges": "^1.0.0",
92
+ "jest-html-reporters": "^3.1.7",
90
93
  "jest-junit": "^16.0.0",
91
94
  "jsdoc": "^4.0.4",
92
95
  "jsdoc-mermaid": "^1.0.0",
93
96
  "markdown-include": "^0.4.3",
94
- "merge-stream": "^2.0.0",
95
97
  "minimist": "^1.2.8",
96
98
  "nodemon": "^3.1.9",
97
- "npm-check-updates": "^17.1.15",
99
+ "npm-check-updates": "^18.0.0",
98
100
  "prettier": "3.5.3",
99
101
  "rimraf": "^6.0.1",
100
- "through2": "^4.0.2",
101
- "ts-jest": "^29.2.6",
102
+ "rollup": "^4.40.0",
103
+ "ts-jest": "^29.3.2",
102
104
  "ts-loader": "^9.5.2",
103
105
  "ts-node": "^10.9.2",
104
- "typescript": "^5.8.2",
105
- "typescript-eslint": "^8.26.1",
106
- "vinyl-named": "^1.1.0",
107
- "webpack-stream": "^7.0.0"
106
+ "typescript": "^5.8.3",
107
+ "typescript-eslint": "^8.31.0"
108
108
  },
109
109
  "dependencies": {
110
110
  "commander": "^13.1.0"
111
- },
112
- "overrides": {
113
- "gulp-run-command": {
114
- "cross-spawn": "^7.0.6"
115
- }
116
111
  }
117
112
  }
package/lib/cli.cjs DELETED
@@ -1,25 +0,0 @@
1
- #!/usr/bin/env node
2
- /**
3
- * @description Decaf-ts' CLI entry file
4
- * @summary This file will crawl the current working directory for files called {@link CLI_FILE_NAME}
5
- * within the @decaf-ts namespace and load then as subcommands
6
- *
7
- * @example
8
- * run module command - $ npx decaf <module name> <module command> ...<module command options>
9
- * get module help - $ npx decaf help <module name>;
10
- * list imported modules - $ npx decaf list;
11
- * get cli help - $ npx decaf help;
12
- *
13
- * @memberOf module:CLI
14
- */
15
- Object.defineProperty(exports, "__esModule", { value: true });
16
- const CliWrapper_1 = require("./CliWrapper.cjs");
17
- new CliWrapper_1.CliWrapper()
18
- .run(process.argv)
19
- .then(() => {
20
- console.log("Thank you for using decaf-ts' command line interface");
21
- })
22
- .catch((e) => {
23
- console.error(`${e instanceof Error ? e.message : e}`);
24
- process.exit(1);
25
- });
package/lib/esm/cli.js DELETED
@@ -1,28 +0,0 @@
1
- /**
2
- * BIN_CALL_PLACEHOLDER - DO NOT REMOVE
3
- */
4
- /**
5
- * @description Decaf-ts' CLI entry file
6
- * @summary This file will crawl the current working directory for files called {@link CLI_FILE_NAME}
7
- * within the @decaf-ts namespace and load then as subcommands
8
- *
9
- * @example
10
- * run module command - $ npx decaf <module name> <module command> ...<module command options>
11
- * get module help - $ npx decaf help <module name>;
12
- * list imported modules - $ npx decaf list;
13
- * get cli help - $ npx decaf help;
14
- *
15
- * @memberOf module:CLI
16
- */
17
- import { CliWrapper } from "./CliWrapper";
18
- new CliWrapper()
19
- .run(process.argv)
20
- .then(() => {
21
- console.log("Thank you for using decaf-ts' command line interface");
22
- })
23
- .catch((e) => {
24
- console.error(`${e instanceof Error ? e.message : e}`);
25
- process.exit(1);
26
- });
27
-
28
- //# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzI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