npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@cupcake-ds/schematics

v0.0.6

Published

Angular schematics collection for integrating setup tools like prettier and storybook.

Downloads

9

Readme

Angular Schematics Collection

GitHub Tag Travis CI Known Vulnerabilities Dependabot Status Awesome Badges

tl:dr; Angular schematics collection for integrating setup tools.

This library contains some basic schematics for scaffolding well known tools like prettier, storybook or travis. It extends the official Angular schematics which allows you to define the collection as your default collection and still use all official Angular schematics (module, service, etc.).

Installation

To install the schematics collection use the following command:

$ ng add @pascaliske/schematics

Schematics

component

Generate a new Angular component including Storybook related files.

ng generate component <name> [...flags]

Options

The following options can be used to tweak the result of the schematic. All options you leave out will be prompted interactively.

--name | string

Define a name for the newly generated component.

--skip-story | boolean

Allows you to skip the generation of storybook related files. (Same as running the default component schematic of Angular)

  • Default: false

prettier

Integrate Prettier formatting into your Angular project.

ng generate prettier [...flags]

Options

The following options can be used to tweak the result of the schematic. All options you leave out will be prompted interactively.

--files | string

Define which files are formatted by prettier.

  • Default: src/**/*.{ts,scss,html,md}

Note: Don't forget to wrap the string in quotes to prevent resolving globs (*, **, etc.) through your terminal!

--skip-install | boolean

Skip the installation process of newly added dependencies.

  • Default: false
--skip-hook | boolean

Don't add a pre-commit hook for running prettier during commit process.

  • Default: false
--skip-script | boolean

Don't add a script to your package.json for easier running prettier.

  • Default: false
--excludes | string

Add a .prettierignore file with exclude rules. Use a comma separated string to add multiple exclude rules.

Note: Don't forget to wrap the string in quotes to prevent resolving globs (*, **, etc.) through your terminal!

--print-width | number

Choose a max line width for breaking single lines into multiple.

  • Possible values: 80 | 100 | 120 | 140
  • Default: 100
--use-tabs | boolean

Use tab based indentation instead of the default space based one.

  • Default: false
--tab-width | number

Specify the number of spaces per indentation-level.

  • Possible values: 2 | 4
  • Default: 4
--trailing-comma | string

Print trailing commas wherever possible when multi-line.

  • Possible values: none | es5 | all
  • Default: all
--arrow-parens | string

Include parentheses around a single arrow function parameter.

  • Possible values: avoid| always
  • Default: avoid
--semi | boolean

Print semicolons at the ends of statements.

  • Default: false
--single-quote | boolean

Use single quotes instead of double quotes.

  • Default: true
--bracket-spacing | boolean

Print spaces between brackets in object literals.

  • Default: true

commit-lint

Integrate commit linting into your Angular project.

ng generate commit-lint [...flags]

Options

The following options can be used to tweak the result of the schematic. All options you leave out will be prompted interactively.

--skip-install | boolean

Skip the installation process of newly added dependencies.

  • Default: false
--preset | string

Specify the preset that the linter will use.

  • Possible values: conventional
  • Default: conventional
--header-length | number

Specify the header length that the linter will check.

  • Possible values: 100
  • Default: 100

snyk

Integrate Snyk security testing into your Angular project.

ng generate snyk [...flags]

Options

The following options can be used to tweak the result of the schematic. All options you leave out will be prompted interactively.

--skip-install | boolean

Skip the installation process of newly added dependencies.

  • Default: false
--skip-script | boolean

Don't add a script to your package.json for easier running snyk.

  • Default: false

travis

Integrate Travis CI into your Angular project.

ng generate travis [...flags]

Options

The following options can be used to tweak the result of the schematic. All options you leave out will be prompted interactively.

--versions | string

Specify which versions the Travis CI file should contain. To specify multiple versions use a comma separated string.

--package-manager | string

Specify the package manger to be used in your Travis CI file.

  • Possible values: yarn | npm
  • Default: yarn

storybook

Integrate Storybook into your Angular project.

ng generate storybook [...flags]

Options

The following options can be used to tweak the result of the schematic. All options you leave out will be prompted interactively.

--config | string

Specify the config folder for storybook.

  • Default: .storybook
--skip-install | boolean

Skip the installation process of newly added dependencies.

  • Default: false
--skip-script | boolean

Don't add a script to your package.json for easier running storybook.

  • Default: false
name | string

Specify the name of your storybook.

theme | string

Specify the theme for storybook.

  • Possible values: normal | dark
  • Default: dark
port | number

Specify the port for storybook.

  • Default: 9001

ngw

Integrate ngw wrapper into your Angular project.

ng generate ngw [...flags]

Options

The following options can be used to tweak the result of the schematic. All options you leave out will be prompted interactively.

--skip-install | boolean

Skip the installation process of newly added dependencies.

  • Default: false
--skip-script | boolean

Don't add script entries to your package.json for automatically running through ngw wrapper.

  • Default: false
--dashboard | boolean

Add webpack dashboard plugin.

  • Default: true
--visualizer | boolean

Add webpack visualizer plugin.

  • Default: true
--purify-css | boolean

Add webpack purify css plugin.

  • Default: true
--versions | boolean

Add automatic version constant replacements.

  • Default: true