'use strict';
var Plugin = require('./plugin');
var relativeRequire = require('process-relative-require');
function JavascriptPlugin () {
this.type = 'js';
this._superConstructor.apply(this, arguments);
}
JavascriptPlugin.prototype = Object.create(Plugin.prototype);
JavascriptPlugin.prototype.constructor = JavascriptPlugin;
JavascriptPlugin.prototype._superConstructor = Plugin;
JavascriptPlugin.prototype.toTree = function(tree, inputPath, outputPath, options) {
if (this.name.indexOf('ember-script') !== -1) {
options = options || {};
options.bare = true;
options.srcDir = inputPath;
options.destDir = outputPath;
}
return relativeRequire(this.name).call(null, tree, options);
};
module.exports = JavascriptPlugin;
# |
Change |
User |
Description |
Committed |
|
#1
|
23539 |
jenbottom |
Adding the basic code for ember test appk, created with 'ember new' command |
|
|