How to use the @ui5/builder.types function in @ui5/builder

To help you get started, we’ve selected a few @ui5/builder examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github SAP / ui5-project / lib / projectPreprocessor.js View on Github external
const log = require("@ui5/logger").getLogger("normalizer:projectPreprocessor");
const fs = require("graceful-fs");
const path = require("path");
const {promisify} = require("util");
const readFile = promisify(fs.readFile);
const parseYaml = require("js-yaml").safeLoadAll;
const typeRepository = require("@ui5/builder").types.typeRepository;

class ProjectPreprocessor {
	constructor() {
		this.processedProjects = {};
		this.configShims = {};
		this.collections = {};
		this.appliedExtensions = {};
	}

	/*
		Adapt and enhance the project tree:
			- Replace duplicate projects further away from the root with those closer to the root
			- Add configuration to projects
	*/
	async processTree(tree) {
		const queue = [{

@ui5/builder

UI5 Tooling - Builder

Apache-2.0
Latest version published 3 months ago

Package Health Score

89 / 100
Full package analysis

Popular @ui5/builder functions