List of small, focused browserify / component bundles.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
test: | |
mocha test/ | |
babel: | |
babel lib/ -d src/ | |
lint: | |
eslint . | |
build: babel test lint |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
function noop() {} | |
grunt.initConfig({ | |
watch: { | |
reload: { | |
files: ['public/**', 'views/**'], | |
tasks: 'reload' | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var path = require('path'); | |
var hogan = require('hogan'); | |
var marked = require('marked'); | |
module.exports = function(grunt) { | |
// Basic grunt task to use along watch task, possibly the reload task | |
// of yeoman server. Designed to work with any given webserver, as | |
// long as the LiveReload extension for your favorite browser is used | |
// (http://feedback.livereload.com/knowledgebase/articles/86242-how-do-i-install-and-use-the-browser-extensions-). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var nopt = require('nopt'), | |
parse = require('url').parse, | |
WebSocket = require('faye-websocket'); | |
// | |
// All based and derived on: http://www.igvita.com/2012/04/09/driving-google-chrome-via-websocket-api | |
// | |
// The remote debugging protocol is... I don't have words right now. | |
// Other than thanks thanks thanks thanks x10e901920 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# A word about this shell script: | |
# | |
# It must work only on systems with a /bin/bash. | |
# | |
# cat readme.md || exit 1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# cucumberjs + zombiejs + grunt | |
# this makes testing easier than ever | |
> [email protected] pretest /Users/mk/Temp/dev/mklabs/node-build-script | |
> git submodule update --init && rm -rf .test && mkdir .test && cp -r test/h5bp/* test/h5bp/.htaccess .test/ | |
> [email protected] test /Users/mk/Temp/dev/mklabs/node-build-script | |
> node test --log && cd test && node ../node_modules/cucumber/bin/cucumber.js |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(exports) { | |
// change app to whatever. | |
var app = exports.app = Object.create(_.extend({}, Backbone.Events, { | |
// map over the backbone api to an EventEmitter like one | |
emit: Backbone.Events.trigger | |
})); | |
// top-level application namespaces | |
app.controllers = {}; |
Got some issue running browserify on windows. Some notes and the corresponding files patched. Not ran the browserify tests (should do) but tested on a rather complex build, working on both win32, osx.
- browserify: lib/wrap.js wrappers/prelude.js
- resolve: index.js
might issue a pull request, this needs tests, I need time (and sleeeeeeeep)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var fs = require('fs'), | |
path = require('path'), | |
url = require('url'), | |
socketio = require('socket.io'), | |
connect = require('connect'), | |
mime = connect.static.mime, | |
// one time-hit, get the file content of the socket.io client side script | |
ioScript = underscore.template(fs.readFileSync(path.join(__dirname, 'util/socket-enable.js'), 'utf8')); | |
// |