Skip to content

Releases: CarbonPackages/Carbon.Pipeline

0.17.0

21 Mar 15:33
71a0731

Choose a tag to compare

Flow Settings in Javascript

Suppose you use tools like Flownative.Sentry, you perhaps want to pass some of the settings to your Javascript without setting a data attribute somewhere in the markup. For that, you can enable esbuild.defineFlowSettings. Just add the path (e.g. Flownative.Sentry.release) to the setting. In the background, the command flow configuration:show is runned. If you run the command build, which automatically has the flag --production, the FLOW_CONTEXT is set to Production.

esbuild:
  defineFlowSettings: Flownative.Sentry.release

defineFlowSettings can be also an array of strings:

esbuild:
  defineFlowSettings:
    - Flownative.Sentry.release
    - Flownative.Sentry.environment
    - Flownative.Sentry.dsn

Every entry results into one injected variable.

In Javascript, you can access the variables like this:

Sentry.init({
  dsn: FLOW.Flownative.Sentry.dsn,
  release: FLOW.Flownative.Sentry.release,
  environment: FLOW.Flownative.Sentry.environment,
  integrations: [new Integrations.BrowserTracing()],
});

Important

As some chars are not allowed to be injected as variable keys, the will get replaced:

Char Replaced with
.. .
- _
0 ZERO
1 ONE
2 TWO
3 THREE
4 FOUR
5 FIVE
6 SIX
7 SEVEN
8 EIGHT
9 NINE

Make sure your [eslint.config.mjs] has the global FLOW enabled:

import globals from "globals";
import pluginJs from "@eslint/js";
import prettierRecommended from "eslint-plugin-prettier/recommended";

export default [
  pluginJs.configs.recommended,
  prettierRecommended,
  {
    ignores: ["Build/", "Packages/", "**/Public/", "**/Resources/Private/Templates/", "*.noLinter.*"],
    languageOptions: {
      globals: {
        ...globals.browser,
        ...globals.node,
        FLOW: "readonly",
      },
    },
  },
];

Full Changelog: 0.16.2...0.17.0

0.16.2

29 Jan 12:30
2c1ba7f

Choose a tag to compare

Full Changelog: 0.16.1...0.16.2

0.16.1

08 Jan 10:59
20a222e

Choose a tag to compare

Full Changelog: 0.16.0...0.16.1

0.16.0

20 Nov 16:37
b7f2bf3

Choose a tag to compare

0.15.6

19 Nov 23:43
c71c4af

Choose a tag to compare

Full Changelog: 0.15.5...0.15.6

0.15.5

13 Nov 19:12
290a241

Choose a tag to compare

Full Changelog: 0.15.4...0.15.5

0.15.4

09 Sep 10:02
62875f0

Choose a tag to compare

Full Changelog: 0.15.3...0.15.4

0.15.3

03 Jun 11:21
7bc3bc1

Choose a tag to compare

Just updated a few dependencies

Full Changelog: 0.15.2...0.15.3

0.15.2

07 May 12:40
47f2fb4

Choose a tag to compare

What's Changed

Ask for CSS Framework as well as Sass

Carbon.Pipeline cli on install

Respects non-interactive mode from composer by @jonnitto in #45

Full Changelog: 0.15.1...0.15.2

0.15.1

25 Apr 14:16
6101cf4

Choose a tag to compare

Full Changelog: 0.15.0...0.15.1