<commit_before>module.exports = function(grunt) {

    var version = 0.1;

    var babel = require('rollup-plugin-babel');
	var exposedFiles = ['engine/Story.js'];

    // Project configuration.
    grunt.initConfig( {
        pkg: grunt.file.readJSON('package.json'),
        watch: {
            files: ['engine/*.js'],
            tasks: ['rollup:cjs', 'rollup:iife']
        },
        rollup: {
            options: {
                plugins: [
                    babel({ exclude: 'node_modules/**' }),
                ],
                moduleId: 'inkjs',
                moduleName: 'inkjs',
            },
//			amd: {
//                options : { format: 'amd' },
//                dest: 'dist/ink.amd.js',
//                src: exposedFiles
//            },
            cjs: {
                options : { format: 'cjs' },
                dest: 'dist/ink.cjs.js',
                src: exposedFiles
            },
			iife: {
                options : { format: 'iife' },
                dest: 'dist/ink.iife.js',
                src: exposedFiles
            },<commit_msg>Build amd & umd files<commit_after>module.exports = function(grunt) {

    var version = 0.1;

    var babel = require('rollup-plugin-babel');
	var exposedFiles = ['engine/Story.js'];

    // Project configuration.
    grunt.initConfig( {
        pkg: grunt.file.readJSON('package.json'),
        watch: {
            files: ['engine/*.js'],
            tasks: ['rollup:cjs', 'rollup:iife']
        },
        rollup: {
            options: {
                plugins: [
                    babel({ exclude: 'node_modules/**' }),
                ],
                moduleId: 'inkjs',
                moduleName: 'inkjs',
            },
			amd: {
                options : { format: 'amd' },
                dest: 'dist/ink.amd.js',
                src: exposedFiles
            },
			umd: {
                options : { format: 'umd' },
                dest: 'dist/ink.umd.js',
                src: exposedFiles
            },
            cjs: {
                options : { format: 'cjs' },
                dest: 'dist/ink.cjs.js',
                src: exposedFiles
            },
			iife: {
                options : { format: 'iife' },
                dest: 'dist/ink.iife.js',
                src: exposedFiles
            },
{'fraction_non_alphanumeric': 0.14378518839324383, 'fraction_numerical': 0.0017323516673884798, 'mean_word_length': 1.1428571428571428, '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': '6832485', 'n_tokens_mistral': 700, 'n_tokens_neox': 645, 'n_words': 123}