Skip to content
This repository was archived by the owner on May 29, 2019. It is now read-only.

Scoped NPM packages #5877

Open
Open
@dfsq

Description

@dfsq

I know as as of version 1 angular-ui-bootstrap npm package is distributed with src directory, which allows bundling of individual modules. This is nice. However, what do you guys think about scoped npm packages per module?

Basically publishing individual modules as packages, packed as UMD module (along with possible dependencies, HTML and CSS):

  • @angular-ui-bootstrap/accordion
  • @angular-ui-bootstrap/alert
  • @angular-ui-bootstrap/buttons
  • etc.

Then it would allow individual packages to be installed as

npm install @angular-ui-bootstrap/tooltip

and used as

import uibTooltip from '@angular-ui-bootstrap/tooltip'

angular.module('app', [uibTooltip])

I think i would be really convenient. What do you guys think?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions