<commit_before>/**
 * Run the devserver.
 *
 * IMPORTANT: Configuration should match `dist/browserify.js`!
 */

const budo = require('budo')
const babelify = require('babelify')
const babelifyConfig = require('./babelify-config.js');

budo(null, {
    dir: ['public', '.', 'src'],
    live: true,
    stream: process.stdout,
    port: 9966,
    debug: true,
    browserify: {
        transform: [babelify, babelifyConfig]
    },
});<commit_msg>Fix budo config (with a workaround for now) (#705)<commit_after>/**
 * Run the devserver.
 *
 * IMPORTANT: Configuration should match `dist/browserify.js`!
 */

const budo = require('budo')
const babelify = require('babelify')
const babelifyConfig = require('./babelify-config.js');
const tsify = require('tsify');

budo('src/app.ts:dist/app.js', {
    dir: ['public', '.', 'src'],
    live: true,
    stream: process.stdout,
    port: 9966,
    debug: true,
    //browserify: {  // TODO: See #705
    //    plugin: tsify,
    //    transform: [babelify.configure(babelifyConfig)],
    //},
    browserifyArgs: ['-d', '-p', 'tsify', '-t', '[', 'babelify', '--presets', '[', '@babel/env', ']', '--extensions', '.ts', ']'],
}).on('connect', (ev) => {
    console.log('Server running on %s', ev.uri);
}).on('update', (buffer) => {
    console.log('Bundle update, %d bytes', buffer.length);
});
{'fraction_non_alphanumeric': 0.21139430284857572, 'fraction_numerical': 0.010494752623688156, 'mean_word_length': 3.494949494949495, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '5128361', 'n_tokens_mistral': 477, 'n_tokens_neox': 453, 'n_words': 107}