 fse         = require 'fs-extra'
 PLUGIN_NAME = 'gulp-compile-js-html-imports'
 PluginError = gutil.PluginError
+require('colors').setTheme error:['red','bold'] unless 'colors'.error
 
-# Helpers
+# HELPERS
 # =======
 Help =
-	logJson: (json) -> # log pretty json
-		console.log JSON.stringify json, null, '\t'
-
 	inspectFile: (file, sort=false) -> # log vinyl props
 		props = base: null, relative: null, extname: null, stem: null, basename: null, cwd: null, dirname: null, path: null, event: null
 		if sort then Object.keys(props).sort().forEach (key) -> delete props[key]; props[key] = null

		json = JSON.stringify(props, null, '\t').replace(/"/g, "'").replace /(\t)'(\w*)'/g, '$1$2'
		console.log json

	isEmptyObject: (obj) -> # :boolean
		return false unless typeof obj is 'object'
		!!Object.getOwnPropertyNames(obj).length

	hasImports: (obj) -> # :boolean (obj = js file object in HtmlImports)
		return false unless typeof obj is 'object'
		@isEmptyObject obj['imports']


# Regular Expressions
# ===================
Regx =
	htmlImports:


		cb null, file

# EXPORT IT!
# ==========
module.exports = inlineJsHtmlImports