We'll have an array of files to be included in the bundle as shown in this example.
Except we'll add source map info, so browser-pack can inline this into the bundle.
{
"id": "a1b5af78",
"source": "console.log(require('./foo')(5))",
# See http://gist.github.com/180853 for gitutils.ps1. | |
. (Resolve-Path ~/Documents/WindowsPowershell/gitutils.ps1) | |
function prompt { | |
writeUserLocation | |
if (isCurrentDirectoryGitRepository) { | |
writeGitInfo | |
} |
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"> | |
<Grid> | |
<Grid.Resources> | |
<Style BasedOn="{StaticResource {x:Type Button}}" TargetType="{x:Type Button}"> | |
<Setter Property="Background" Value="Blue"/> | |
</Style> | |
</Grid.Resources> | |
<Border | |
HorizontalAlignment="Center" | |
VerticalAlignment="Center" |
function handlebarify(bundle) { | |
var precompile = require('handlebars').precompile; | |
function handlebarsPlugin(body, file) { | |
return 'var Handlebars = require(\'handlebars\');\nmodule.exports = ' + precompile(body) + ';'; | |
} | |
// browserify doesn't allow passing an array of extensions, so we register each separately | |
bundle.register('.handlebars', handlebarsPlugin); | |
bundle.register('.hbs', handlebarsPlugin); | |
} |
We'll have an array of files to be included in the bundle as shown in this example.
Except we'll add source map info, so browser-pack can inline this into the bundle.
{
"id": "a1b5af78",
"source": "console.log(require('./foo')(5))",
Copy of these goals in order to facilitate discussions.
Community driven rating system for nodejs modules on npm in order to help in selecting the right one.
Whith 50k+ modules on npm finding the right module for the problem you have is becoming more tedious than it needs to be. Especially newcomers to nodejs are overwhelmed with the amount of modules to choose from.
valuepack a tool that will help the developers select the right npm module for the job. It is a community driven package rating tool, read more about it's goals.
Approximate Talk Time: 20-30 min
valuepack will consist of:
var term = require('hypernal')(); | |
term.appendTo(document.body); | |
var difflet = require('difflet')({ | |
indent : 2 | |
, comma : 'first' | |
, comment: true | |
}); |
var term = require('hypernal')(); | |
term.appendTo(document.body); | |
var difflet = require('difflet')({ | |
indent : 4 | |
, comma : 'first' | |
, comment: true | |
}); |
Trying to get people's opinions on what they consider more readable, not focusing on comma first or not, but on the fact that the original is tabular and the beautified one removed the whitespace and therefore is not.
Please vote +1 for either original
or beautified
.