<commit_before>const path = require('path');
const childProcess = require('child_process');

const root = process.cwd();

/**
 * Runs 'npm install' on the passed directory
 * @param {string} path
 */
function npmInstall(path) {
    childProcess.execSync('npm install', {
        cwd: path,
        env: process.env,
        stdio: 'inherit',
    });
}

console.log('Installing core libraries...');
npmInstall(root);

console.log('Installing generator libraries...');
npmInstall(path.join(root, 'web-gen-core'));

console.log('Installing UI libraries...');
npmInstall(path.join(root, 'web-gen-ui'));

console.log('Ensuring Angular CLI installation...');
childProcess.execSync('npm install -g @angular/cli', {
    cwd: root,
    env: process.env,
    stdio: 'inherit',
});

// console.log('Finished installing required libraries...');
console.log('Building UI...');
childProcess.execSync('ng build --prod --env=prod', {
    cwd: path.join(root, 'web-gen-ui'),
    env: process.env,
    stdio: 'inherit',
});

console.log('Run launch.js');<commit_msg>Updated install script with progress indicators<commit_after>const path = require('path');
const childProcess = require('child_process');

const root = process.cwd();

/**
 * Runs 'npm install' on the passed directory
 * @param {string} path
 */
function npmInstall(path) {
    childProcess.execSync('npm install', {
        cwd: path,
        env: process.env,
        stdio: 'inherit',
    });
}

console.log('[1/5] Installing core libraries...');
npmInstall(root);

console.log('[2/5] Installing generator libraries...');
npmInstall(path.join(root, 'web-gen-core'));

console.log('[3/5] Installing UI libraries...');
npmInstall(path.join(root, 'web-gen-ui'));

console.log('[4/5] Ensuring Angular CLI installation...');
childProcess.execSync('npm install -g @angular/cli', {
    cwd: root,
    env: process.env,
    stdio: 'inherit',
});

// console.log('Finished installing required libraries...');
console.log('[5/5] Building UI...');
childProcess.execSync('ng build --prod --env=prod', {
    cwd: path.join(root, 'web-gen-ui'),
    env: process.env,
    stdio: 'inherit',
});

console.log('Run launch.js');
{'fraction_non_alphanumeric': 0.1865740740740741, 'fraction_numerical': 0.004629629629629629, 'mean_word_length': 3.956422018348624, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2514855', 'n_tokens_mistral': 709, 'n_tokens_neox': 679, 'n_words': 161}