On Github moszeed / windowsWebDev2014
@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://chocolatey.org/install.ps1'))" && SET PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin
choco search [package name]
choco install [package name] || cinst [package name]
choco list -lo
cinst Cmder cinst dropbox cinst SublimeText3 cinst nodist -Pre cinst avirafreeantivirus
cinst chocolateygui
Nodejs module functions
(function() { var ClassName = {}; ClassName.vMain = Backbone.View.extend({ initialize : function() { } }); window.ClassName = ClassName; })();
(function() { var $ = require('jquery'); var Backbone = require('backbone'); Backbone.$ = $; var ClassName = module.exports; ClassName.vMain = Backbone.View.extend({ initialize : function() { } }); })();
npm install -g browserify
browserify ./client/js/app.js -o ./dist/js/app.js
npm install grunt-browserify --save-dev
libarys : { src : [], dest : './dist/js/libarys.js', options : { require : [ 'backbone', 'underscore', 'jquery', './client/scripts/libs/backbone-template.js:backbone-template', './client/scripts/libs/helper-functions.js:helper' ] } }
module.exports = function(grunt) { require('load-grunt-config')(grunt); };