How to use the bootstrap.loadExtensions function in bootstrap

To help you get started, we’ve selected a few bootstrap examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github emmetio / emmet / plugins / npp / bootstrap.js View on Github external
// get keymap
	var keymap = bootstrap.parseJSON(file.read(file.createPath(coreDir, 'keymap.json')));
	
	// load extensions
	var fso = new ActiveXObject("Scripting.FileSystemObject");
	if (fso.FolderExists(extensionsDir)) {
		var fileList = [];
		var extensionFiles = fso.GetFolder(extensionsDir).Files;
		
		var fileEnum = new Enumerator(extensionFiles);
		for (; !fileEnum.atEnd(); fileEnum.moveNext()) {
			fileList.push(fileEnum.item().Path);
		}
		
		bootstrap.loadExtensions(fileList);
	}
	
	// more info http://msdn.microsoft.com/en-us/library/dd375731%28VS.85%29.aspx
	var vkeys = {
		VK_LBUTTON: 0x01,
		VK_RBUTTON: 0x02,
		VK_CANCEL: 0x03,
		VK_MBUTTON: 0x04,
		VK_BACK: 0x08,
		VK_TAB: 0x09,
		VK_CLEAR: 0x0C,
		VK_RETURN: 0x0D,
		VK_SHIFT: 0x10,
		VK_CONTROL: 0x11,
		VK_MENU: 0x12,
		VK_PAUSE: 0x13,
github sergeche / eclipse-zencoding / src / io / emmet / java-wrapper.js View on Github external
function javaLoadExtensions(payload) {
	require('bootstrap').loadExtensions(strToJSON(payload));
}
github emmetio / emmet / plugins / komodo / content / js / controller.js View on Github external
var extPath = require('file').createPath(DirIO.get('Home').path, 'emmet', function(extPath) {
			var rootDir = FileIO.open(extPath);
			
			if (rootDir.exists() && rootDir.isDirectory()) {
				var extFiles = _.reject(DirIO.read(rootDir, true), function(f) {
					return f.isDirectory();
				});
				
				extFiles = _.map(extFiles, function(f) {
					return FileIO.path(f);
				});
				
				require('bootstrap').loadExtensions(extFiles);
			}
		});
github emmetio / Emmet.sugar / Contents / Resources / objc-zeneditor-wrap.js View on Github external
function objcLoadExtensions(fileList) {
	var bs = require('bootstrap');
	fileList = bs.parseJSON(objcToString(fileList));
	require('bootstrap').loadExtensions(fileList);
}