##Basic
A Boolean represents a flag, true
or false
.
Default: false
Nullable: false
var request = require('request'); | |
var chp = require('child_process'); | |
// read the npm proxy settings | |
chp.exec('npm config get proxy', function(error, stdout, stderr){ | |
var options = { | |
// repare our target url | |
'uri': 'http://mimosa-data.herokuapp.com/modules' | |
}; | |
// stdout consists of linefeeds |
Create folders: | |
------------------- | |
apps | |
msysgit | |
node | |
Download Programs: | |
------------------- | |
Msysgit portable (https://code.google.com/p/msysgit/downloads/list) inside msysgit | |
Node binary (http://nodejs.org/download/) --> inside node |
@echo off; | |
start cmd /k "set HOME=%cd%\git\etc&&set PATH=%cd%\node;%cd%\node\node_modules\.bin;%cd%\git\bin;%PATH%;&&set SSH_AUTH_SOCK=%cd%\git\etc\.ssh\agentsock" |
TASKKILL /im "ssh-agent.exe" /F | |
DEL "%SSH_AUTH_SOCK%" /F | |
FOR /F "tokens=1 delims=;" %%r IN ('ssh-agent -a %SSH_AUTH_SOCK% ') DO @(SET %%r >NUL 2>&1) |
$scoopdir = "$env:APPS\scoop" | |
$globaldir = "$env:APPS\scoop" | |
$cachedir = "$scoopdir\cache" # always local | |
# helper functions | |
function coalesce($a, $b) { if($a) { return $a } $b } | |
function format($str, $hash) { | |
$hash.keys | % { set-variable $_ $hash[$_] } | |
$executionContext.invokeCommand.expandString($str) | |
} |
define({ | |
"ERR_LOADING" : "Laden fehlgeschlagen :(", | |
"SIDEPANEL_TITLE" : "eqFTP", | |
"SIDEPANEL_OPENCONNMANGR" : "Öffne Verbindungsmanager", | |
"SIDEPANEL_FILETREE_NAME" : "Name", | |
"SIDEPANEL_FILETREE_SIZE" : "Größe", | |
"SIDEPANEL_FILETREE_TYPE" : "Typ", | |
"SIDEPANEL_FILETREE_MODIFIED" : "Geändert", | |
"SIDEPANEL_CONDISCONNECT" : "Trennen/Verbinden", |
"bower": { | |
"bowerDir": { | |
"clean": false | |
}, | |
"copy": { | |
"enabled": true, | |
"unknownMainFullCopy": false, | |
"mainOverrides": { | |
"open-sans-fontface": [{ | |
'fonts/Bold': 'fonts/vendor/open-sans', |
A dependency loader for multiple files, perfect for folders based on class-type.
It will read file name and use conventions for good naming. Then it will be saved in a cache for later use. Basically, you never have to add or remove files from your requirejs call, its just always there. Thinking about lazy loading, to improve performance.
You will be able to optionally drop some external dependencies, which requirejs will handle for you.
You can just do app.load("adminPanel").extract()
and you will have your AdminView, AdminEditView, AdminTemplate, AdminEditTemplate and anything you have. You could even pass a function what the module loader should initialize (instanciate) and attach.
Think of it like a super easy way to get things done with dependency management and an filetype based structure. All templates together, all models, controllers and such. I rather group them than have a fat module directory. However, that you could also customize changing the loading syntax for the file tree.
/* global requirejs */ | |
'use strict'; | |
var LIVERELOAD_PORT = 35729; | |
var SERVER_PORT = 9000; | |
var lrSnippet = require('connect-livereload')({port: LIVERELOAD_PORT}); | |
var mountFolder = function (connect, dir) { | |
return connect.static(require('path').resolve(dir)); | |
}; | |
// # Globbing |