wexample-wex-addon-dev-javascript 0.0.40__tar.gz → 0.0.42__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wexample-wex-addon-dev-javascript
3
- Version: 0.0.40
3
+ Version: 0.0.42
4
4
  Summary: Python dev addon for wex
5
5
  Author-Email: weeger <contact@wexample.com>
6
6
  License: MIT
@@ -10,7 +10,7 @@ Classifier: Operating System :: OS Independent
10
10
  Project-URL: homepage, https://github.com/wexample/python-wex-dev-python
11
11
  Requires-Python: >=3.10
12
12
  Requires-Dist: pydantic<3,>=2
13
- Requires-Dist: wexample-wex-core==6.0.43
13
+ Requires-Dist: wexample-wex-core==6.0.45
14
14
  Provides-Extra: dev
15
15
  Requires-Dist: pytest; extra == "dev"
16
16
  Description-Content-Type: text/markdown
@@ -19,7 +19,7 @@ Description-Content-Type: text/markdown
19
19
 
20
20
  Python dev addon for wex
21
21
 
22
- Version: 0.0.39
22
+ Version: 0.0.42
23
23
 
24
24
  ## Requirements
25
25
 
@@ -28,7 +28,7 @@ Version: 0.0.39
28
28
  ## Dependencies
29
29
 
30
30
  - pydantic>=2,<3
31
- - wexample-wex-core==6.0.41
31
+ - wexample-wex-core==6.0.45
32
32
 
33
33
  ## Installation
34
34
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  Python dev addon for wex
4
4
 
5
- Version: 0.0.39
5
+ Version: 0.0.42
6
6
 
7
7
  ## Requirements
8
8
 
@@ -11,7 +11,7 @@ Version: 0.0.39
11
11
  ## Dependencies
12
12
 
13
13
  - pydantic>=2,<3
14
- - wexample-wex-core==6.0.41
14
+ - wexample-wex-core==6.0.45
15
15
 
16
16
  ## Installation
17
17
 
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "wexample-wex-addon-dev-javascript"
9
- version = "0.0.40"
9
+ version = "0.0.42"
10
10
  description = "Python dev addon for wex"
11
11
  authors = [
12
12
  { name = "weeger", email = "contact@wexample.com" },
@@ -19,7 +19,7 @@ classifiers = [
19
19
  ]
20
20
  dependencies = [
21
21
  "pydantic>=2,<3",
22
- "wexample-wex-core==6.0.43",
22
+ "wexample-wex-core==6.0.45",
23
23
  ]
24
24
 
25
25
  [project.readme]
@@ -42,7 +42,7 @@ distribution = true
42
42
 
43
43
  [tool.pdm.build]
44
44
  includes = [
45
- "src/wexample_wex_addon_dev_javascript/py.typed",
45
+ "src/wexample_wex_addon_dev_javascript/*",
46
46
  ]
47
47
  package-dir = "src"
48
48
  packages = [
@@ -0,0 +1,7 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_wex_core.common.abstract_addon_manager import AbstractAddonManager
4
+
5
+
6
+ class JavascriptAddonManager(AbstractAddonManager):
7
+ pass
@@ -0,0 +1,14 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_config.const.types import DictConfig
4
+ from wexample_wex_addon_dev_javascript.workdir.javascript_workdir import (
5
+ JavascriptWorkdir,
6
+ )
7
+
8
+
9
+ class JavascriptPackageWorkdir(JavascriptWorkdir):
10
+ def prepare_value(self, raw_value: DictConfig | None = None) -> DictConfig:
11
+
12
+ raw_value = super().prepare_value(raw_value=raw_value)
13
+
14
+ return raw_value
@@ -0,0 +1,27 @@
1
+ from __future__ import annotations
2
+
3
+ from typing import TYPE_CHECKING
4
+
5
+ from wexample_wex_core.workdir.framework_packages_suite_workdir import (
6
+ FrameworkPackageSuiteWorkdir,
7
+ )
8
+
9
+ if TYPE_CHECKING:
10
+ from pathlib import Path
11
+
12
+ from wexample_wex_core.workdir.code_base_workdir import CodeBaseWorkdir
13
+
14
+
15
+ class JavascriptPackagesSuiteWorkdir(FrameworkPackageSuiteWorkdir):
16
+ def _get_children_package_workdir_class(self) -> type[CodeBaseWorkdir]:
17
+ from wexample_wex_addon_dev_javascript.workdir.javascript_package_workdir import (
18
+ JavascriptPackageWorkdir,
19
+ )
20
+
21
+ return JavascriptPackageWorkdir
22
+
23
+ def _get_children_package_directory_name(self) -> str:
24
+ return "npm"
25
+
26
+ def _child_is_package_directory(self, entry: Path) -> bool:
27
+ return entry.is_dir() and (entry / "package.json").is_file()
@@ -0,0 +1,9 @@
1
+ from __future__ import annotations
2
+
3
+ from wexample_wex_core.workdir.code_base_workdir import CodeBaseWorkdir
4
+
5
+
6
+ class JavascriptWorkdir(CodeBaseWorkdir):
7
+ def get_dependencies(self) -> list[str]:
8
+ # TODO search in package.json
9
+ return []