@filipebraida/adonis-function-points 0.1.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.
Files changed (80) hide show
  1. package/LICENSE.md +21 -0
  2. package/README.md +427 -0
  3. package/bin/cli.js +4 -0
  4. package/build/commands/fp_calibrate.d.ts +16 -0
  5. package/build/commands/fp_count.d.ts +11 -0
  6. package/build/commands/fp_diff.d.ts +16 -0
  7. package/build/commands/fp_explain.d.ts +15 -0
  8. package/build/commands/fp_inventory.d.ts +9 -0
  9. package/build/commands/main.d.ts +5 -0
  10. package/build/commands/main.js +120 -0
  11. package/build/commands/printer.d.ts +9 -0
  12. package/build/configure.d.ts +2 -0
  13. package/build/configure.js +10 -0
  14. package/build/define_config-DOqWyPwV.js +19 -0
  15. package/build/index.d.ts +5 -0
  16. package/build/index.js +4 -0
  17. package/build/pipeline-BzP-ITGN.js +2306 -0
  18. package/build/resolvers-CU9HKYpn.js +555 -0
  19. package/build/runners-Bt8tbISi.js +630 -0
  20. package/build/scripts/smoke_package.d.ts +1 -0
  21. package/build/src/albrecht/calibration.d.ts +62 -0
  22. package/build/src/albrecht/counter.d.ts +48 -0
  23. package/build/src/albrecht/data_functions.d.ts +32 -0
  24. package/build/src/albrecht/diff.d.ts +66 -0
  25. package/build/src/albrecht/index.d.ts +13 -0
  26. package/build/src/albrecht/tables.d.ts +19 -0
  27. package/build/src/albrecht/technical_filter.d.ts +25 -0
  28. package/build/src/albrecht/transactional_functions.d.ts +35 -0
  29. package/build/src/cli/load_config.d.ts +28 -0
  30. package/build/src/cli/print.d.ts +19 -0
  31. package/build/src/cli/runners.d.ts +52 -0
  32. package/build/src/cli.d.ts +19 -0
  33. package/build/src/cli.js +198 -0
  34. package/build/src/define_config.d.ts +137 -0
  35. package/build/src/inventory/app_context.d.ts +73 -0
  36. package/build/src/inventory/detectors/lucid.d.ts +77 -0
  37. package/build/src/inventory/graph/call_graph.d.ts +80 -0
  38. package/build/src/inventory/graph/noise.d.ts +9 -0
  39. package/build/src/inventory/index.d.ts +15 -0
  40. package/build/src/inventory/paths.d.ts +22 -0
  41. package/build/src/inventory/resolvers/action_object.d.ts +14 -0
  42. package/build/src/inventory/resolvers/index.d.ts +23 -0
  43. package/build/src/inventory/resolvers/index.js +2 -0
  44. package/build/src/inventory/resolvers/job_dispatch.d.ts +18 -0
  45. package/build/src/inventory/resolvers/module_function.d.ts +11 -0
  46. package/build/src/inventory/resolvers/property_service.d.ts +18 -0
  47. package/build/src/inventory/resolvers/same_class_method.d.ts +17 -0
  48. package/build/src/inventory/resolvers/static_service.d.ts +13 -0
  49. package/build/src/inventory/resolvers/transformer.d.ts +25 -0
  50. package/build/src/inventory/resolvers/types.d.ts +65 -0
  51. package/build/src/inventory/source.d.ts +39 -0
  52. package/build/src/inventory/sources/data_stores.d.ts +31 -0
  53. package/build/src/inventory/sources/json_schemas.d.ts +32 -0
  54. package/build/src/inventory/sources/routes_ast.d.ts +28 -0
  55. package/build/src/metrics/structure.d.ts +72 -0
  56. package/build/src/pipeline.d.ts +44 -0
  57. package/build/src/pipeline.js +2 -0
  58. package/build/src/reporters/table.d.ts +6 -0
  59. package/build/src/types.d.ts +256 -0
  60. package/build/src/types.js +1 -0
  61. package/build/stubs/config.stub +37 -0
  62. package/build/tmp/probe.d.ts +1 -0
  63. package/build/tmp/probe_cli.d.ts +1 -0
  64. package/build/tmp/probe_cmp.d.ts +1 -0
  65. package/build/tmp/probe_count.d.ts +1 -0
  66. package/build/tmp/probe_data.d.ts +1 -0
  67. package/build/tmp/probe_diff.d.ts +1 -0
  68. package/build/tmp/probe_gap.d.ts +1 -0
  69. package/build/tmp/probe_graph.d.ts +1 -0
  70. package/build/tmp/probe_metrics.d.ts +1 -0
  71. package/build/tmp/probe_miss.d.ts +1 -0
  72. package/build/tmp/probe_names.d.ts +1 -0
  73. package/build/tmp/probe_nodata.d.ts +1 -0
  74. package/build/tmp/probe_one.d.ts +1 -0
  75. package/build/tmp/probe_perf.d.ts +1 -0
  76. package/build/tmp/probe_routes.d.ts +1 -0
  77. package/build/tmp/probe_unres.d.ts +1 -0
  78. package/build/tmp/probe_vazquez.d.ts +1 -0
  79. package/build/tsdown.config.d.ts +2 -0
  80. package/package.json +133 -0
package/package.json ADDED
@@ -0,0 +1,133 @@
1
+ {
2
+ "name": "@filipebraida/adonis-function-points",
3
+ "description": "Automated function point counting and code metrics for AdonisJS applications.",
4
+ "version": "0.1.0",
5
+ "engines": {
6
+ "node": ">=24.0.0"
7
+ },
8
+ "type": "module",
9
+ "files": [
10
+ "build",
11
+ "bin/cli.js",
12
+ "!build/bin",
13
+ "!build/tests"
14
+ ],
15
+ "main": "build/index.js",
16
+ "exports": {
17
+ ".": {
18
+ "types": "./build/index.d.ts",
19
+ "import": "./build/index.js"
20
+ },
21
+ "./types": {
22
+ "types": "./build/src/types.d.ts",
23
+ "import": "./build/src/types.js"
24
+ },
25
+ "./resolvers": {
26
+ "types": "./build/src/inventory/resolvers/index.d.ts",
27
+ "import": "./build/src/inventory/resolvers/index.js"
28
+ },
29
+ "./commands": {
30
+ "types": "./build/commands/main.d.ts",
31
+ "import": "./build/commands/main.js"
32
+ },
33
+ "./commands/*": {
34
+ "types": "./build/commands/*.d.ts",
35
+ "import": "./build/commands/*.js"
36
+ }
37
+ },
38
+ "scripts": {
39
+ "copy:templates": "copyfiles \"stubs/**/*.stub\" build",
40
+ "typecheck": "tsc --noEmit",
41
+ "lint": "eslint .",
42
+ "format": "prettier --write .",
43
+ "quick:test": "node --import=@poppinss/ts-exec --enable-source-maps bin/test.ts",
44
+ "pretest": "npm run lint",
45
+ "test": "c8 npm run quick:test",
46
+ "precompile": "npm run lint",
47
+ "compile": "tsdown && tsc --emitDeclarationOnly --declaration",
48
+ "postcompile": "npm run copy:templates",
49
+ "build": "npm run compile",
50
+ "version": "npm run build",
51
+ "prepublishOnly": "npm run build",
52
+ "test:package": "node --import=@poppinss/ts-exec scripts/smoke_package.ts"
53
+ },
54
+ "keywords": [
55
+ "adonisjs",
56
+ "adonis",
57
+ "function-points",
58
+ "function-point-analysis",
59
+ "ifpug",
60
+ "afp",
61
+ "cosmic",
62
+ "apf",
63
+ "pontos-de-funcao",
64
+ "metrics",
65
+ "code-metrics",
66
+ "static-analysis",
67
+ "software-measurement",
68
+ "cli",
69
+ "ci"
70
+ ],
71
+ "author": "Filipe Braida <filipebraida@gmail.com>",
72
+ "license": "MIT",
73
+ "repository": {
74
+ "type": "git",
75
+ "url": "git+https://github.com/filipebraida/adonis-function-points.git"
76
+ },
77
+ "bugs": {
78
+ "url": "https://github.com/filipebraida/adonis-function-points/issues"
79
+ },
80
+ "homepage": "https://github.com/filipebraida/adonis-function-points#readme",
81
+ "dependencies": {
82
+ "@poppinss/utils": "^6.7.0",
83
+ "jiti": "^2.6.1",
84
+ "ts-morph": "^24.0.0"
85
+ },
86
+ "devDependencies": {
87
+ "@adonisjs/assembler": "^8.0.0",
88
+ "@adonisjs/core": "^7.0.0",
89
+ "@adonisjs/eslint-config": "^3.0.0",
90
+ "@adonisjs/lucid": "^22.0.0",
91
+ "@adonisjs/prettier-config": "^1.4.5",
92
+ "@adonisjs/tsconfig": "^2.0.0",
93
+ "@japa/assert": "^4.2.0",
94
+ "@japa/runner": "^5.3.0",
95
+ "@poppinss/ts-exec": "^1.4.4",
96
+ "@types/node": "^25.3.5",
97
+ "c8": "^11.0.0",
98
+ "copyfiles": "^2.4.1",
99
+ "eslint": "^10.0.3",
100
+ "prettier": "^3.8.1",
101
+ "tsdown": "^0.21.0",
102
+ "typescript": "^5.9.3"
103
+ },
104
+ "peerDependencies": {
105
+ "@adonisjs/core": "^7.0.0",
106
+ "@adonisjs/lucid": "^22.0.0"
107
+ },
108
+ "peerDependenciesMeta": {
109
+ "@adonisjs/core": {
110
+ "optional": true
111
+ },
112
+ "@adonisjs/lucid": {
113
+ "optional": true
114
+ }
115
+ },
116
+ "publishConfig": {
117
+ "access": "public"
118
+ },
119
+ "c8": {
120
+ "reporter": [
121
+ "text",
122
+ "html"
123
+ ],
124
+ "exclude": [
125
+ "tests/**"
126
+ ]
127
+ },
128
+ "prettier": "@adonisjs/prettier-config",
129
+ "bin": {
130
+ "adonis-function-points": "bin/cli.js"
131
+ },
132
+ "packageManager": "pnpm@12.5.1"
133
+ }