https://github.com/studiohyperdrive/angular_builders
https://github.com/studiohyperdrive/angular_builders
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/studiohyperdrive/angular_builders
- Owner: studiohyperdrive
- License: mit
- Created: 2019-06-25T18:59:52.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-01-07T08:09:52.000Z (over 3 years ago)
- Last Synced: 2025-05-31T10:49:42.505Z (11 months ago)
- Language: TypeScript
- Size: 730 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# @studiohyperdrive/angular-builders
This repo contains some builders for Angular (v7+).
## Install
```bash
npm install -D @studiohyperdrive/angular-builders
```
or
```bash
yarn add @studiohyperdrive/angular-builders
```
## @studiohyperdrive/angular-builder:named-exports
This builder generates named exports for the build target using the [`@studiohyperdrive/named-exports`](https://github.com/studiohyperdrive/named-exports) package.
### Usage
Use the builder in your build targets:
```json
{
...
"projects": {
"demo": {
...
"architect": {
...
"named-exports": {
"builder": "@studiohyperdrive/angular-builders:named-exports",
"options": {
"dir": "src",
"indent": "space",
"indentSize": 4,
"ignore": "*.spec.ts"
}
}
}
}
}
```
For available options, see [`@studiohyperdrive/named-exports`](https://github.com/studiohyperdrive/named-exports#options).
## @studiohyperdrive/angular-builder:build-library
This builder runs the `ng build` command with support for auto-generated export files using the `named-exports` package described above.
### Usage
Use the builder in your build targets like you would the standard library builder, adding options for the `named-exports` builder under the `namedExports` property:
```json
{
...
"projects": {
"demo": {
...
"architect": {
...
"build": {
"builder": "@studiohyperdrive/angular-builders:builder-library",
"options": {
"tsConfig": "projects/demo/tsconfig.lib.json",
"project": "projects/demo/ng-package.json",
"namedExports": {
"dir": "projects/demo/src",
"fileName": "public-api"
}
}
}
}
}
}
```
For available options, see [`@studiohyperdrive/named-exports`](https://github.com/studiohyperdrive/named-exports#options).
## Contributing (Issue/PR)
Make sure to add your issue, question or feature request to the issue tracker and fire away!