New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

netlify-build-plugin-dareboost

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

netlify-build-plugin-dareboost

[![npm version](https://badge.fury.io/js/netlify-build-plugin-dareboost.svg)](https://badge.fury.io/js/netlify-build-plugin-dareboost)

  • 1.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

npm version

Dareboost Netlify Build Plugin

You need a Dareboost plan to enjoy this plugin

This plugin use the Dareboost API to react to a successful build.

If your plan contains monitoring: adds a Dareboost event on the page and/or User Journey monitors you have defined

If your plan contains API credits: launches analysis you have configured in your netlify.toml file.

Minimal usage (global event)

  1. Install the plugin:

    npm i netlify-build-plugin-dareboost
    
  2. Add the plugin declaration to your netlify.toml configuration file.

    [[plugins]]
    package = "netlify-build-plugin-dareboost"
    
  3. Get your Dareboost API authentication token and save it in an environment variable called DAREBOOST_API_TOKEN (under Settings > Build & deploy > Environment > Environment variables). Please read Netlify's documentation about environment variables. Your API token must be kept private.

[Optional] Create an event specific to certain monitors

If you want your Dareboost event to be related to specific monitors, you can add some configuration using the Netlify Plugins inputs:

  • monitoringIds: The ids of the page monitors relevant to the build, separated by a coma.
  • scenarioIds: The ids of the User Journey monitors relevant to the build, separated by a coma.

Example:

[[plugins]]
package = "netlify-build-plugin-dareboost"

  [plugins.inputs]
  monitoringIds = "7134"
  scenarioIds = "121, 122"

If neither monitoringIds nor scenarioIds are defined, the event will be considered global.

[Optional] Launch analyses if the build is successful

If you want the plugin to automatically launch analyses when the build is successful, you can define multiple analyses configurations.

Beware: the analyses will be launched simultaneously. Make sure that your subscription supports this, otherwise just define one configuration.

Example (will consume 2 API credits):

[[plugins]]
package = "netlify-build-plugin-dareboost"

  [plugins.inputs]

    [[plugins.inputs.configurations]]
    url = "https://boris.schapira.dev"
    lang = "en"
    location = "San Jose"
    isPrivate = "true"
    visualMetrics = "true"

      [plugins.inputs.configurations.browser]
      name = "Chrome"

Find more information on the multiple parameters and the API quotas in the Dareboost API documentation (route "/analysis/launch").

Keywords

FAQs

Package last updated on 10 Jun 2020

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