Imagine this is your module…
define(['Utils/css'], function(css){
console.log(css);
});| var mongoose = require('mongoose'); | |
| var Schema = mongoose.Schema; | |
| var assert = require('assert') | |
| console.log('\n==========='); | |
| console.log(' mongoose version: %s', mongoose.version); | |
| console.log('========\n\n'); | |
| var dbname = 'testing_gg-139a368323237477'; |
| $ mkdir expressWithLess && cd expressWithLess | |
| $ express --css less-middleware && npm install | |
| $ mv public/stylesheets/ public/styles | |
| $ nano public/styles/style.less | |
| @color: #00B7FF; | |
| body { padding: 200px; font: 18px "Lucida Grande", Helvetica, Arial, sans-serif; } |
Imagine this is your module…
define(['Utils/css'], function(css){
console.log(css);
});| (function() { | |
| var buildMap = {}; | |
| /* RequireJS Use Plugin v0.2.0 | |
| * Copyright 2012, Tim Branyen (@tbranyen) | |
| * use.js may be freely distributed under the MIT license. | |
| */ | |
| define({ | |
| version: "0.2.0", |
| [alias] | |
| man = help | |
| unadd = reset HEAD | |
| #co = checkout | |
| co = "!f(){ git checkout \"$@\" && git sup; }; f" | |
| feature = "!git reset HEAD && git checkout -b feature/\"$1\" && git commit --allow-empty -m \"Created feature branch $1\" && git push --set-upstream origin feature/\"$1\" && echo Branch feature/$1 published to origin" | |
| cp = cherry-pick | |
| sma = submodule add | |
| st = status | |
| br = branch |
| [alias] | |
| edit-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; $EDITOR `f`" | |
| add-unmerged = "!f() { git ls-files --unmerged | cut -f2 | sort -u ; }; git add `f`" | |
| lc = log ORIG_HEAD.. --stat --no-merges | |
| smash = merge --no-commit --log | |
| eat = branch -M | |
| prune-all = !git remote | xargs -n 1 git remote prune | |
| whois = "!sh -c 'git log -i --pretty=\"format:%an <%ae>\" --author=\"$1\" | sort -u' -" | |
| whatis = show -s --pretty='tformat:%h (%s, %ad)' --date=short |