kopia lustrzana https://github.com/c9/core
add smartface plugins and update smartface client config file
rodzic
b75d137b4e
commit
a1c088e4eb
|
@ -19,6 +19,7 @@ define(function(require, exports, module) {
|
||||||
|
|
||||||
var whitelist = options.whitelist;
|
var whitelist = options.whitelist;
|
||||||
var blacklist = options.blacklist;
|
var blacklist = options.blacklist;
|
||||||
|
var externalPlugins = options.externalPlugins || [];
|
||||||
|
|
||||||
/***** Initialization *****/
|
/***** Initialization *****/
|
||||||
|
|
||||||
|
@ -81,6 +82,13 @@ define(function(require, exports, module) {
|
||||||
mount: "/lib/ace",
|
mount: "/lib/ace",
|
||||||
rjs: requirePaths
|
rjs: requirePaths
|
||||||
}]);
|
}]);
|
||||||
|
|
||||||
|
statics.addStatics(externalPlugins.map(function(plugin) {
|
||||||
|
return {
|
||||||
|
path: __dirname + "/../../node_modules/" + plugin,
|
||||||
|
mount: "/plugins/" + plugin
|
||||||
|
};
|
||||||
|
}));
|
||||||
|
|
||||||
statics.addStatics(fs.readdirSync(__dirname + "/../")
|
statics.addStatics(fs.readdirSync(__dirname + "/../")
|
||||||
.filter(function(path) {
|
.filter(function(path) {
|
||||||
|
|
Ładowanie…
Reference in New Issue