shipit-cli 0.21.3__tar.gz → 0.21.4__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.
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/PKG-INFO +1 -1
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/pyproject.toml +1 -1
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/node.py +3 -1
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/version.py +1 -1
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_node_provider.py +6 -6
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/.gitignore +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/README.md +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/__init__.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/assets/node/optimize-node-modules.sh +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/assets/php/php.ini +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/assets/wordpress/.htaccess +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/assets/wordpress/install.sh +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/assets/wordpress/start.php +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/assets/wordpress/wp-config.php +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/builders/__init__.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/builders/base.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/builders/docker.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/builders/local.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/cli.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/generator.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/procfile.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/base.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/go.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/hugo.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/install_context.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/jekyll.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/laravel.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/mkdocs.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/node_static.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/php.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/python.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/registry.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/staticfile.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/providers/wordpress.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/runners/__init__.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/runners/base.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/runners/local.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/runners/wasmer.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/shipit_types.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/ui.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/utils.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/src/shipit/volumes.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_cli_after_deploy.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_e2e.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_generate_shipit_examples.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_install_context.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_node_static_provider.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_php_provider.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_staticfile_provider.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_subdir.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_version.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_volumes.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_wasmer_annotations.py +0 -0
- {shipit_cli-0.21.3 → shipit_cli-0.21.4}/tests/test_wordpress_phpix.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: shipit-cli
|
|
3
|
-
Version: 0.21.
|
|
3
|
+
Version: 0.21.4
|
|
4
4
|
Summary: Shipit CLI is the best way to build, serve and deploy your projects anywhere.
|
|
5
5
|
Project-URL: homepage, https://wasmer.io
|
|
6
6
|
Project-URL: repository, https://github.com/wasmerio/shipit
|
|
@@ -27,6 +27,7 @@ from .install_context import (
|
|
|
27
27
|
|
|
28
28
|
NODE_MODULES_OPTIMIZER_ASSET = "node/optimize-node-modules.sh"
|
|
29
29
|
OPTIMIZE_DEPS_VERSION = "0.1.1"
|
|
30
|
+
NEXT_BUNDLE_VERSION = "1.0.0"
|
|
30
31
|
|
|
31
32
|
class PackageManager(Enum):
|
|
32
33
|
NPM = "npm"
|
|
@@ -395,7 +396,8 @@ class NodeFramework(Enum):
|
|
|
395
396
|
if self == NodeFramework.NEXT:
|
|
396
397
|
quoted_command = shlex.quote(build_command)
|
|
397
398
|
return package_manager.dlx_command(
|
|
398
|
-
f"next-bundle@
|
|
399
|
+
f"next-bundle@{NEXT_BUNDLE_VERSION} "
|
|
400
|
+
f"--build-command {quoted_command}"
|
|
399
401
|
)
|
|
400
402
|
return build_command
|
|
401
403
|
|
|
@@ -218,7 +218,7 @@ def test_node_provider_detects_nextjs_runtime_app(tmp_path: Path) -> None:
|
|
|
218
218
|
assert load_provider(tmp_path, Config()) is NodeProvider
|
|
219
219
|
assert provider_config.framework == NodeFramework.NEXT
|
|
220
220
|
assert provider_config.build_command == (
|
|
221
|
-
"npx -y next-bundle@0.
|
|
221
|
+
"npx -y next-bundle@1.0.0 --build-command 'npm run build'"
|
|
222
222
|
)
|
|
223
223
|
assert provider_config.commands.start == "node server.mjs"
|
|
224
224
|
|
|
@@ -228,19 +228,19 @@ def test_node_provider_detects_nextjs_runtime_app(tmp_path: Path) -> None:
|
|
|
228
228
|
[
|
|
229
229
|
(
|
|
230
230
|
"package-lock.json",
|
|
231
|
-
"npx -y next-bundle@0.
|
|
231
|
+
"npx -y next-bundle@1.0.0 --build-command 'npm run build'",
|
|
232
232
|
),
|
|
233
233
|
(
|
|
234
234
|
"pnpm-lock.yaml",
|
|
235
|
-
"pnpm dlx next-bundle@0.
|
|
235
|
+
"pnpm dlx next-bundle@1.0.0 --build-command 'pnpm run build'",
|
|
236
236
|
),
|
|
237
237
|
(
|
|
238
238
|
"yarn.lock",
|
|
239
|
-
"yarn dlx next-bundle@0.
|
|
239
|
+
"yarn dlx next-bundle@1.0.0 --build-command 'yarn run build'",
|
|
240
240
|
),
|
|
241
241
|
(
|
|
242
242
|
"bun.lockb",
|
|
243
|
-
"bunx next-bundle@0.
|
|
243
|
+
"bunx next-bundle@1.0.0 --build-command 'bun run build'",
|
|
244
244
|
),
|
|
245
245
|
],
|
|
246
246
|
)
|
|
@@ -282,7 +282,7 @@ def test_nextjs_build_command_wraps_explicit_build_command(
|
|
|
282
282
|
provider_config = NodeProvider.load_config(tmp_path, base_config)
|
|
283
283
|
|
|
284
284
|
assert provider_config.build_command == (
|
|
285
|
-
"npx -y next-bundle@0.
|
|
285
|
+
"npx -y next-bundle@1.0.0 --build-command 'next build --debug'"
|
|
286
286
|
)
|
|
287
287
|
assert provider_config.commands.build == provider_config.build_command
|
|
288
288
|
|
|
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
|
|
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
|