How to use @webiny/project-utils - 2 common examples

To help you get started, we’ve selected a few @webiny/project-utils 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 webiny / webiny-js / examples / apps / admin / webiny.js View on Github external
async stateChanged({ env, state }) {
            const envPath = join(__dirname, ".env.json");
            const json = await loadJson(envPath);
            if (!json[env]) {
                json[env] = {};
            }
            Object.assign(json[env], await getStateValues(state, envMap));
            await writeJson(envPath, json);
        }
    }
github webiny / webiny-js / packages / cli / create / template / apps / site / webiny.js View on Github external
async stateChanged({ env, state }) {
            const envPath = join(__dirname, ".env.json");
            const json = await loadJson(envPath);
            if (!json[env]) {
                json[env] = {};
            }
            Object.assign(json[env], await getStateValues(state, envMap));
            await writeJson(envPath, json);
        }
    }

@webiny/project-utils

A collection of utilities for Webiny project.

MIT
Latest version published 1 month ago

Package Health Score

78 / 100
Full package analysis

Popular @webiny/project-utils functions

Similar packages