9.0.1 • Published 20 days ago

@hug/ngx-schematics-utilities v9.0.1

Weekly downloads
-
License
GPL-3.0-only
Repository
github
Last release
20 days ago

Schematics

Schematics are generators that transform an existing filesystem. They can create files, refactor existing files, or move files around.

More info

Getting started

This library provide a large set of utilities that can be used while developing a schematic for Angular.

👉 Learn about it on the docs site.

Example

export default (options: MySchematicOptions): Rule =>
  schematic('my-schematic', [
    modifyJsonFile('tsconfig.json', ['compilerOptions', 'strict'], true),

    workspace()
      .spawn('ng', ['add', '@angular/material', '--skip-confirmation'])
      .addPackageJsonDevDependencies(['eslint'])
      .packageInstallTask()
      .isAngularVersion('<= 11', () => {
        ...
      })
      .toRule(),

    application(options.project)
      .deployFiles(options)
      .addImportToFile('__SRC__/main.ts', 'environment', './environments/environment')
      .deleteFiles(['karma.conf.js'])
      .rule(({ project }: ChainableApplicationContext) => {
        return createOrUpdateFile(project.pathFromRoot('README.md'), project.name);
      })
      .toRule()

  ], options);

Development

See the developer docs.

Contributing

> Want to Help?

Want to file a bug, contribute some code or improve documentation? Excellent!

But please read up first on the guidelines for contributing, and learn about submission process, coding rules and more.

> Code of Conduct

Please read and follow the Code of Conduct, and help us keep this project open and inclusive.

Credits

Copyright (C) 2021 HUG - Hôpitaux Universitaires Genève

love@hug

9.0.1

20 days ago

9.0.0

20 days ago

8.0.1

3 months ago

7.1.0

4 months ago

8.0.0

4 months ago

7.0.0

7 months ago

6.6.3

10 months ago

6.6.5

9 months ago

6.6.4

10 months ago

6.6.6

7 months ago

6.6.2

10 months ago

6.6.1

11 months ago

6.5.2

1 year ago

6.6.0

1 year ago

6.5.1

1 year ago

6.1.0

1 year ago

6.3.0

1 year ago

6.2.0

1 year ago

6.1.1

1 year ago

6.5.0

1 year ago

6.3.2

1 year ago

6.4.0

1 year ago

6.3.1

1 year ago

6.0.0

1 year ago

5.0.1

2 years ago

5.0.0

2 years ago

4.0.2

2 years ago

4.0.1

2 years ago

3.0.0

2 years ago

2.2.0

2 years ago

2.1.1

2 years ago

2.0.2

2 years ago

4.0.0

2 years ago

2.1.0

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago