Rename default banner to themed banner
Rename src/default/ to src/themed-banner/, update class names (ProboDefaultBanner → ProboThemedBanner), style constant (DEFAULT_STYLES → THEMED_STYLES), registration function (registerDefault → registerThemedBanner), and adjust build entrypoints and package.json exports accordingly. Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
import * as esbuild from "esbuild";
|
||||
|
||||
const shared = {
|
||||
entryPoints: ["src/index.ts"],
|
||||
bundle: true,
|
||||
target: "es2020",
|
||||
};
|
||||
@@ -23,14 +22,22 @@ const shared = {
|
||||
await Promise.all([
|
||||
esbuild.build({
|
||||
...shared,
|
||||
entryPoints: ["src/index.ts"],
|
||||
outfile: "dist/cookie-banner.mjs",
|
||||
format: "esm",
|
||||
}),
|
||||
esbuild.build({
|
||||
...shared,
|
||||
entryPoints: ["src/themed-banner/index.ts"],
|
||||
outfile: "dist/cookie-banner-themed.mjs",
|
||||
format: "esm",
|
||||
}),
|
||||
esbuild.build({
|
||||
...shared,
|
||||
entryPoints: ["src/themed-banner/iife.ts"],
|
||||
outfile: "dist/cookie-banner.iife.js",
|
||||
format: "iife",
|
||||
globalName: "ProboCookieBanner",
|
||||
minify: true,
|
||||
}),
|
||||
esbuild.build({
|
||||
...shared,
|
||||
outfile: "dist/cookie-banner.mjs",
|
||||
format: "esm",
|
||||
}),
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user