UNPKG

@pega/constellation-dx-components-build-utils

Version:

This tool uses a 'v3' approach to group components in a library, create a component map, employ webpack, and load the library like Pega-generated components, constellation app-static.

53 lines (52 loc) 1.95 kB
const path = require('path'); // CONSTANT module.exports = { 'PATH_SEPERATER' : path.sep, 'START_DELIMETER': '/* START */', 'END_DELIMETER': '/* END */', 'COMPONENT_LIST_FILE_NAME':'component-list.json', 'COMPONENTS_DIR' : 'components', 'COMPONENT_LIST_FILE_NAME_OUTPUT':'component-list.js', 'COMPONENT_CONFIG_FILE_NAME':'config.json', 'ENTRY_POINT_FILES':[ 'index.js', 'index.jsx', 'index.tsx', 'index.ts' ], 'ENTRY_POINT_FILE':'index.js', 'CONTENT_ENTRY_POINT_FILE' : "import './component-list.js'; /* eslint-disable camelcase */ if (window?.__webpack_nonce__) { __webpack_nonce__ = window.__webpack_nonce__; }", 'CURRENT_WORKING_DIR': process.cwd(), 'COLORWHEEL': ['cyan', 'magenta', 'blue', 'yellow', 'green', 'red'], 'ERROR_MESSAGE':{ 'DIR_NOT_FOUND':'Directory not found.' }, 'NODE_MODULES' : 'node_modules', 'COSMOS_PKG_PATTERN' : '@pega/cosmos-', 'STATIC_BUILDINFO' : 'buildinfo.json', 'C11N_KEY_PEGA_DEP' : 'constellationui-pega-static-dependencies', 'MANIFEST' : 'manifest.json', 'STATS' : 'stats.json', 'UTILS':'utils.js', 'PROJECT_ROOT': 'src', 'BUILD_TOOL_LIB_PATH': path.join(process.cwd(), 'node_modules', '@pega', 'constellation-dx-components-build-utils', 'lib'), 'BUILD_TOOL_ROOT_PATH': path.join(process.cwd(), 'node_modules', '@pega', 'constellation-dx-components-build-utils'), 'ENDPOINTURL': 'v100/componentlib', 'FETCH_ENDPOINT_URL': 'v100/componentlib/list', 'DELETE_ENDPOINT_URL': 'v100/componentlib', 'APPSTATICURL': '', 'B2STOKEN': '', 'TOKEN_PATH': 'node_modules/@pega/custom-dx-components/.access_token', 'QUESTIONS': { 'DELETE_LIB_OR_SPECIFIC_VERSION': [ { name: 'Delete specific dev version from library?', value: 'delete_version' }, { name: 'Delete entire library?', value: 'delete_library' } ] }, };