Move playbooks to plugin (#23732)
* Remove build references * Remove playbooks webapp and server, and add the prepackaged plugin * Remove translations * Add ProductSettings to the playwright type * Restore playbooks as a prepackaged plugin for cypress e2e tests
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
f386ef1ea8
Коммит
44a99d1736
@@ -275,23 +275,6 @@ var config = {
|
||||
],
|
||||
};
|
||||
|
||||
if (DEV) {
|
||||
config.plugins.push({
|
||||
apply: (compiler) => {
|
||||
compiler.hooks.afterEmit.tap('AfterEmitPlugin', () => {
|
||||
const playbooksDist = path.resolve(__dirname, '../playbooks/dist');
|
||||
const playbooksSymlink = './dist/products/playbooks';
|
||||
|
||||
fs.mkdir('./dist/products', () => {
|
||||
if (!fs.existsSync(playbooksSymlink)) {
|
||||
fs.symlinkSync(playbooksDist, playbooksSymlink, 'dir');
|
||||
}
|
||||
});
|
||||
});
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
function generateCSP() {
|
||||
let csp = 'script-src \'self\' cdn.rudderlabs.com/ js.stripe.com/v3';
|
||||
|
||||
@@ -328,9 +311,7 @@ async function initializeModuleFederation() {
|
||||
}
|
||||
|
||||
async function getRemoteContainers() {
|
||||
const products = [
|
||||
{name: 'playbooks'},
|
||||
];
|
||||
const products = [];
|
||||
|
||||
const remotes = {};
|
||||
for (const product of products) {
|
||||
|
||||
Ссылка в новой задаче
Block a user