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

@bagaar/build-helpers

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bagaar/build-helpers

Build helpers for Bagaar apps.

  • 0.1.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

@bagaar/build-helpers

CI Code Style: Prettier Conventional Commits

Build helpers for Bagaar apps.

Usage

  1. Include the build info in the app:
// config/environment.js

const { getBuildInfo } = require("@bagaar/build-helpers");

module.exports = function () {
  const ENV = {
    buildInfo: getBuildInfo(),
  };

  return ENV;
};
  1. Pass along the build version to Bugsnag:
// app/routes/application.js

import Bugsnag from "@bugsnag/js";
import Route from "@ember/routing/route";
import config from "ember-project-boilerplate/config/environment";

export default class ApplicationRoute extends Route {
  beforeModel() {
    this.setupBugsnag();
  }

  setupBugsnag() {
    Bugsnag.start({
      appVersion: config.buildInfo.versionWithHash,
    });
  }
}
  1. Build the app:
pnpm build
  1. Upload the source maps to Bugsnag:
pnpm upload-source-maps
  1. Clean the "dist" folder:
pnpm clean-dist-folder
  1. Finally, upload the "dist" folder to the server.

FAQs

Package last updated on 04 Mar 2024

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