@coderebus/react-archetype
Version:
React-archetype is a cli tool (or a generator) that will generate apps based on the rendering pattern (CSR,SSR, SSG, ISR etc) of your choice.
31 lines (30 loc) • 2.05 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.configTemplatePath = exports.sourcePackagesPath = exports.storybookPath = exports.srcTemplatePath = exports.essentialsTemplatePath = exports.tempDirPath = exports.commonDirPath = exports.baseTemplatePath = exports.reactTemplatePath = exports.nextTemplatePath = exports.templatesPath = void 0;
const tslib_1 = require("tslib");
const path_1 = tslib_1.__importDefault(require("path"));
const constants_1 = require("./constants");
const { TEMPLATES_DIR, NEXT_DIR, BASE_DIR, REACT_DIR, COMMON_DIR, TEMP_DIR, ESSENTIALS_DIR, SRC_DIR, STORYBOOK_DIR, } = constants_1.sourcePathContants;
const { PACKAGES_DIR, CONFIG_DIR } = constants_1.appConstants;
const templatesPath = path_1.default.join(__dirname, '..', TEMPLATES_DIR);
exports.templatesPath = templatesPath;
const nextTemplatePath = path_1.default.join(templatesPath, NEXT_DIR);
exports.nextTemplatePath = nextTemplatePath;
const reactTemplatePath = path_1.default.join(templatesPath, REACT_DIR);
exports.reactTemplatePath = reactTemplatePath;
const baseTemplatePath = path_1.default.join(nextTemplatePath, BASE_DIR);
exports.baseTemplatePath = baseTemplatePath;
const commonDirPath = path_1.default.join(templatesPath, COMMON_DIR);
exports.commonDirPath = commonDirPath;
const tempDirPath = path_1.default.join(commonDirPath, TEMP_DIR);
exports.tempDirPath = tempDirPath;
const essentialsTemplatePath = path_1.default.join(commonDirPath, ESSENTIALS_DIR);
exports.essentialsTemplatePath = essentialsTemplatePath;
const srcTemplatePath = path_1.default.join(commonDirPath, SRC_DIR);
exports.srcTemplatePath = srcTemplatePath;
const storybookPath = path_1.default.join(commonDirPath, STORYBOOK_DIR);
exports.storybookPath = storybookPath;
const sourcePackagesPath = path_1.default.join(commonDirPath, PACKAGES_DIR);
exports.sourcePackagesPath = sourcePackagesPath;
const configTemplatePath = path_1.default.join(commonDirPath, CONFIG_DIR);
exports.configTemplatePath = configTemplatePath;