wexample-wex-addon-dev-javascript 7.13.0__tar.gz → 7.14.0__tar.gz
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.
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/PKG-INFO +8 -8
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/README.md +4 -4
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/pyproject.toml +4 -4
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/common/npm_registry_gateway.py +1 -1
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/file/javascript_package_json_file.py +14 -19
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/file/javascript_tsconfig_json_file.py +1 -1
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/commands/service/install.py +5 -5
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/commands/service/ready.py +4 -1
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/workdir/javascript_package_workdir.py +28 -35
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/workdir/javascript_workdir.py +1 -5
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/__pycache__/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/common/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/config_value/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/config_value/javascript_package_readme_config_value.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/const/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/const/tags.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/file/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/javascript_addon_manager.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/py.typed +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/resources/.wex.yml +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/resources/package_publish.yml +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/node/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/node/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/node/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/node/service.yml +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/ai/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/ai/agents/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/ai/agents/main/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/ai/agents/main/about-service.md +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/ai/agents/main/agent.yml +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/app_service.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/commands/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/commands/service/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/docker/.wex.yml +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/docker/docker-compose.yml +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/services/vite/service.yml +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/workdir/__init__.py +0 -0
- {wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/src/wexample_wex_addon_dev_javascript/workdir/javascript_packages_suite_workdir.py +0 -0
{wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: wexample-wex-addon-dev-javascript
|
|
3
|
-
Version: 7.
|
|
3
|
+
Version: 7.14.0
|
|
4
4
|
Summary: Python dev addon for wex
|
|
5
5
|
Author-Email: weeger <contact@wexample.com>
|
|
6
6
|
License: MIT
|
|
@@ -11,10 +11,10 @@ Project-URL: homepage, https://github.com/wexample/python-wex-dev-python
|
|
|
11
11
|
Requires-Python: >=3.10
|
|
12
12
|
Requires-Dist: attrs>=23.1.0
|
|
13
13
|
Requires-Dist: cattrs>=23.1.0
|
|
14
|
-
Requires-Dist: wexample-api>=6.
|
|
14
|
+
Requires-Dist: wexample-api>=6.6.0
|
|
15
15
|
Requires-Dist: wexample-filestate-javascript>=6.5.0
|
|
16
|
-
Requires-Dist: wexample-wex-addon-ai>=11.
|
|
17
|
-
Requires-Dist: wexample-wex-addon-app>=
|
|
16
|
+
Requires-Dist: wexample-wex-addon-ai>=11.2.0
|
|
17
|
+
Requires-Dist: wexample-wex-addon-app>=26.0.0
|
|
18
18
|
Provides-Extra: dev
|
|
19
19
|
Requires-Dist: pytest; extra == "dev"
|
|
20
20
|
Requires-Dist: pytest-cov; extra == "dev"
|
|
@@ -22,7 +22,7 @@ Description-Content-Type: text/markdown
|
|
|
22
22
|
|
|
23
23
|
# wex_addon_dev_javascript
|
|
24
24
|
|
|
25
|
-
Version: 7.
|
|
25
|
+
Version: 7.14.0
|
|
26
26
|
|
|
27
27
|
Python dev addon for wex
|
|
28
28
|
|
|
@@ -104,10 +104,10 @@ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the comp
|
|
|
104
104
|
|
|
105
105
|
- attrs: >=23.1.0
|
|
106
106
|
- cattrs: >=23.1.0
|
|
107
|
-
- wexample-api: >=6.
|
|
107
|
+
- wexample-api: >=6.6.0
|
|
108
108
|
- wexample-filestate-javascript: >=6.5.0
|
|
109
|
-
- wexample-wex-addon-ai: >=11.
|
|
110
|
-
- wexample-wex-addon-app: >=
|
|
109
|
+
- wexample-wex-addon-ai: >=11.2.0
|
|
110
|
+
- wexample-wex-addon-app: >=26.0.0
|
|
111
111
|
|
|
112
112
|
## Versioning & Compatibility Policy
|
|
113
113
|
|
{wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/README.md
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# wex_addon_dev_javascript
|
|
2
2
|
|
|
3
|
-
Version: 7.
|
|
3
|
+
Version: 7.14.0
|
|
4
4
|
|
|
5
5
|
Python dev addon for wex
|
|
6
6
|
|
|
@@ -82,10 +82,10 @@ Visit the [Wexample Suite documentation](https://docs.wexample.com) for the comp
|
|
|
82
82
|
|
|
83
83
|
- attrs: >=23.1.0
|
|
84
84
|
- cattrs: >=23.1.0
|
|
85
|
-
- wexample-api: >=6.
|
|
85
|
+
- wexample-api: >=6.6.0
|
|
86
86
|
- wexample-filestate-javascript: >=6.5.0
|
|
87
|
-
- wexample-wex-addon-ai: >=11.
|
|
88
|
-
- wexample-wex-addon-app: >=
|
|
87
|
+
- wexample-wex-addon-ai: >=11.2.0
|
|
88
|
+
- wexample-wex-addon-app: >=26.0.0
|
|
89
89
|
|
|
90
90
|
## Versioning & Compatibility Policy
|
|
91
91
|
|
{wexample_wex_addon_dev_javascript-7.13.0 → wexample_wex_addon_dev_javascript-7.14.0}/pyproject.toml
RENAMED
|
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "wexample-wex-addon-dev-javascript"
|
|
9
|
-
version = "7.
|
|
9
|
+
version = "7.14.0"
|
|
10
10
|
description = "Python dev addon for wex"
|
|
11
11
|
authors = [
|
|
12
12
|
{ name = "weeger", email = "contact@wexample.com" },
|
|
@@ -20,10 +20,10 @@ classifiers = [
|
|
|
20
20
|
dependencies = [
|
|
21
21
|
"attrs>=23.1.0",
|
|
22
22
|
"cattrs>=23.1.0",
|
|
23
|
-
"wexample-api>=6.
|
|
23
|
+
"wexample-api>=6.6.0",
|
|
24
24
|
"wexample-filestate-javascript>=6.5.0",
|
|
25
|
-
"wexample-wex-addon-ai>=11.
|
|
26
|
-
"wexample-wex-addon-app>=
|
|
25
|
+
"wexample-wex-addon-ai>=11.2.0",
|
|
26
|
+
"wexample-wex-addon-app>=26.0.0",
|
|
27
27
|
]
|
|
28
28
|
|
|
29
29
|
[project.readme]
|
|
@@ -69,7 +69,7 @@ class JavascriptPackageJsonFile(AppDependenciesConfigFileMixin, JsonFile):
|
|
|
69
69
|
|
|
70
70
|
self._apply_default_publish_config(content)
|
|
71
71
|
|
|
72
|
-
return super().dumps(content
|
|
72
|
+
return super().dumps(content)
|
|
73
73
|
|
|
74
74
|
def get_dependencies_versions(
|
|
75
75
|
self, optional: bool = False, group: str = "dev"
|
|
@@ -101,34 +101,29 @@ class JavascriptPackageJsonFile(AppDependenciesConfigFileMixin, JsonFile):
|
|
|
101
101
|
# Default strategy: publish built artifacts (dist) so consumers don't need
|
|
102
102
|
# to transpile TS/ESM sources from node_modules.
|
|
103
103
|
if exports is None and (files is None or (uses_src and not uses_dist)):
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
{
|
|
104
|
+
if "files" not in content:
|
|
105
|
+
content["files"] = ["dist"]
|
|
106
|
+
if "exports" not in content:
|
|
107
|
+
content["exports"] = {
|
|
108
108
|
"./*": {
|
|
109
109
|
"types": "./dist/*.d.ts",
|
|
110
110
|
"default": "./dist/*.js",
|
|
111
111
|
}
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
"typesVersions",
|
|
116
|
-
{
|
|
112
|
+
}
|
|
113
|
+
if "typesVersions" not in content:
|
|
114
|
+
content["typesVersions"] = {
|
|
117
115
|
"*": {
|
|
118
116
|
"*": ["dist/*"],
|
|
119
117
|
}
|
|
120
|
-
}
|
|
121
|
-
)
|
|
118
|
+
}
|
|
122
119
|
return
|
|
123
120
|
|
|
124
121
|
if uses_src and not uses_dist:
|
|
125
|
-
if files is None:
|
|
126
|
-
content
|
|
127
|
-
content
|
|
128
|
-
"typesVersions"
|
|
129
|
-
{
|
|
122
|
+
if files is None and "files" not in content:
|
|
123
|
+
content["files"] = ["src"]
|
|
124
|
+
if "typesVersions" not in content:
|
|
125
|
+
content["typesVersions"] = {
|
|
130
126
|
"*": {
|
|
131
127
|
"*": ["src/*"],
|
|
132
128
|
}
|
|
133
|
-
}
|
|
134
|
-
)
|
|
129
|
+
}
|
|
@@ -10,7 +10,7 @@ class JavascriptTsconfigJsonFile(JsonFile):
|
|
|
10
10
|
content = content or self.read_parsed()
|
|
11
11
|
|
|
12
12
|
compiler_options = content.get("compilerOptions")
|
|
13
|
-
if
|
|
13
|
+
if not isinstance(compiler_options, dict):
|
|
14
14
|
compiler_options = {}
|
|
15
15
|
content["compilerOptions"] = compiler_options
|
|
16
16
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
from __future__ import annotations
|
|
2
2
|
|
|
3
|
+
import re
|
|
3
4
|
from typing import TYPE_CHECKING
|
|
4
5
|
|
|
5
6
|
from wexample_cli.const.tags import AudienceTag, EffectTag, ScopeTag
|
|
@@ -12,6 +13,8 @@ if TYPE_CHECKING:
|
|
|
12
13
|
from wexample_cli.context.execution_context import ExecutionContext
|
|
13
14
|
from wexample_wex_addon_app.service.app_service import AppService
|
|
14
15
|
|
|
16
|
+
_DEFINE_CONFIG_RE = re.compile(r"(defineConfig\(\s*\{)")
|
|
17
|
+
|
|
15
18
|
|
|
16
19
|
@command(
|
|
17
20
|
type=COMMAND_TYPE_SERVICE,
|
|
@@ -30,8 +33,6 @@ def vite__service__install(
|
|
|
30
33
|
context: ExecutionContext,
|
|
31
34
|
service: AppService,
|
|
32
35
|
) -> None:
|
|
33
|
-
import re
|
|
34
|
-
|
|
35
36
|
app_path = service.app_workdir.get_path()
|
|
36
37
|
|
|
37
38
|
for config_name in ["vite.config.ts", "vite.config.js"]:
|
|
@@ -52,9 +53,8 @@ def vite__service__install(
|
|
|
52
53
|
"defineConfig()",
|
|
53
54
|
"defineConfig({ vite: { server: { allowedHosts: true } } })",
|
|
54
55
|
)
|
|
55
|
-
elif
|
|
56
|
-
content =
|
|
57
|
-
r"(defineConfig\(\s*\{)",
|
|
56
|
+
elif _DEFINE_CONFIG_RE.search(content):
|
|
57
|
+
content = _DEFINE_CONFIG_RE.sub(
|
|
58
58
|
r"\1 vite: { server: { allowedHosts: true } },",
|
|
59
59
|
content,
|
|
60
60
|
count=1,
|
|
@@ -41,7 +41,10 @@ def vite__service__ready(
|
|
|
41
41
|
runtime = service.app_workdir.get_runtime_config()
|
|
42
42
|
app_project_name = runtime.search("app.project_name").get_str()
|
|
43
43
|
container_name = f"{app_project_name}_vite"
|
|
44
|
-
|
|
44
|
+
try:
|
|
45
|
+
port = service.manifest["vars"]["VITE_PORT"]["default"]
|
|
46
|
+
except (KeyError, TypeError):
|
|
47
|
+
port = "8080"
|
|
45
48
|
|
|
46
49
|
result = subprocess.run(
|
|
47
50
|
[
|
|
@@ -45,35 +45,33 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
|
|
|
45
45
|
raw_value = super().prepare_value(raw_value=raw_value)
|
|
46
46
|
children = raw_value["children"]
|
|
47
47
|
|
|
48
|
-
children.
|
|
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
|
-
]
|
|
48
|
+
children.append(
|
|
49
|
+
{
|
|
50
|
+
"name": ".github",
|
|
51
|
+
"type": DiskItemType.DIRECTORY,
|
|
52
|
+
"should_exist": True,
|
|
53
|
+
"children": [
|
|
54
|
+
{
|
|
55
|
+
"name": "workflows",
|
|
56
|
+
"type": DiskItemType.DIRECTORY,
|
|
57
|
+
"should_exist": True,
|
|
58
|
+
"children": [
|
|
59
|
+
{
|
|
60
|
+
"name": "publish.yml",
|
|
61
|
+
"type": DiskItemType.FILE,
|
|
62
|
+
"should_exist": True,
|
|
63
|
+
"content": file_read(
|
|
64
|
+
module_get_path(
|
|
65
|
+
wexample_wex_addon_dev_javascript
|
|
66
|
+
)
|
|
67
|
+
/ "resources"
|
|
68
|
+
/ "package_publish.yml"
|
|
69
|
+
),
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
}
|
|
73
|
+
],
|
|
74
|
+
}
|
|
77
75
|
)
|
|
78
76
|
|
|
79
77
|
return raw_value
|
|
@@ -107,12 +105,7 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
|
|
|
107
105
|
check=False,
|
|
108
106
|
capture=True,
|
|
109
107
|
)
|
|
110
|
-
|
|
111
|
-
f
|
|
112
|
-
for f in changed_files.stdout.splitlines()
|
|
113
|
-
if f.endswith(".ts") or f.endswith(".tsx")
|
|
114
|
-
]
|
|
115
|
-
if not ts_files:
|
|
108
|
+
if not any(f.endswith((".ts", ".tsx")) for f in changed_files.stdout.splitlines()):
|
|
116
109
|
self.log("Only non-TypeScript files changed in src/, treating as minor.")
|
|
117
110
|
return UPGRADE_TYPE_INTERMEDIATE
|
|
118
111
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|