Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const {promisify} = require("util");
const rimraf = promisify(require("rimraf"));
const log = require("@ui5/logger").getGroupLogger("builder:builder");
const resourceFactory = require("@ui5/fs").resourceFactory;
const MemAdapter = require("@ui5/fs").adapters.Memory;
const typeRepository = require("../types/typeRepository");
const taskRepository = require("../tasks/taskRepository");
const BuildContext = require("./BuildContext");
const definedTasks = taskRepository.getAllTasks();
// Set of tasks for development
const devTasks = [
"replaceCopyright",
"replaceVersion",
"buildThemes"
];
/**
const test = require("ava");
const chai = require("chai");
const path = require("path");
chai.use(require("chai-fs"));
const parentLogger = require("@ui5/logger").getGroupLogger("mygroup");
const ApplicationBuilder = require("../../../../lib/types/application/ApplicationBuilder");
function clone(o) {
return JSON.parse(JSON.stringify(o));
}
const applicationBPath = path.join(__dirname, "..", "..", "..", "fixtures", "application.b");
const applicationBTree = {
id: "application.b",
version: "1.0.0",
path: applicationBPath,
dependencies: [],
builder: {
bundles: [{
const test = require("ava");
const path = require("path");
const chai = require("chai");
chai.use(require("chai-fs"));
const sinon = require("sinon");
test.afterEach.always((t) => {
sinon.restore();
});
const taskRepository = require("../../../lib/tasks/taskRepository");
const parentLogger = require("@ui5/logger").getGroupLogger("mygroup");
const AbstractBuilder = require("../../../lib/types/AbstractBuilder");
function clone(o) {
return JSON.parse(JSON.stringify(o));
}
const applicationBPath = path.join(__dirname, "..", "..", "..", "fixtures", "application.b");
const applicationBTree = {
id: "application.b",
version: "1.0.0",
path: applicationBPath,
dependencies: [],
builder: {},
_level: 0,