@studiohyperdrive/angular-builders
v2.0.0
Published
This repo contains some builders for Angular (v7+).
Downloads
12
Maintainers
Keywords
Readme
@studiohyperdrive/angular-builders
This repo contains some builders for Angular (v7+).
Install
npm install -D @studiohyperdrive/angular-builders
or
yarn add @studiohyperdrive/angular-builders
@studiohyperdrive/angular-builder:named-exports
This builder generates named exports for the build target using the @studiohyperdrive/named-exports
package.
Usage
Use the builder in your build targets:
{
...
"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
.
@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:
{
...
"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
.
Contributing (Issue/PR)
Make sure to add your issue, question or feature request to the issue tracker and fire away!