cirandas.net

ref: master

public/javascripts/tinymce/tools/tasks/amdlc.js


 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports = function(grunt) {
	grunt.registerMultiTask("amdlc", "Compiles AMD modules to libraries.", function() {
		var config = grunt.config([this.name, this.target]).options;

		config.reporter = {
			level: "debug",

			debug: function(message) {
				grunt.log.debug(message);
			},

			info: function(message) {
				grunt.log.ok(message);
			},

			warning: function(message) {
				grunt.fail.warn(message);
			},

			error: function(message) {
				grunt.log.error(message);
			},

			fatal: function(message) {
				grunt.log.error(message);
			}
		};

		require("amdlc").compile(config);
	});
};