# @brewermap/schematics

> Schematics for Brewer Map apps

Latest version **0.0.9** (published 2021-03-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install @brewermap/schematics
pnpm add @brewermap/schematics
yarn add @brewermap/schematics
bun add @brewermap/schematics
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.9 |
| Published | 2021-03-10 |
| First published | 2021-03-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 7 |
| Unpacked size | 42.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Osiel Hernandez |
| Maintainers | osspro |
| Keywords | schematics, brewermap |

## Links

- npm: https://www.npmjs.com/package/@brewermap/schematics
- npm.io page: https://npm.io/package/@brewermap/schematics

## Dependencies (7)

- [typescript](https://npm.io/package/typescript.md) ~3.9.7
- [@angular/cdk](https://npm.io/package/@angular/cdk.md) >10.1.2
- [@angular/core](https://npm.io/package/@angular/core.md) >10.0.8
- [@angular/common](https://npm.io/package/@angular/common.md) >10.0.8
- [@brewermap/toolbar](https://npm.io/package/@brewermap/toolbar.md) ~0.0.2
- [@angular-devkit/core](https://npm.io/package/@angular-devkit/core.md) >10.0.5
- [@angular-devkit/schematics](https://npm.io/package/@angular-devkit/schematics.md) >10.0.5

## Alternatives

- [vest](https://npm.io/package/vest.md) — 50.1K weekly downloads
- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads

## Recent versions

- 0.0.9 (latest) — 2021-03-10

## README

# Brewer Map Schematics

Installation

```bash
npm i @brewermap/schematics@0.0.9
```
Installation from local registry

```bash
verdaccio
npm i @brewermap/schematics@0.0.9 --registry http://localhost:4873
```

There are two main schematics for the setup of a Brewer Map project:

NOTE: Is highly recomended to use a blank project (just after it's have been generated) and then run the schematics one after the other

## Ng Add

This schematic handles the Angular Material dependencies installation mainly for theming but with a custom layer with the help of `@brewermap/theming` color palettes.

```bash
ng add @brewermap/schematics
```

## Scaffold

In order to init the main files of the app this schematics does the following actions:

- Install  `@brewermap/toolbar` as dependency inside `package.json`.
- Generate a service called `navigation.service.ts` inside the services folder so the `@brewermap/toolbar` component works with subpages.
- Override the `app.component` (.html, .scss and .ts files).
- Generate Material and BM modules.
- Import those modules into `app.module.ts`.

To run this schematic just:

```bash
ng g @brewermap/schematics:scaffold
```

## Menu

Generates a menu component inside components folder to be called by `@brewermap/dialog` when menu button in app.component is pressed.

```bash
ng g @brewermap/schematics:menu
```

## Contributions

### Testing

To test locally, install `@angular-devkit/schematics-cli` globally and use the `schematics` command line tool. That tool acts the same as the `generate` command of the Angular CLI, but also has a debug mode.

Check the documentation with
```bash
schematics --help
```

### Unit Testing

`npm run test` will run the unit tests, using Jasmine as a runner and test framework.

### Publishing

To publish, simply do:

```bash
npm run build
npm publish
```

Local publish via Verdaccio:

```bash
verdaccio
npm run build
npm publish --registry http://localhost:4873
```

That's it!

---
_Source: https://npm.io/package/@brewermap/schematics · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
