# @flatxph/angular-builders

> Customized Builders for Angular

Latest version **0.0.0** (published 2019-01-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @flatxph/angular-builders
pnpm add @flatxph/angular-builders
yarn add @flatxph/angular-builders
bun add @flatxph/angular-builders
```

## 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.0 |
| Published | 2019-01-12 |
| First published | 2019-01-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 11.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Rodney Pantonial |
| Maintainers | queeryme |
| Keywords | angular, js |

## Links

- npm: https://www.npmjs.com/package/@flatxph/angular-builders
- Repository: https://github.com/queeryme/angular-builders
- Homepage: https://github.com/queeryme/angular-builders#readme
- Issues: https://github.com/queeryme/angular-builders/issues
- npm.io page: https://npm.io/package/@flatxph/angular-builders

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.0.0 (latest) — 2019-01-12

## README

# Builders
These are customized builders to make node development easier on the latest angular cli.

## Environment Builder
This builds an environment file that supports path variables for easier deployment to cloud providers.

To use this builder, do the following:

* Create a `build.ts` file with the following format:
```
export default const environment = {
    production: process.env.PRODUCTION || false,
    ...
    <variable>: process.env.<VARIABLE> || <default value>
    ...
}
```

* On the `angular.json`, import this as an architect with the following options:

* An example of this is:

Architect for `angular.json`
```
    "environment": {
        "options": {
            model: "Environment";
            modelPath: "./src/environments/model";
            filename: "environment.prod.ts";
            path: "./src/environments/";
            builder: "./src/environments/builder";
        }
    }
```

File for `build.ts`
```
export default const environment = {
    production: process.env.PRODUCTION || false,
    maps: {
        apiKey: process.env.MAPS_API_KEY,
        libraries: process.env.MAPS_LIBRARIES ? process.env.MAPS_LIBRARIES.split(',') : [],
    }
}
```

Output file `environment.prod.ts`
```
export default const environment: Environment = {
}
```

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