ng-packagr Questions

1

Solved

I have a very specific question about angular libraries secondary entry points setup. I really don't understand how i can setup it to get it work when they depend on each other including the main e...
J asked 27/3, 2020 at 12:55

0

I have a Custom Angular Library and I would like to customize the build of that Library using postcss. Like the Angular Libraries are built using ng-packagr, I need to extend the rollup.config.js ...
Ravenna asked 31/3, 2020 at 16:54

4

Solved

I am building a library with Angular 6.1.0 ng new lib-demo ng generate library my-lib All the articles advise running the build for the library with a --prod flag like so: ng build my-lib --pr...
Cathee asked 13/9, 2018 at 18:13

0

I try to bundle some assets into my published angular library. Within my angular workspace, I located the assets in the src-folder with the following ng-package.json { "$schema": "../../node_modu...
Mackinaw asked 25/2, 2020 at 9:36

1

Solved

I have an Angular CLI library where each component should only be imported through their individual entry-points (like Angular Material) : import {Foo} from '@myLib/foo import {Bar} from '@myLib/b...
Gelman asked 23/1, 2020 at 5:30

3

When using ng-packagr to package up one project @my/common-util, there are no problems. This class contains an abstract class called AbstractPerson in abstract-person.ts. In another project called...
Keven asked 5/2, 2018 at 5:18

1

Solved

I am currently developing an Angular library (in Angular v 8.1.0) and wondering how is it possible to have it "split in different sub-libraries"? For example, Angular (@angular) is split som...

3

Solved

I am trying to create what I believe is called a secondary entry point into my angular npm package. I want the following two entry points @scope/data-service @scope/data-service/models Using the...
Infrequency asked 11/6, 2018 at 16:39

1

I'm having trouble importing JSON file to my environment file in Angular 7 library. My environment.ts file looks like this: import firebase from './firebase.json'; export const environment = { p...
Robby asked 10/4, 2019 at 14:25

2

Angular's i18n is great, and tools like ng-packagr makes component library packaging extremely easy, but can they be combined? What if i want to package and distribute a component library having t...
Worldbeater asked 15/3, 2018 at 14:41

1

As you know, the "ng g library" approach helps us with the creation of libraries of reusable components. But what if I wanted those components to be compiled into web components... through the supp...
Valeta asked 25/3, 2019 at 16:46

1

Solved

Is there a way within an Angular CLI project to have a library provide a polyfill? Within angular.json, the main app is by default configured with "polyfills": "src/polyfills.ts". This option is no...
Addams asked 13/9, 2018 at 17:23

0

Using tools like rollup or ng-packagr (for angular) you can create the UMD bundle of your code easily. By default, dependencies will be treated as external dependencies and not bundled in the gener...
Beneath asked 7/3, 2019 at 11:39

0

I am trying to create an angular package using ng-packagr. I have added the following script into my package json in order to build the package "scripts": { "build:lib": "ng-packagr -p lib/pack...
Florous asked 27/11, 2018 at 9:50

1

I am trying to rename a file during the assets copy of ng build Here is what I have used in angular.json: "outputPath": "dist", "assets": [ ..., { "glob": "favicon-v1.png", "input": "src/cl...
Ireful asked 17/11, 2018 at 20:36

3

Type of Issue: Bug / Question Description I'm using ng-packagr lib to compile my library to js. I've compiled everything without any problems, but when I'll want to consume my library with ng bui...

1

I'd like to use the Pure.css module in an Angular library created with the CLI generate library command. I have a workspace app in which I have ran the generate library command to create the libra...
Centner asked 8/9, 2018 at 15:1

1

Solved

In an Angular CLI project, when using an unsupported version of TypeScript you may get the following warning: @angular/[email protected] requires typescript@'>=X.X.X <Y.Y.Y' but Z.Z.Z w...
Stillbirth asked 15/8, 2018 at 15:39

1

Solved

Scenario: I created a custom UI library using ng-packagr, exported custom components and some model classes. Problem: In main project, import statement works fine for exported components but it ...
Preconscious asked 5/7, 2018 at 8:41

0

I have built an Angular 6 Library module following this guide and a dummy application running along my library so I can import and test modules during development. The Library Module I am importin...
Spevek asked 26/6, 2018 at 10:10

2

Solved

After updating my project to the latest version of Angular (6.0.4) i wanted to finally separate my code into different libraries. The setup is as followed: CMS - app Client - app Core - Librar...
Hanser asked 11/6, 2018 at 21:11

1

Solved

I created a core library for my project containing some components and services. I built the library with ng-packagr. In the consuming project which references the library I built my webapp contain...
Bountiful asked 21/4, 2018 at 19:35

1

Solved

I am trying to import a locally developed Angular project/module into an angular application without publishing it into npm repository. First, I followed this tutorial to build my module in UMD fo...
Behistun asked 5/1, 2018 at 1:44

© 2022 - 2024 — McMap. All rights reserved.