@wyxos/zephyr 0.5.0 → 0.7.4
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.
- package/README.md +33 -4
- package/package.json +1 -1
- package/src/application/configuration/preset-selection.mjs +0 -6
- package/src/application/configuration/select-deployment-target.mjs +108 -71
- package/src/application/deploy/build-remote-deployment-plan.mjs +13 -1
- package/src/application/deploy/plan-laravel-deployment-tasks.mjs +23 -2
- package/src/application/deploy/prepare-local-deployment.mjs +38 -4
- package/src/application/deploy/run-deployment.mjs +7 -1
- package/src/application/deploy/run-local-deployment-checks.mjs +70 -11
- package/src/application/release/release-node-package.mjs +68 -12
- package/src/application/release/release-packagist-package.mjs +56 -12
- package/src/cli/options.mjs +36 -9
- package/src/config/preset-options.mjs +89 -0
- package/src/config/project.mjs +45 -10
- package/src/deploy/local-repo.mjs +28 -27
- package/src/deploy/preflight.mjs +57 -3
- package/src/main.mjs +64 -6
- package/src/release/commit-message.mjs +8 -173
- package/src/release/shared.mjs +9 -21
- package/src/release-node.mjs +8 -1
- package/src/release-packagist.mjs +10 -3
- package/src/runtime/app-context.mjs +13 -1
|
@@ -8,7 +8,8 @@ function hasExplicitReleaseOptions(options = {}) {
|
|
|
8
8
|
'releaseType',
|
|
9
9
|
'skipGitHooks',
|
|
10
10
|
'skipTests',
|
|
11
|
-
'skipLint'
|
|
11
|
+
'skipLint',
|
|
12
|
+
'skipVersioning'
|
|
12
13
|
].some((key) => key in options)
|
|
13
14
|
}
|
|
14
15
|
|
|
@@ -18,11 +19,16 @@ export async function releasePackagist(options = {}) {
|
|
|
18
19
|
releaseType: 'releaseType' in options ? (options.releaseType ?? null) : null,
|
|
19
20
|
skipGitHooks: options.skipGitHooks === true,
|
|
20
21
|
skipTests: options.skipTests === true,
|
|
21
|
-
skipLint: options.skipLint === true
|
|
22
|
+
skipLint: options.skipLint === true,
|
|
23
|
+
skipVersioning: options.skipVersioning === true
|
|
22
24
|
}
|
|
23
25
|
: parseReleaseArgs({
|
|
24
|
-
booleanFlags: ['--skip-git-hooks', '--skip-tests', '--skip-lint']
|
|
26
|
+
booleanFlags: ['--skip-git-hooks', '--skip-tests', '--skip-lint', '--skip-versioning']
|
|
25
27
|
})
|
|
28
|
+
|
|
29
|
+
if (parsed.skipVersioning && parsed.releaseType) {
|
|
30
|
+
throw new Error('--skip-versioning cannot be used together with an explicit version or bump argument.')
|
|
31
|
+
}
|
|
26
32
|
const rootDir = options.rootDir ?? process.cwd()
|
|
27
33
|
const context = options.context ?? createAppContext({
|
|
28
34
|
executionMode: {
|
|
@@ -38,6 +44,7 @@ export async function releasePackagist(options = {}) {
|
|
|
38
44
|
skipGitHooks: parsed.skipGitHooks === true || executionMode?.skipGitHooks === true,
|
|
39
45
|
skipTests: parsed.skipTests === true,
|
|
40
46
|
skipLint: parsed.skipLint === true,
|
|
47
|
+
skipVersioning: parsed.skipVersioning === true,
|
|
41
48
|
rootDir,
|
|
42
49
|
logStep,
|
|
43
50
|
logSuccess,
|
|
@@ -24,9 +24,21 @@ export function createAppContext({
|
|
|
24
24
|
workflow: executionMode.workflow ?? 'deploy',
|
|
25
25
|
presetName: executionMode.presetName ?? null,
|
|
26
26
|
maintenanceMode: executionMode.maintenanceMode ?? null,
|
|
27
|
+
autoCommit: executionMode.autoCommit === true,
|
|
28
|
+
skipVersioning: executionMode.skipVersioning === true,
|
|
27
29
|
skipGitHooks: executionMode.skipGitHooks === true,
|
|
30
|
+
skipChecks: executionMode.skipChecks === true,
|
|
31
|
+
skipTests: executionMode.skipTests === true || executionMode.skipChecks === true,
|
|
32
|
+
skipLint: executionMode.skipLint === true || executionMode.skipChecks === true,
|
|
28
33
|
resumePending: executionMode.resumePending === true,
|
|
29
|
-
discardPending: executionMode.discardPending === true
|
|
34
|
+
discardPending: executionMode.discardPending === true,
|
|
35
|
+
explicitMaintenanceMode: executionMode.explicitMaintenanceMode === true,
|
|
36
|
+
explicitAutoCommit: executionMode.explicitAutoCommit === true,
|
|
37
|
+
explicitSkipVersioning: executionMode.explicitSkipVersioning === true,
|
|
38
|
+
explicitSkipGitHooks: executionMode.explicitSkipGitHooks === true,
|
|
39
|
+
explicitSkipChecks: executionMode.explicitSkipChecks === true,
|
|
40
|
+
explicitSkipTests: executionMode.explicitSkipTests === true || executionMode.explicitSkipChecks === true,
|
|
41
|
+
explicitSkipLint: executionMode.explicitSkipLint === true || executionMode.explicitSkipChecks === true
|
|
30
42
|
}
|
|
31
43
|
const emitEvent = normalizedExecutionMode.json
|
|
32
44
|
? createJsonEventEmitter({workflow: normalizedExecutionMode.workflow})
|