ConsentOS — a privacy-first cookie consent management platform. Self-hosted, source-available alternative to OneTrust, Cookiebot, and CookieYes. Full standards coverage (IAB TCF v2.2, GPP v1, Google Consent Mode v2, GPC, Shopify Customer Privacy API), multi-tenant architecture with role-based access, configuration cascade (system → org → group → site → region), dark-pattern detection in the scanner, and a tamper-evident consent record audit trail. This is the initial public release. Prior development history is retained internally. See README.md for the feature list, architecture overview, and quick-start instructions. Licensed under the Elastic Licence 2.0 — self-host freely; do not resell as a managed service.
29 lines
758 B
TypeScript
29 lines
758 B
TypeScript
/// <reference types="vitest/config" />
|
|
import path from 'path';
|
|
import { defineConfig } from 'vite';
|
|
|
|
/** No-op virtual module for EE extensions (see vite.config.ts for details). */
|
|
function eeExtensions() {
|
|
const virtualModuleId = 'virtual:ee-extensions'
|
|
const resolvedId = '\0' + virtualModuleId
|
|
return {
|
|
name: 'ee-extensions',
|
|
resolveId(id: string) { if (id === virtualModuleId) return resolvedId },
|
|
load(id: string) { if (id === resolvedId) return 'export default undefined;' },
|
|
}
|
|
}
|
|
|
|
export default defineConfig({
|
|
plugins: [eeExtensions()],
|
|
test: {
|
|
globals: true,
|
|
environment: 'jsdom',
|
|
setupFiles: ['./src/test/setup.ts'],
|
|
},
|
|
resolve: {
|
|
alias: {
|
|
'@core': path.resolve(__dirname, 'src'),
|
|
},
|
|
},
|
|
});
|