forked from kristianmandrup/ember-cli-emberscript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
26 lines (19 loc) · 713 Bytes
/
index.js
File metadata and controls
26 lines (19 loc) · 713 Bytes
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
'use strict';
var path = require('path');
var EmberPreprocessor = require('./lib/coffee-preprocessor');
function EmberscriptAddon(project) {
this._project = project;
this.name = 'Ember CLI Emberscript Addon';
}
EmberscriptAddon.prototype.blueprintsPath = function() {
return path.join(__dirname, 'blueprints');
};
EmberscriptAddon.prototype.included = function(app) {
this.app = app;
var plugin = new EmberPreprocessor(this.app.options.coffeeOptions);
this.app.registry.add('js', plugin);
};
// This is just here because it was required in ember-cli v0.0.37.
// To be removed when compatibility breaks.
EmberscriptAddon.prototype.treeFor = function() {};
module.exports = EmberscriptAddon;