UNPKG

@gravityforms/gulp-tasks

Version:
24 lines (20 loc) 831 B
#!/usr/bin/env node const { execShellCommand } = require( './util' ); /* * Generate all package dist files for libraries, react-utils, utils, and components. * This is done on publish of those on a case by case basis when they are published. * This script to generate all is only called by Houston for local dev when linking, or by CI when linking. */ async function init() { await execShellCommand( `node ./src/scripts/libraries-dist.js`, true ); await execShellCommand( `node ./src/scripts/react-utils-dist.js`, true ); await execShellCommand( `node ./src/scripts/utils-dist.js`, true ); await execShellCommand( `node ./src/scripts/components-dist.js`, true ); } ( async () => { try { await init(); } catch ( err ) { console.error( 'An error occurred while generating all package dist files: ', err ); } } )();