File tree Expand file tree Collapse file tree 5 files changed +23
-4
lines changed
docs/documentation/generate
packages/schematics/angular/library Expand file tree Collapse file tree 5 files changed +23
-4
lines changed Original file line number Diff line number Diff line change @@ -51,6 +51,15 @@ Generate a library project for Angular.
5151 Do not add dependencies to package.json.
5252 </p >
5353</details >
54+ <details >
55+ <summary >skip-install</summary >
56+ <p >
57+ <code>--skip-install</code>
58+ </p >
59+ <p >
60+ Do not add dependencies to package.json.
61+ </p >
62+ </details >
5463<details >
5564 <summary >skip-ts-config</summary >
5665 <p >
Original file line number Diff line number Diff line change @@ -245,7 +245,7 @@ export default function (options: LibraryOptions): Rule {
245245 project : options . name ,
246246 } ) ,
247247 ( _tree : Tree , context : SchematicContext ) => {
248- if ( ! options . skipPackageJson ) {
248+ if ( ! options . skipPackageJson && ! options . skipInstall ) {
249249 context . addTask ( new NodePackageInstallTask ( ) ) ;
250250 }
251251 } ,
Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ describe('Library Schematic', () => {
2929 entryFile : 'my_index' ,
3030 skipPackageJson : false ,
3131 skipTsConfig : false ,
32+ skipInstall : false ,
3233 } ;
3334 const workspaceOptions : WorkspaceOptions = {
3435 name : 'workspace' ,
Original file line number Diff line number Diff line change @@ -14,17 +14,21 @@ export interface Schema {
1414 /**
1515 * The path to create the interface.
1616 */
17- entryFile : string ;
17+ entryFile ? : string ;
1818 /**
1919 * The prefix to apply to generated selectors.
2020 */
2121 prefix ?: string ;
2222 /**
2323 * Do not add dependencies to package.json (e.g., --skipPackageJson)
2424 */
25- skipPackageJson : boolean ;
25+ skipPackageJson ?: boolean ;
26+ /**
27+ * Skip installing dependency packages.
28+ */
29+ skipInstall ?: boolean ;
2630 /**
2731 * Do not update tsconfig.json for development experience (e.g., --skipTsConfig)
2832 */
29- skipTsConfig : boolean ;
33+ skipTsConfig ? : boolean ;
3034}
Original file line number Diff line number Diff line change 3030 "default" : false ,
3131 "description" : " Do not add dependencies to package.json."
3232 },
33+ "skipInstall" : {
34+ "description" : " Skip installing dependency packages." ,
35+ "type" : " boolean" ,
36+ "default" : false
37+ },
3338 "skipTsConfig" : {
3439 "type" : " boolean" ,
3540 "default" : false ,
You can’t perform that action at this time.
0 commit comments