NPM Build Utilities @ 0.3.0-alpha
    Preparing search index...

    Use in Javascript

    Generally, it'll be better to use via command line, but it's possible to use in Javascript as well, primarily through the Project class.

    import {
    bin,

    Project,
    parseParamsCLI,
    } from '@maddimathon/build-utilities';

    const params = parseParamsCLI( { config: 'path/to/build.config.js' } );

    const project = new Project( await bin.getConfig( params ), params );

    await project.run( 'compile' );
    import {
    type Config,
    internal,

    Project,
    ProjectConfig,

    parseParamsCLI,
    } from '@maddimathon/build-utilities';

    const partialConfig: Config = {
    title: 'Example Project Title',
    launchYear: '2025',
    };

    const config = new ProjectConfig( internal.internalConfig( partialConfig ) );

    const project = new Project( config, parseParamsCLI( {} ) );

    await project.run( 'compile' );