JSPM

  • Created
  • Published
  • Downloads 16
  • Score
    100M100P100Q57891F
  • License MIT

Angular extended builders with custom options for esbuild and Vite

Package Exports

    This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (angular-extended-builder) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

    Readme

    Angular Extended Builder

    Package is forked/copied and heavily inspired by https://github.com/just-jeb/angular-builders

    I just build this package to provide/implement a more modern base for https://github.com/just-jeb/angular-builders and to extend it to my needs wherever I need to.

    [!CAUTION] I use this project for my needs and my companies Angular projects, it does not guarantee to work with your project nor do I want to implement edge cases. Please refer to angular-builders if you need that type of stability.

    Usage

    1. Install library
    2. Replace @angular/build in angular.json's build and serve with this library name
    3. Replace $schema with ./node_modules/angular-extended-builder/dist/schema.json
    4. Run and customize

    Builders

    Name Options
    application schema.json
    dev-server schema.json

    How to

    Esbuild Plugins

    Add a plugins section in your angular.json at projects.<>.architect.build.options and add an array of relative file paths to your ESM esbuild Plugins. Examples can be found here: https://github.com/muuvmuuv/angular-extended-builders/tree/main/projects/app/plugins

    • Define plugin to define environment variables
    • Graphql compatible Angular plugin to load your .gql files

    Index HTML Transformer

    Add a indexHtmlTransformer section in your angular.json at projects.<>.architect.build.options and add the relative file path to your ESM script. An example can be found here: https://github.com/muuvmuuv/angular-extended-builders/tree/main/projects/app

    Versioning

    The major and minor version of this library will always be aligned with the supported Angular version to provide better type compatibility of underlying peer dependencies. Publishing fixes and patches will only effect the libs patch identifier. Major and minor releases will only be available once a Angular version has been published. During next, rc and beta releases, an additional number will be prepended instead.