<commit_before>const __rollup = require('rollup');
const nodeResolve = require('rollup-plugin-node-resolve');
import { debug } from '../util/log';

export interface RollupOptions {
  moduleName: string,
  entry: string,
  format: string,
  dest: string
}

/**
 * Runs rollup over the given entry file, bundling it up.
 *
 * @param opts
 */
export const rollup = (opts: RollupOptions) => {
  const ROLLUP_GLOBALS = {
    // Angular dependencies
    '@angular/animations':  'ng.animations',
    '@angular/core':        'ng.core',
    '@angular/common':      'ng.common',
    '@angular/forms':       'ng.forms',
    '@angular/http':        'ng.http',
    '@angular/platform-browser':            'ng.platformBrowser',
    '@angular/platform-browser-dynamic':    'ng.platformBrowserDynamic',
    '@angular/platform-browser/animations': 'ng.platformBrowser.animations',
    // RxJS dependencies
    'rxjs/AnonymousSubject':      'Rx',
    'rxjs/AsyncSubject':          'Rx',
    'rxjs/BehaviorSubject':       'Rx',
    'rxjs/Notifiction':           'Rx',
    'rxjs/ObservableInput':       'Rx',
    'rxjs/Observable':            'Rx',
    'rxjs/Observer':              'Rx',
    'rxjs/Scheduler':             'Rx',
    'rxjs/Subject':               'Rx',
    'rxjs/SubjectSubscriber':     'Rx',
    'rxjs/SubscribableOrPromise': 'Rx',
    'rxjs/Subscriber':            'Rx',
    'rxjs/Subscription':          'Rx',
    'rxjs/TeardownLogic':         'Rx',
    'rxjs/add/observable/fromPromise':      'Rx.Observable',
    'rxjs/add/observable/of':               'Rx.Observable',<commit_msg>feat: include `@angular/router` in default rollup opts<commit_after>const __rollup = require('rollup');
const nodeResolve = require('rollup-plugin-node-resolve');
import { debug } from '../util/log';

export interface RollupOptions {
  moduleName: string,
  entry: string,
  format: string,
  dest: string
}

/**
 * Runs rollup over the given entry file, bundling it up.
 *
 * @param opts
 */
export const rollup = (opts: RollupOptions) => {
  const ROLLUP_GLOBALS = {
    // Angular dependencies
    '@angular/animations':  'ng.animations',
    '@angular/core':        'ng.core',
    '@angular/common':      'ng.common',
    '@angular/forms':       'ng.forms',
    '@angular/http':        'ng.http',
    '@angular/platform-browser':            'ng.platformBrowser',
    '@angular/platform-browser-dynamic':    'ng.platformBrowserDynamic',
    '@angular/platform-browser/animations': 'ng.platformBrowser.animations',
    '@angular/router':      'ng.router',
    // RxJS dependencies
    'rxjs/AnonymousSubject':      'Rx',
    'rxjs/AsyncSubject':          'Rx',
    'rxjs/BehaviorSubject':       'Rx',
    'rxjs/Notifiction':           'Rx',
    'rxjs/ObservableInput':       'Rx',
    'rxjs/Observable':            'Rx',
    'rxjs/Observer':              'Rx',
    'rxjs/Scheduler':             'Rx',
    'rxjs/Subject':               'Rx',
    'rxjs/SubjectSubscriber':     'Rx',
    'rxjs/SubscribableOrPromise': 'Rx',
    'rxjs/Subscriber':            'Rx',
    'rxjs/Subscription':          'Rx',
    'rxjs/TeardownLogic':         'Rx',
    'rxjs/add/observable/fromPromise':      'Rx.Observable',
    'rxjs/add/observable/of':               'Rx.Observable',
{'fraction_non_alphanumeric': 0.16204559457794207, 'fraction_numerical': 0.0, 'mean_word_length': 2.421496311907271, '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': '2534470', 'n_tokens_mistral': 1027, 'n_tokens_neox': 1039, 'n_words': 191}