Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

angular-builders

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular-builders

Marble testing helpers library for RxJs and Jest

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
66
increased by40.43%
Maintainers
1
Weekly downloads
 
Created
Source

angular-cli-builders

A set of additional builders for angular-cli

Prerequsits:

  • Angular CLI 6
  • @angular-devkit/architect >= 0.7.0-rc.0
  • @angular-devkit/build-angular >= 0.7.0-rc.0
  • @angular-devkit/build-webpack >= 0.7.0-rc.0

Usage

  1. npm i -D angular-cli-builders
  2. In your angular.json:
    ...
    "architect": {
           ...
           "[architect-target]": {
                     "builder": "angular-builders:[name-of-builder]"
                     "options": {
                           ...
                     }
    
    Where:
    • [architect-target] is the name of build target you want to run (build, serve, test etc.)
    • [name-of-builder] one of the supported builders (specified below)
  3. ng [architect-target]

For example

  • angular.json:
    "architect": {
        ...
        "build": {
                  "builder": "angular-builders:custom-webpack-browser"
                  "options": {
                        ...
                  }
    
  • Run the build: ng build

Builders

custom-webpack-browser

Extended @angular-devkit/build-angular:browser builder that allows to specify additional webpack configuration (on top of the existing under the hood).
The builder will run the same build as @angular-devkit/build-angular:browser does with extra parameters that are specified in the provided webpack configuration.

Options:

  • All the @angular-devkit/build-angular:browser options
  • webpackConfigPath: path to the extra webpack configuration, defaults to webpack.config.js

angular.json Example:

"architect": {
    ...
    "build": {
              "builder": "angular-builders:custom-webpack-browser"
              "options": {
                     "webpackConfigPath": "./extra-webpack.config.js",
                     "outputPath": "dist/my-cool-library",
                     "index": "src/index.html",
                     "main": "src/main.ts",
                     "polyfills": "src/polyfills.ts",
                     "tsConfig": "src/tsconfig.app.json"
              }

custom-webpack-server

Extended @angular-devkit/build-angular:server builder that allows to specify additional webpack configuration (on top of the existing under the hood).
The builder will run the same build as @angular-devkit/build-angular:server does with extra parameters that are specified in the provided webpack configuration.

Options:

  • All the @angular-devkit/build-angular:server options
  • webpackConfigPath: path to the extra webpack configuration, defaults to webpack.config.js

angular.json Example:

"architect": {
    ...
    "build": {
              "builder": "angular-builders:custom-webpack-server"
              "options": {
                     "webpackConfigPath": "./extra-webpack.config.js",
                     "outputPath": "dist/my-cool-library",
                     "index": "src/index.html",
                     "main": "src/main.ts",
                     "polyfills": "src/polyfills.ts",
                     "tsConfig": "src/tsconfig.app.json"
              }

Keywords

FAQs

Package last updated on 01 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc