wexample-wex-addon-dev-javascript 8.10.0__tar.gz → 8.11.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.
Files changed (53) hide show
  1. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/PKG-INFO +3 -3
  2. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/README.md +1 -1
  3. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/pyproject.toml +2 -2
  4. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/workdir/javascript_package_workdir.py +33 -1
  5. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/__init__.py +0 -0
  6. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/common/__init__.py +0 -0
  7. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/common/npm_registry_gateway.py +0 -0
  8. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/config_value/__init__.py +0 -0
  9. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/config_value/javascript_package_readme_config_value.py +0 -0
  10. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/const/__init__.py +0 -0
  11. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/const/registry.py +0 -0
  12. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/const/tags.py +0 -0
  13. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/file/__init__.py +0 -0
  14. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/file/javascript_package_json_file.py +0 -0
  15. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/file/javascript_package_lock_json_file.py +0 -0
  16. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/file/javascript_tsconfig_json_file.py +0 -0
  17. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/file/node_package_json_file.py +0 -0
  18. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/formatter/__init__.py +0 -0
  19. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/formatter/javascript_code_formatter.py +0 -0
  20. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/javascript_addon_manager.py +0 -0
  21. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/py.typed +0 -0
  22. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/resources/.wex.yml +0 -0
  23. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/resources/design_rules/javascript_code.md +0 -0
  24. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/resources/package_gitlab_ci.yml +0 -0
  25. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/resources/package_publish.yml +0 -0
  26. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/resources/writing_rules/javascript_code.md +0 -0
  27. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/__init__.py +0 -0
  28. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/node/__init__.py +0 -0
  29. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/node/commands/__init__.py +0 -0
  30. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/node/commands/service/__init__.py +0 -0
  31. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/node/commands/service/install_local.py +0 -0
  32. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/node/commands/service/refresh_lock.py +0 -0
  33. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/node/docker/.wex.yml +0 -0
  34. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/node/docker/docker-compose.yml +0 -0
  35. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/node/service.yml +0 -0
  36. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/__init__.py +0 -0
  37. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/ai/__init__.py +0 -0
  38. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/ai/agents/__init__.py +0 -0
  39. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/ai/agents/main/__init__.py +0 -0
  40. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/ai/agents/main/about-service.md +0 -0
  41. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/ai/agents/main/agent.yml +0 -0
  42. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/app_service.py +0 -0
  43. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/commands/__init__.py +0 -0
  44. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/commands/service/__init__.py +0 -0
  45. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/commands/service/install.py +0 -0
  46. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/commands/service/ready.py +0 -0
  47. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/docker/.wex.yml +0 -0
  48. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/docker/docker-compose.yml +0 -0
  49. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/services/vite/service.yml +0 -0
  50. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/workdir/__init__.py +0 -0
  51. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/workdir/javascript_packages_suite_workdir.py +0 -0
  52. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/src/wexample_wex_addon_dev_javascript/workdir/javascript_workdir.py +0 -0
  53. {wexample_wex_addon_dev_javascript-8.10.0 → wexample_wex_addon_dev_javascript-8.11.0}/tests/.gitkeep +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wexample-wex-addon-dev-javascript
3
- Version: 8.10.0
3
+ Version: 8.11.0
4
4
  Summary: Extends wex with JavaScript support: enforces JS/TS project layout and symlinks local npm packages into node_modules
5
5
  Author-Email: weeger <contact@wexample.com>
6
6
  License: MIT
@@ -14,7 +14,7 @@ Requires-Dist: cattrs>=23.1.0
14
14
  Requires-Dist: wexample-api>=6.8.0
15
15
  Requires-Dist: wexample-filestate-javascript>=6.6.0
16
16
  Requires-Dist: wexample-wex-addon-ai>=19.1.0
17
- Requires-Dist: wexample-wex-addon-app>=34.10.0
17
+ Requires-Dist: wexample-wex-addon-app>=34.11.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: 8.10.0
25
+ Version: 8.11.0
26
26
 
27
27
  Extends wex with JavaScript support: enforces JS/TS project layout and symlinks local npm packages into node_modules
28
28
 
@@ -1,6 +1,6 @@
1
1
  # wex_addon_dev_javascript
2
2
 
3
- Version: 8.10.0
3
+ Version: 8.11.0
4
4
 
5
5
  Extends wex with JavaScript support: enforces JS/TS project layout and symlinks local npm packages into node_modules
6
6
 
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "wexample-wex-addon-dev-javascript"
9
- version = "8.10.0"
9
+ version = "8.11.0"
10
10
  description = "Extends wex with JavaScript support: enforces JS/TS project layout and symlinks local npm packages into node_modules"
11
11
  authors = [
12
12
  { name = "weeger", email = "contact@wexample.com" },
@@ -23,7 +23,7 @@ dependencies = [
23
23
  "wexample-api>=6.8.0",
24
24
  "wexample-filestate-javascript>=6.6.0",
25
25
  "wexample-wex-addon-ai>=19.1.0",
26
- "wexample-wex-addon-app>=34.10.0",
26
+ "wexample-wex-addon-app>=34.11.0",
27
27
  ]
28
28
 
29
29
  [project.readme]
@@ -488,9 +488,41 @@ class JavascriptPackageWorkdir(JavascriptWorkdir):
488
488
  f"available on this machine. A stale lockfile would break "
489
489
  f"the strict CI install."
490
490
  )
491
- self._shell_run_node_command(command)
491
+ self._shell_run_node_command(command, extra_env=self._suite_registry_environment())
492
492
  return
493
493
 
494
+ def _suite_registry_environment(self) -> dict[str, str]:
495
+ """npm sent to the suite's GitLab registry for every scope of a sibling
496
+ this package depends on, with the suite's token: a sibling published a
497
+ minute ago is there, not yet on npmjs, and a private group answers
498
+ nobody else."""
499
+ from urllib.parse import urlparse
500
+
501
+ group_url = self.get_gitlab_registry_url()
502
+ if not group_url:
503
+ return {}
504
+ suite = self.get_suite_workdir()
505
+ siblings = (
506
+ {package.get_package_name() for package in suite.get_packages()} if suite else set()
507
+ )
508
+ dependencies = {
509
+ **self.get_app_config_file().get_dependencies_versions(),
510
+ **self.get_app_config_file().get_dev_dependencies_versions(),
511
+ }
512
+ scopes = {
513
+ name.split("/", 1)[0]
514
+ for name in dependencies
515
+ if name.startswith("@") and name in siblings
516
+ }
517
+ if not scopes:
518
+ return {}
519
+ environment = {f"npm_config_{scope}:registry": group_url for scope in scopes}
520
+ token = self.get_env_parameter_or_suite_fallback("GITLAB_API_TOKEN")
521
+ if token:
522
+ parsed = urlparse(group_url)
523
+ environment[f"npm_config_//{parsed.netloc}{parsed.path}:_authToken"] = token
524
+ return environment
525
+
494
526
  def _wait_for_registry(self) -> None:
495
527
  """Poll the configured npm registry until the current version is available (max 20 min).
496
528