@webpieces/dev-config 0.2.36 → 0.2.37

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 (2) hide show
  1. package/package.json +1 -1
  2. package/plugin.js +25 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webpieces/dev-config",
3
- "version": "0.2.36",
3
+ "version": "0.2.37",
4
4
  "description": "Development configuration, scripts, and patterns for WebPieces projects",
5
5
  "type": "commonjs",
6
6
  "bin": {
package/plugin.js CHANGED
@@ -157,6 +157,20 @@ function createWorkspaceTargetsWithoutPrefix(opts) {
157
157
  if (opts.workspace.validations.noSkipLevelDeps) {
158
158
  targets['validate-no-skiplevel-deps'] = createValidateNoSkipLevelTarget();
159
159
  }
160
+ // Add validate-complete target that runs all validations
161
+ const validationTargets = [];
162
+ if (opts.workspace.validations.noCycles) {
163
+ validationTargets.push('validate-no-cycles');
164
+ }
165
+ if (opts.workspace.validations.architectureUnchanged) {
166
+ validationTargets.push('validate-architecture-unchanged');
167
+ }
168
+ if (opts.workspace.validations.noSkipLevelDeps) {
169
+ validationTargets.push('validate-no-skiplevel-deps');
170
+ }
171
+ if (validationTargets.length > 0) {
172
+ targets['validate-complete'] = createValidateCompleteTarget(validationTargets);
173
+ }
160
174
  return targets;
161
175
  }
162
176
  /**
@@ -255,6 +269,17 @@ function createValidateNoSkipLevelTarget() {
255
269
  },
256
270
  };
257
271
  }
272
+ function createValidateCompleteTarget(validationTargets) {
273
+ return {
274
+ executor: 'nx:noop',
275
+ cache: true,
276
+ dependsOn: validationTargets,
277
+ metadata: {
278
+ technologies: ['nx'],
279
+ description: 'Run all architecture validations (cycles, unchanged, skip-level deps)',
280
+ },
281
+ };
282
+ }
258
283
  function createHelpTarget() {
259
284
  return {
260
285
  executor: '@webpieces/dev-config:help',