ng-packagr
- Version 21.0.0
- Published
- 726 kB
- 21 dependencies
- MIT license
Install
npm i ng-packagryarn add ng-packagrpnpm add ng-packagrOverview
Compile and package Angular libraries in Angular Package Format (APF)
Index
Variables
Functions
Classes
class NgPackagr
class NgPackagr {}The original ng-packagr implemented on top of a rxjs-ified and di-jectable transformation pipeline.
See the
docs/transformations.mdfor more prose description.https://github.com/ng-packagr/ng-packagr/pull/572
constructor
constructor(providers: Provider[]);method build
build: (options?: NgPackagrOptions) => Promise<void>;Builds the project by kick-starting the 'build' transform over an (initially) empty
BuildGraph`A promisified result of the transformation pipeline.
method buildAsObservable
buildAsObservable: () => Observable<void>;Builds the project by kick-starting the 'build' transform over an (initially) empty
BuildGraph`An observable result of the transformation pipeline.
method forProject
forProject: (project: string) => NgPackagr;Sets the path to the user's "ng-package" file (either
package.json,ng-package.json, orng-package.js)Parameter project
File path Self instance for fluent API
method watch
watch: (options?: NgPackagrOptions) => Observable<void>;Builds and watch for changes by kick-starting the 'watch' transform over an (initially) empty
BuildGraph`An observable result of the transformation pipeline.
method withBuildTransform
withBuildTransform: (transform: InjectionToken<Transform>) => NgPackagr;Overwrites the 'build' transform.
Parameter transform
Self instance for fluent API
method withOptions
withOptions: (options: NgPackagrOptions) => NgPackagr;Adds options to ng-packagr
Parameter options
Ng Packagr Options Self instance for fluent API
Deprecated
use the options parameter in 'build' and 'watch' methods
method withProviders
withProviders: (providers: Provider[]) => NgPackagr;Adds dependency injection providers.
Parameter providers
Self instance for fluent API https://github.com/mgechev/injection-js
method withTsConfig
withTsConfig: (defaultValues: ParsedConfiguration | string) => NgPackagr;Overwrites the default TypeScript configuration.
Parameter defaultValues
A tsconfig providing default values to the compilation. Self instance for fluent API
Interfaces
interface CliArguments
interface CliArguments {}CLI arguments passed to
ng-packagrexecutable andbuild()command.
property config
config?: string;Path to a tsconfig file.
property poll
poll?: number;Enable and define the file watching poll time period in milliseconds
property project
project: string;Path to the project file 'package.json', 'ng-package.json', or 'ng-package.js'.
property watch
watch?: boolean;Whether or not ng-packagr will watch for file changes and perform an incremental build.
interface Command
interface Command<Arguments, Result> {}Common call signature for a command.
call signature
(args?: Arguments): Result | Promise<Result>;interface NgPackagrOptions
interface NgPackagrOptions {}property cacheDirectory
cacheDirectory?: string;property cacheEnabled
cacheEnabled?: boolean;property poll
poll?: number;property watch
watch?: boolean;Whether or not ng-packagr will watch for file changes and perform an incremental build.
Package Files (6)
Dependencies (21)
Dev Dependencies (0)
No dev dependencies.
Peer Dependencies (4)
Badge
To add a badge like this oneto your package's README, use the codes available below.
You may also use Shields.io to create a custom badge linking to https://www.jsdocs.io/package/ng-packagr.
- Markdown[](https://www.jsdocs.io/package/ng-packagr)
- HTML<a href="https://www.jsdocs.io/package/ng-packagr"><img src="https://img.shields.io/badge/jsDocs.io-reference-blue" alt="jsDocs.io"></a>
- Updated .
Package analyzed in 3979 ms. - Missing or incorrect documentation? Open an issue for this package.
