0.1.7 • Published 9 months ago

@bagaar/build-helpers v0.1.7

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@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.
0.1.7

9 months ago

0.1.6

9 months ago

0.1.5

9 months ago

0.1.4

9 months ago

0.1.3

9 months ago

0.1.2

9 months ago

0.1.1

10 months ago

0.1.0

11 months ago