"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const defintions_1 = require("./defintions");
class PWAHelper {
    constructor(tree) {
        this.tree = tree;
    }
    get manifest() {
        if (!(this.tree.exists(defintions_1.PWA_MANIFEST))) {
            return undefined;
        }
        return JSON.parse(this.tree.read(defintions_1.PWA_MANIFEST).toString());
    }
    iconPath(icon) {
        return `src/${icon.src}`;
    }
}
exports.PWAHelper = PWAHelper;
//# sourceMappingURL=pwa.js.map