Skip to content

Releases: CarbonPackages/Carbon.Pipeline

0.18.5

27 Nov 17:37
02364d8

Choose a tag to compare

0.18.4

26 Nov 18:29
29c9c24

Choose a tag to compare

Full Changelog: 0.18.3...0.18.4

0.18.3

26 Nov 15:23
bacbbe5

Choose a tag to compare

Full Changelog: 0.18.2...0.18.3

0.18.2

19 Nov 16:31
7144a02

Choose a tag to compare

Full Changelog: 0.18.1...0.18.2

0.18.1

15 Nov 15:56
a37f182

Choose a tag to compare

Full Changelog: 0.18.0...0.18.1

0.18.0

13 Nov 11:25
7a8e109

Choose a tag to compare

  • Basic support for Tailwind 4
  • Basic support for cpxfiles
  • Breaking: Remove postcss-assets plugin

Full Changelog: 0.17.0...0.18.0

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