Skip to content

--poll option does not work with libraries #12487

Closed as not planned
Closed as not planned

Description

@mcenkar

Bug Report or Feature Request (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request

Command (mark with an x)

- [ ] new
- [x] build
- [ ] serve
- [ ] test
- [ ] e2e
- [ ] generate
- [ ] add
- [ ] update
- [ ] lint
- [ ] xi18n
- [ ] run
- [ ] config
- [ ] help
- [ ] version
- [ ] doc

Versions

Repro steps

--poll option does not work with library.
ng build --watch --poll=1000 works but ng build some-library --watch --poll=1000 does not.

The log given by the failure

CHZRHMAC048:design-system cenkm$ ng build design-system-generic
Building Angular Package
Building entry point 'design-system-generic'
Compiling TypeScript sources through ngc
Bundling to FESM2015
Bundling to FESM5
Bundling to UMD
Minifying UMD bundle
Copying declaration files
Writing package metadata
Removing scripts section in package.json as it's considered a potential security vulnerability.
Built design-system-generic
Built Angular Package!
 - from: /Users/cenkm/workspace/design-system/projects/design-system-generic
 - to:   /Users/cenkm/workspace/design-system/dist/design-system-generic
CHZRHMAC048:design-system cenkm$ ng build design-system-generic --watch --poll=1000
Unknown option: '--poll'

Desired functionality

--poll option also works with libraries. It works fine if [project] is not provided.

Activity

  1. added
    feature
    on Oct 5, 2018
  2. modified the milestone: Backlog on Oct 5, 2018
  3. alan-agius4 commented on Oct 5, 2018

    @alan-agius4
    Collaborator

    This will require work to be done at upstream, as we are using ng-packagr to build libraries and this feature is not currently supported from their end either.

  4. removed this from the Backlog milestone on Nov 28, 2021
  5. added
    feature: votes required
    on Feb 1, 2022
  6. angular-robot commented on Feb 1, 2022

    @angular-robot
    Contributor

    Just a heads up that we kicked off a community voting process for your feature request. There are 20 days until the voting process ends.

    Find more details about Angular's feature request process in our documentation.

  7. angular-robot commented on Feb 21, 2022

    @angular-robot
    Contributor

    Thank you for submitting your feature request! Looks like during the polling process it didn't collect a sufficient number of votes to move to the next stage.

    We want to keep Angular rich and ergonomic and at the same time be mindful about its scope and learning journey. If you think your request could live outside Angular's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.

    You can find more details about the feature request process in our documentation.

  8. added
    feature: insufficient votes
    and removed
    feature: votes required
    on Feb 21, 2022
  9. alan-agius4 commented on May 23, 2023

    @alan-agius4
    Collaborator

    Closing due to the lack of interest around this feature from the community. Let's re-open if things change.

  10. self-assigned this
    on May 23, 2023
  11. angular-automatic-lock-bot commented on Jun 23, 2023

    @angular-automatic-lock-bot

    This issue has been automatically locked due to inactivity.
    Please file a new issue if you are encountering a similar or related problem.

    Read more about our automatic conversation locking policy.

    This action has been performed automatically by a bot.

  12. locked and limited conversation to collaborators on Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

devkit/build-angular:libraryfeaturefeature: insufficient votesstate: blocked on upstream

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions