forked from angular-ui/ui-ace
-
Notifications
You must be signed in to change notification settings - Fork 0
/
publish.js
33 lines (26 loc) · 971 Bytes
/
publish.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
/* jshint node:true */
'use strict';
var fs = require('fs');
var path = require('path');
module.exports = function() {
var js_dependencies =[
'bower_components/ace-builds/src-min-noconflict/ace.js',
'bower_components/ace-builds/src-min-noconflict/theme-twilight.js',
'bower_components/ace-builds/src-min-noconflict/mode-markdown.js',
'bower_components/ace-builds/src-min-noconflict/mode-scheme.js',
'bower_components/ace-builds/src-min-noconflict/worker-javascript.js'
];
function putThemInVendorDir (filepath) {
return 'vendor/' + path.basename(filepath);
}
return {
humaName : 'UI.Ace',
repoName : 'ui-ace',
inlineHTML : fs.readFileSync(__dirname + '/demo/demo.html'),
inlineJS : fs.readFileSync(__dirname + '/demo/demo.js'),
css: ['demo/demo.css'],
js : js_dependencies.map(putThemInVendorDir).concat(['dist/ui-ace.min.js']),
tocopy : js_dependencies,
bowerData : { main: './ui-ace.js'}
};
};