UNPKG

@wep2/cli

Version:

Command line for Wepublish Editor 2

25 lines 744 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.install = void 0; function install(projectName) { console.log('Start Wepublish Installation'); // installing Directus Headless CMS installDirectus(projectName); // todo // copy data structure and import it } exports.install = install; function installDirectus(projectName) { try { if (!projectName) { throw new Error('Missing Project Name!'); } const childProcess = require('child_process'); childProcess .execSync(`npm init directus-project ${projectName}`, { stdio: [0, 1, 2] }); } catch (error) { console.log(error); } } //# sourceMappingURL=install.js.map