<commit_before>/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-fullcalendar',

  // isDevelopingAddon: function() {
  //   return true;
  // },

  options: {
    nodeAssets: {
      'fullcalendar': {
        srcDir: 'dist',
        import: ['fullcalendar.js', 'fullcalendar.css']
      },
      'fullcalendar-scheduler': function() {
        return {
          enabled: this.includeScheduler,
          srcDir: 'dist',
          import: ['scheduler.js', 'scheduler.css']
        }
      }
    }
  },

  included: function(app) {

    // Add scheduler to executable unless configured not to.
    if (!app.options ||
        !app.options.emberFullCalendar ||
        app.options.emberFullCalendar.scheduler === undefined || 
        app.options.emberFullCalendar.scheduler === false) {
        this.includeScheduler = false;
    } else {
      this.includeScheduler = true;
    }


    this._super.included.apply(this, arguments);
  }
};
<commit_msg>Including fullcalendar files only when running outside of fastboot.<commit_after>/* jshint node: true */
'use strict';

module.exports = {
  name: 'ember-fullcalendar',

  // isDevelopingAddon: function() {
  //   return true;
  // },

  options: {
    nodeAssets: {
      'fullcalendar': function() {
        return {
          enabled: !process.env.EMBER_CLI_FASTBOOT,
          srcDir: 'dist',
          import: ['fullcalendar.js', 'fullcalendar.css']
        }
      },
      'fullcalendar-scheduler': function() {
        return {
          enabled: !process.env.EMBER_CLI_FASTBOOT && this.includeScheduler,
          srcDir: 'dist',
          import: ['scheduler.js', 'scheduler.css']
        }
      }
    }
  },

  included: function(app) {

    // Add scheduler to executable unless configured not to.
    if (!app.options ||
        !app.options.emberFullCalendar ||
        app.options.emberFullCalendar.scheduler === undefined || 
        app.options.emberFullCalendar.scheduler === false) {
        this.includeScheduler = false;
    } else {
      this.includeScheduler = true;
    }


    this._super.included.apply(this, arguments);
  }
};

{'fraction_non_alphanumeric': 0.1366838891498356, 'fraction_numerical': 0.0, 'mean_word_length': 2.276923076923077, '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': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1228925', 'n_tokens_mistral': 656, 'n_tokens_neox': 634, 'n_words': 123}