-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.js
39 lines (29 loc) · 1.74 KB
/
index.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
32
33
34
35
36
37
38
39
/* jshint node: true */
'use strict';
var pickFiles = require('broccoli-static-compiler');
module.exports = {
name: 'ember-cli-tinymce',
included: function(app) {
this._super.included(app);
app.import('bower_components/tinymce/tinymce.min.js', {destDir: 'assets/tinymce'});
app.import('bower_components/tinymce/jquery.tinymce.min.js', {destDir: 'assets/tinymce'});
// app.import('bower_components/tinymce/themes/modern/theme.min.js', {destDir: 'assets/tinymce/themes/modern'});
// app.import('bower_components/tinymce/plugins/image/plugin.min.js', {destDir: 'assets/tinymce/plugins/image'});
// app.import('bower_components/tinymce/plugins/link/plugin.min.js', {destDir: 'assets/tinymce/plugins/link'});
// app.import('bower_components/tinymce/plugins/table/plugin.min.js', {destDir: 'assets/tinymce/plugins/table'});
// //app.import('bower_components/tinymce/skins/lightgray/skin.min.css', {destDir: 'assets/tinymce/skins/lightgray'});
// //app.import('bower_components/tinymce/skins/lightgray/content.min.css', {destDir: 'assets/tinymce/skins/lightgray'});
// app.import('bower_components/tinymce/skins/lightgray/fonts/tinymce.woff', {destDir: 'assets/fonts'});
// app.import('bower_components/tinymce/skins/lightgray/fonts/tinymce.ttf', {destDir: 'assets/fonts'});
},
treeForPublic: function(tree) {
this.ui.writeLine('Including tinymce assets');
var tree = pickFiles('bower_components/tinymce/', {
srcDir: '/',
files: ['**/*.min.js', '**/*.min.css', '**/*.woff', '**/*.ttf'],
destDir: '/tinymce'
});
this.ui.writeLine('...done');
return this._super.treeForPublic.call(this, tree);
},
};