View main.md

A Mac Application is structured as a bundle. Assume you have a Hello World application in Objective-C, the most "by-hand" way to build the bundle would be so:

Code:

// Copied from: http://macosx-programming.blogspot.de/2011/09/simple-gui-hello-world-using-cocoa.html
#include <Cocoa/Cocoa.h>

int main(int argc, const char** argv)
{
 NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
View pars.c
#include <stdio.h>
#include <string.h>
/**
* @author: Jan P. B.
* Purpose: Count parentheses in a string.
* Used to count capture groups for SLRE - and as string practice for Jan. :)
*
* @param {char*} c : Buffer
* @param {int} len : Buffer length
View brokerController.js
module.exports = function Broker(broker) {
// Do your Broker setup...
}
View example.md

This is heading 1

This is heading 2

This is heading 3

In the following, I will demonstrate some Markdown stuff.

I will assume a defacto default parser and transformer, so the following rules apply:

  • Full line-breaks need a <br> tag.
  • Opening a new paragraph requires two newlines (enter-enter)
View stats.txt
Hash: 23b1aa8e3e31f66d92f7
Version: webpack 1.12.9
Time: 1780ms
Asset Size Chunks Chunk Names
bundle.js 84.5 kB 0 [emitted] main
chunk {0} bundle.js (main) 225 kB [rendered]
> main [0] ./demo.php
[22] /Users/Ingwie/Work/~/util/support/isBufferBrowser.js 203 bytes {0} [built]
cjs require ./support/isBuffer [20] /Users/Ingwie/Work/~/util/util.js 526:19-48
[37] (webpack)/buildin/module.js 251 bytes {0} [built]
View 01-how-to-use.md
  • Clone the gist.
  • Run: npm install ejs-compiled-loader
  • Run: webpack --config 02-webpack.config.js
  • Watch the magic happen.

This should split into two output JS files. One has the code fromt he entry, the other has the widget. Its loaded async.

View main.css
/*! ________ ___________ ________
`MMMMMMMb.`MM`MMMMMMMb. `MMMMMMMb.
MM `Mb MM MM `Mb MM `Mb
MM MM MM MM MM MM MM ____
MM .M9 MM MM MM MM MM 6MMMMb
MMMMMMM( MM MM .M9 MM MM MM' `Mb
MM `Mb MM MMMMMMM9' MM MM MM
MM MM MM MM \M\ MM MM .M9
MM MM MM MM \M\ MM MM MMMM
MM .M9 MM MM \M\ MM .M9 `Mb
View WebPack plugin-loader concept.md

WebPack+Uniter

During the processing of any .php OR .uniter.php file, the first-found composer.lock file will be loaded. It will be used to create a map of namespaces and files, allowing us to emulate the autoloader during the static analysis.

To track dependencies:

  • Look for use statements.
  • Look for new statements.

For a brief example, consider the following:

View main.js
webpackJsonp([0,1],[
/* 0 */
/***/ function(module, exports, __webpack_require__) {
__webpack_require__(1);
__webpack_require__(2);
__webpack_require__(3);
console.log("main.js");