Skip to content

Commit

Permalink
schematics: remove skipTest option (#2596)
Browse files Browse the repository at this point in the history
Closes #2561 

BREAKING CHANGE:

The skipTest option has been renamed to skipTests

BEFORE:

ng generate container UsersPage --skipTest

AFTER:

ng generate container UsersPage --skipTests
  • Loading branch information
timdeschryver authored Jun 30, 2020
1 parent 2706531 commit 60cd5cc
Show file tree
Hide file tree
Showing 29 changed files with 0 additions and 143 deletions.
4 changes: 0 additions & 4 deletions modules/effects/schematics/ng-add/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,6 @@ export default function (options: EffectOptions): Rule {
options.module = findModuleFromOptions(host, options);
}

if (!options.skipTests && options.skipTest) {
options.skipTests = options.skipTest;
}

const parsedPath = parseName(options.path, options.name || '');
options.name = parsedPath.name;
options.path = parsedPath.path;
Expand Down
6 changes: 0 additions & 6 deletions modules/effects/schematics/ng-add/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,6 @@
"default": true,
"description": "Flag to indicate if a dir is created."
},
"skipTest": {
"type": "boolean",
"description": "When true, does not create test files.",
"x-deprecated": "Use skipTests instead.",
"default": false
},
"skipTests": {
"type": "boolean",
"default": false,
Expand Down
2 changes: 0 additions & 2 deletions modules/effects/schematics/ng-add/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ export interface Schema {
skipPackageJson?: boolean;
path?: string;
flat?: boolean;
/** @deprecated renamed to skipTests, use skipTests instead */
skipTest?: boolean;
skipTests?: boolean;
project?: string;
module?: string;
Expand Down
4 changes: 0 additions & 4 deletions modules/schematics/src/action/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ export default function (options: ActionOptions): Rule {
return (host: Tree, context: SchematicContext) => {
options.path = getProjectPath(host, options);

if (!options.skipTests && options.skipTest) {
options.skipTests = options.skipTest;
}

const parsedPath = parseName(options.path, options.name);
options.name = parsedPath.name;
options.path = parsedPath.path;
Expand Down
6 changes: 0 additions & 6 deletions modules/schematics/src/action/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
"description": "The name of the project.",
"aliases": ["p"]
},
"skipTest": {
"type": "boolean",
"description": "When true, does not create test files.",
"x-deprecated": "Use skipTests instead.",
"default": false
},
"skipTests": {
"type": "boolean",
"description": "When true, does not create test files.",
Expand Down
5 changes: 0 additions & 5 deletions modules/schematics/src/action/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ export interface Schema {
*/
project?: string;

/**
* When true, does not create test files.
* @deprecated Use skipTests instead
*/
skipTest?: boolean;
/**
* When true, does not create test files.
*/
Expand Down
4 changes: 0 additions & 4 deletions modules/schematics/src/container/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,6 @@ export default function (options: ContainerOptions): Rule {
return (host: Tree, context: SchematicContext) => {
options.path = getProjectPath(host, options);

if (!options.skipTests && options.skipTest) {
options.skipTests = options.skipTest;
}

const parsedPath = parseName(options.path, options.name);
options.name = parsedPath.name;
options.path = parsedPath.path;
Expand Down
6 changes: 0 additions & 6 deletions modules/schematics/src/container/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,12 +56,6 @@
"description": "The file extension or preprocessor to use for style files.",
"type": "string"
},
"skipTest": {
"type": "boolean",
"description": "When true, does not create test files.",
"x-deprecated": "Use skipTests instead.",
"default": false
},
"skipTests": {
"type": "boolean",
"description": "When true, does not create test files."
Expand Down
5 changes: 0 additions & 5 deletions modules/schematics/src/container/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,6 @@ export interface Schema {
* The file extension or preprocessor to use for style files.
*/
style?: string;
/**
* When true, does not create test files.
* @deprecated Use skipTests instead
*/
skipTest?: boolean;
/**
* When true, does not create test files.
*/
Expand Down
4 changes: 0 additions & 4 deletions modules/schematics/src/data/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ export default function (options: DataOptions): Rule {
return (host: Tree, context: SchematicContext) => {
options.path = getProjectPath(host, options);

if (!options.skipTests && options.skipTest) {
options.skipTests = options.skipTest;
}

const parsedPath = parseName(options.path, options.name);
options.name = parsedPath.name;
options.path = parsedPath.path;
Expand Down
6 changes: 0 additions & 6 deletions modules/schematics/src/data/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@
"description": "The name of the project.",
"aliases": ["p"]
},
"skipTest": {
"type": "boolean",
"description": "When true, does not create test files.",
"x-deprecated": "Use skipTests instead.",
"default": false
},
"skipTests": {
"type": "boolean",
"description": "When true, does not create test files.",
Expand Down
5 changes: 0 additions & 5 deletions modules/schematics/src/data/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ export interface Schema {
*/
project?: string;

/**
* When true, does not create test files.
* @deprecated use skipTests instead
*/
skipTest?: boolean;
/**
* When true, does not create test files.
*/
Expand Down
4 changes: 0 additions & 4 deletions modules/schematics/src/effect/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,6 @@ export default function (options: EffectOptions): Rule {
return (host: Tree, context: SchematicContext) => {
options.path = getProjectPath(host, options);

if (!options.skipTests && options.skipTest) {
options.skipTests = options.skipTest;
}

if (options.module) {
options.module = findModuleFromOptions(host, options);
}
Expand Down
6 changes: 0 additions & 6 deletions modules/schematics/src/effect/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@
"default": true,
"description": "Flag to indicate if a dir is created."
},
"skipTest": {
"type": "boolean",
"description": "When true, does not create test files.",
"x-deprecated": "Use skipTests instead.",
"default": false
},
"skipTests": {
"type": "boolean",
"default": false,
Expand Down
5 changes: 0 additions & 5 deletions modules/schematics/src/effect/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ export interface Schema {
*/
flat?: boolean;

/**
* When true, does not create test files.
* @deprecated Use skipTests instead
*/
skipTest?: boolean;
/**
* When true, does not create test files.
*/
Expand Down
4 changes: 0 additions & 4 deletions modules/schematics/src/entity/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,6 @@ export default function (options: EntityOptions): Rule {
options.name = parsedPath.name;
options.path = parsedPath.path;

if (!options.skipTests && options.skipTest) {
options.skipTests = options.skipTest;
}

if (options.module) {
options.module = findModuleFromOptions(host, options);
}
Expand Down
6 changes: 0 additions & 6 deletions modules/schematics/src/entity/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
"description": "The name of the project.",
"aliases": ["p"]
},
"skipTest": {
"type": "boolean",
"description": "When true, does not create test files.",
"x-deprecated": "Use skipTests instead.",
"default": false
},
"skipTests": {
"type": "boolean",
"description": "When true, does not create test files.",
Expand Down
5 changes: 0 additions & 5 deletions modules/schematics/src/entity/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ export interface Schema {
* Flag to indicate if a dir is created.
*/
flat?: boolean;
/**
* When true, does not create test files.
* @deprecated Use skipTests instead
*/
skipTest?: boolean;
/**
* When true, does not create test files.
*/
Expand Down
4 changes: 0 additions & 4 deletions modules/schematics/src/feature/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ import {
import { Schema as FeatureOptions } from './schema';

export default function (options: FeatureOptions): Rule {
if (!options.skipTests && options.skipTest) {
options.skipTests = options.skipTest;
}

return (host: Tree, context: SchematicContext) => {
return chain([
schematic('action', {
Expand Down
6 changes: 0 additions & 6 deletions modules/schematics/src/feature/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,6 @@
"description": "Specifies the declaring module.",
"aliases": ["m"]
},
"skipTest": {
"type": "boolean",
"description": "When true, does not create test files.",
"x-deprecated": "Use skipTests instead.",
"default": false
},
"skipTests": {
"type": "boolean",
"default": false,
Expand Down
5 changes: 0 additions & 5 deletions modules/schematics/src/feature/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ export interface Schema {
*/
flat?: boolean;

/**
* When true, does not create test files.
* @deprecated Use skipTests instead
*/
skipTest?: boolean;
/**
* When true, does not create test files.
*/
Expand Down
4 changes: 0 additions & 4 deletions modules/schematics/src/reducer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ export default function (options: ReducerOptions): Rule {
options.module = findModuleFromOptions(host, options);
}

if (!options.skipTests && options.skipTest) {
options.skipTests = options.skipTest;
}

const parsedPath = parseName(options.path, options.name);
options.name = parsedPath.name;
options.path = parsedPath.path;
Expand Down
6 changes: 0 additions & 6 deletions modules/schematics/src/reducer/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@
"description": "The name of the project.",
"aliases": ["p"]
},
"skipTest": {
"type": "boolean",
"description": "When true, does not create test files.",
"x-deprecated": "Use skipTests instead.",
"default": false
},
"skipTests": {
"type": "boolean",
"description": "When true, does not create test files.",
Expand Down
5 changes: 0 additions & 5 deletions modules/schematics/src/reducer/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ export interface Schema {
*/
flat?: boolean;

/**
* When true, does not create test files.
* @deprecated Use skipTests instead
*/
skipTest?: boolean;
/**
* When true, does not create test files.
*/
Expand Down
4 changes: 0 additions & 4 deletions modules/schematics/src/selector/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ export default function (options: SelectorOptions): Rule {
return (host: Tree, context: SchematicContext) => {
options.path = getProjectPath(host, options);

if (!options.skipTests && options.skipTest) {
options.skipTests = options.skipTest;
}

const parsedPath = parseName(options.path, options.name || '');
options.name = parsedPath.name;
options.path = parsedPath.path;
Expand Down
6 changes: 0 additions & 6 deletions modules/schematics/src/selector/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@
"description": "The name of the project.",
"aliases": ["p"]
},
"skipTest": {
"type": "boolean",
"description": "When true, does not create test files.",
"x-deprecated": "Use skipTests instead.",
"default": false
},
"skipTests": {
"type": "boolean",
"description": "When true, does not create test files.",
Expand Down
5 changes: 0 additions & 5 deletions modules/schematics/src/selector/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ export interface Schema {
*/
flat?: boolean;

/**
* When true, does not create test files.
* @deprecated Use skipTests instead
*/
skipTest?: boolean;
/**
* When true, does not create test files.
*/
Expand Down
6 changes: 0 additions & 6 deletions modules/schematics/src/store/schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,6 @@
"default": true,
"description": "Flag to indicate if a dir is created."
},
"skipTest": {
"type": "boolean",
"description": "When true, does not create test files.",
"x-deprecated": "Use skipTests instead.",
"default": false
},
"skipTests": {
"type": "boolean",
"default": false,
Expand Down
5 changes: 0 additions & 5 deletions modules/schematics/src/store/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,6 @@ export interface Schema {
* Flag to indicate if a dir is created.
*/
flat?: boolean;
/**
* When true, does not create test files.
* @deprecated Use skipTests instead
*/
skipTest?: boolean;
/**
* When true, does not create test files.
*/
Expand Down

0 comments on commit 60cd5cc

Please sign in to comment.