-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
166 lines (166 loc) · 8.29 KB
/
package.json
File metadata and controls
166 lines (166 loc) · 8.29 KB
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
{
"name": "reflaxe-elixir",
"version": "0.2.1",
"description": "Haxe to Elixir compilation target using Reflaxe with Mix integration. Uses npm/lix for Haxe compiler development, mix for Elixir runtime testing.",
"main": "src/reflaxe/elixir/ElixirCompiler.hx",
"keywords": [
"haxe",
"elixir",
"beam",
"phoenix",
"otp",
"ecto",
"liveview",
"compiler",
"reflaxe"
],
"author": "fullofcaffeine",
"license": "GPL-3.0",
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^13.0.1",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^11.0.3",
"@semantic-release/release-notes-generator": "^14.0.3",
"conventional-changelog-conventionalcommits": "^8.0.0",
"lix": "^15.12.4",
"semantic-release": "^24.2.5"
},
"scripts": {
"postinstall": "lix download",
"build": "echo 'Reflaxe.Elixir is a compiler - no build step needed'",
"test": "scripts/test-chunks.sh --parallel 8 --chunk-deadline 900 --timeout 120 && make -C test -j8 summary-negative && npm run test:generator && npm run test:elixir-validate && npm run test:mix && npm run test:runtime-smoke",
"test:bounded": "scripts/test-chunks.sh --parallel 8 --chunk-deadline 900 --timeout 120",
"test:sequential": "make -C test -j1 && npm run test:elixir-validate && npm run test:generator && npm run test:mix",
"test:quick": "bash scripts/test-chunks.sh --parallel 8 --chunk-deadline 900 --timeout 120 --categories core,stdlib,regression && bash test/validate_elixir.sh test/snapshot/core test/snapshot/stdlib test/snapshot/regression",
"test:elixir-validate": "make -C test validate-elixir",
"test:with-validation": "make -C test -j8 test-with-validation && npm run test:mix",
"test:single": "make -C test single",
"test:generator": "haxe tools/TestProjectGeneratorTemplates.hxml",
"test:mix": "HAXE_NO_SERVER=1 mix local.hex --force && HAXE_NO_SERVER=1 mix local.rebar --force && HAXE_NO_SERVER=1 MIX_ENV=test mix deps.get && HAXE_NO_SERVER=1 MIX_ENV=test mix deps.compile && HAXE_NO_SERVER=1 MIX_ENV=test mix test --max-cases 1 --timeout 120000",
"test:mix-fast": "bash scripts/test-mix-fast.sh",
"test:haxe5": "bash scripts/test-haxe5-smoke.sh",
"test:core": "scripts/test-runner.sh --category core",
"test:stdlib": "scripts/test-runner.sh --category stdlib",
"test:regression": "scripts/test-runner.sh --category regression",
"test:phoenix": "scripts/test-runner.sh --category phoenix",
"test:ecto": "scripts/test-runner.sh --category ecto",
"test:otp": "scripts/test-runner.sh --category otp",
"test:changed": "scripts/test-runner.sh --changed",
"test:failed": "scripts/test-runner.sh --failed",
"test:pattern": "scripts/test-runner.sh --pattern",
"test:parallel": "make -C test -j8",
"test:list": "make -C test list",
"test:clean": "make -C test clean",
"test:mix-parallel": "mix local.hex --force && mix local.rebar --force && MIX_ENV=test mix deps.get && MIX_ENV=test mix deps.compile && MIX_ENV=test mix test --max-cases 4 --timeout 120000",
"test:runtime-smoke": "bash scripts/test-runtime-smoke.sh",
"test:examples": "bash -lc 'HAXE_BIN=${HAXE_BIN:-haxe}; for dir in examples/*/; do echo \"Testing $dir\"; if [ -f \"$dir/compile-all.hxml\" ]; then (cd \"$dir\" && $HAXE_BIN compile-all.hxml) || exit 1; elif [ -f \"$dir/build.hxml\" ]; then (cd \"$dir\" && $HAXE_BIN build.hxml) || exit 1; fi; done'",
"test:examples-elixir": "bash scripts/test-examples-elixir.sh",
"test:update": "make -C test update-intended",
"test:verify": "npm run test:core && echo 'Core functionality verified ✅'",
"clean": "npm run test:clean",
"test:help": "scripts/test-runner.sh --help",
"clean:generated": "bash -c 'echo \"Cleaning compiler-generated files...\"; for dir in examples/*/lib test/snapshot/*/out test/snapshot/*/intended; do if [ -f \"$dir/_GeneratedFiles.json\" ]; then echo \"Processing $dir\"; (cd \"$dir\" && jq -r \".filesGenerated[]\" _GeneratedFiles.json 2>/dev/null | while read -r file; do if [ -f \"$file\" ]; then echo \" Removing: $file\"; rm \"$file\"; fi; done); elif [ -d \"$dir\" ]; then echo \"Cleaning $dir (no manifest)\"; find \"$dir\" -name \"*.ex\" -type f -delete 2>/dev/null; fi; done; echo \"✓ Cleaned all compiler-generated files\"'",
"setup": "lix scope create && lix install haxelib:reflaxe",
"lint:hxdoc": "bash scripts/lint/hxdoc_check.sh",
"lint:hx-format": "bash scripts/lint/hx_format_guard.sh",
"guard:names": "bash scripts/lint/name_heuristics_guard.sh",
"guard:numeric": "bash scripts/lint/numeric_suffix_guard.sh",
"guard:no-elixir-in-app": "bash scripts/lint/app_no_elixir_injections.sh",
"guard:no-dynamic": "bash scripts/lint/no_dynamic_guard.sh",
"guard:no-disabled-debug": "bash scripts/lint/no_disabled_debug_guard.sh",
"guard:filesize": "bash scripts/lint/generated_file_size_guard.sh examples/todo-app/lib",
"guard:sloppy-pattern-numeric": "bash scripts/lint/sloppy_numeric_in_patterns_guard.sh",
"guard:examples-hxx-mode": "bash scripts/lint/examples_hxx_mode_guard.sh",
"guard:docs-links": "node scripts/lint/markdown_links_guard.js",
"guard:stdlib-parity": "bash scripts/ci/check-stdlib-parity-report.sh",
"guard:hx-format": "bash scripts/lint/hx_format_guard.sh",
"ci:guards": "npm run guard:hx-format && npm run guard:names && npm run guard:numeric && npm run guard:sloppy-pattern-numeric && npm run guard:no-elixir-in-app && npm run guard:no-dynamic && npm run guard:no-disabled-debug && npm run guard:examples-hxx-mode && npm run guard:filesize && npm run guard:stdlib-parity && npm run guard:docs-links && echo 'Guards passed'",
"ci:dead-code-audit": "bash -lc 'mkdir -p tmp && scripts/repo-dead-code-audit.sh --scope src --limit 200 --json > tmp/dead-code-audit.json && echo \"Wrote tmp/dead-code-audit.json\"'",
"ci:acceptance": "bash scripts/ci/acceptance_gate.sh",
"ci:budgets": "bash scripts/ci/perf-determinism-budgets.sh",
"hooks:install": "bash scripts/install-git-hooks.sh",
"qa:sentinel": "bash scripts/qa-sentinel.sh --app examples/todo-app --port 4001 --async --deadline 600 --verbose",
"demo:todo": "bash scripts/qa-sentinel.sh --app examples/todo-app --env e2e --port 4001 --keep-alive -v --deadline 900",
"docs:order:haxe": "haxe -lib reflaxe -cp src -cp . -D reflaxe_runtime -main tools.RegistryOrderDoc --interp",
"docs:hxx:index": "haxe tools/HxxRegistryIndex.hxml"
},
"release": {
"branches": [
"main"
],
"plugins": [
[
"@semantic-release/commit-analyzer",
{
"preset": "conventionalcommits",
"releaseRules": [
{
"breaking": true,
"release": "minor"
},
{
"type": "feat",
"release": "minor"
},
{
"type": "fix",
"release": "patch"
},
{
"type": "perf",
"release": "patch"
},
{
"type": "revert",
"release": "patch"
}
]
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
[
"@semantic-release/exec",
{
"prepareCmd": "node scripts/release/sync-versions.js ${nextRelease.version}"
}
],
[
"@semantic-release/git",
{
"assets": [
"package.json",
"package-lock.json",
"haxelib.json",
"mix.exs",
"README.md",
"haxe_libraries/reflaxe.elixir.hxml",
"test/support/test_reflaxe_elixir.hxml",
"CHANGELOG.md"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\\n\\n${nextRelease.notes}"
}
],
"@semantic-release/github"
]
},
"engines": {
"node": ">=14.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/fullofcaffeine/reflaxe.elixir.git"
},
"directories": {
"doc": "docs",
"example": "examples",
"lib": "lib",
"test": "tests"
},
"bugs": {
"url": "https://github.com/fullofcaffeine/reflaxe.elixir/issues"
},
"homepage": "https://github.com/fullofcaffeine/reflaxe.elixir#readme"
}