UNPKG

@nx/remix

Version:

The Remix plugin for Nx contains executors and generators for managing Remix applications and libraries within an Nx workspace. It provides: - Integration with libraries such as Vitest, Jest, Playwright, Cypress, and Storybook. - Generators for applica

21 lines (20 loc) 685 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.REMIX_PROPERTY_MAPPINGS = void 0; exports.getConfigFilePath = getConfigFilePath; const devkit_1 = require("@nx/devkit"); exports.REMIX_PROPERTY_MAPPINGS = { sourcemap: 'sourcemap', devServerPort: 'port', command: 'command', manual: 'manual', tlsKey: 'tls-key', tlsCert: 'tls-cert', }; function getConfigFilePath(tree, root) { return [ (0, devkit_1.joinPathFragments)(root, `remix.config.js`), (0, devkit_1.joinPathFragments)(root, `remix.config.cjs`), (0, devkit_1.joinPathFragments)(root, `remix.config.mjs`), ].find((f) => tree.exists(f)); }