/**
 * umd
 * ===
 *
 * Wraps the library into an universal module definition (AMD + CommonJS + Global).
 *
 * Link: https://github.com/bebraw/grunt-umd
 */

'use strict';

module.exports = function (grunt) {
  return {
    dist: {
      src: '<%= pkg.config.src %>/scripts/chartist-plugin-axistitle.js',
      dest: '<%= pkg.config.dist %>/chartist-plugin-axistitle.js',
      objectToExport: 'Chartist.plugins.ctAxisTitle',
      indent: '  '
    }
  };
};

/**
 * umd
 * ===
 *
 * Wraps the library into an universal module definition (AMD + CommonJS + Global).
 *
 * Link: https://github.com/bebraw/grunt-umd
 */

'use strict';

module.exports = function (grunt) {
  return {
    dist: {
      src: '<%= pkg.config.src %>/scripts/chartist-plugin-axistitle.js',
      dest: '<%= pkg.config.dist %>/chartist-plugin-axistitle.js',
      objectToExport: 'Chartist.plugins.ctAxisTitle',
      deps: {
        default: ['Chartist'],
        amd: ['chartist'],
        cjs: ['chartist'],
        global: ['Chartist']
      },
      indent: '  '
    }
  };
};

Add Chartist as a dependency
Add Chartist as a dependency