made with esnextbin
|====\____/====/============\=/===========|================|
| | ____ |/ ____//| |
| | | | | //_____|_____| |_____|
| |\==/| | | | |______ \\ | |
| | \/ | | \==/ | \\/ // | |
|____| |____|____________|___________// |____|
This file contains 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 PerfTime = require('perf-time'); | |
//var _ = require('underscore'); | |
var Perf = module.exports = function() { | |
this.startTime = null; | |
// this.t = new PerfTime(); | |
this.t = { | |
get: function() { | |
return Date.now(); | |
} |
This file contains 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
({ | |
baseUrl: './src/', | |
dir: 'build', | |
include: ['main'], | |
logLevel: 0, | |
mainConfigFile: './src/main.js', | |
name: 'main', | |
wrap: false, | |
optimize: 'none', | |
preserveLicenseComments: false |
This file contains 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 when = require('when'); | |
var fs = require('fs'); | |
var concat = {}; | |
concat.each = function(src, dest, options) { | |
if (!options) { options = {}; } | |
if (!options.separator) { options.separator = ''; } | |
return when.reduce(src, function(output, srcpath) { | |
var dfd = when.defer(); |
There are a couple of things that bug me about RequireJS's data-main method of single-script loading:
<script src="js/requirejs/require.js" data-main="app/main.js"></script>
- the built file (bundle) must be named "require.js". WAT.
- it just seems backwards.
data-main
does not follow w3c recommendations since it's not name-spaced.
This file contains 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
@media only screen and (min-width: 320px) { | |
/* Small screen, non-retina */ | |
} | |
@media | |
only screen and (-webkit-min-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( min--moz-device-pixel-ratio: 2) and (min-width: 320px), | |
only screen and ( -o-min-device-pixel-ratio: 2/1) and (min-width: 320px), |
This file contains 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
define(function() { | |
String.prototype.toHulkCase = function(str) { | |
return 'HULK SMASH PUNY ' + str.toUpperCase() + ' ARRRRRRRRRRRRR'; | |
} | |
}); |
This file contains 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
/** | |
* @license Copyright (c) 2010-2011 Brian Cavalier | |
* LICENSE: see the LICENSE.txt file. If file is missing, this file is subject | |
* to the MIT License at: http://www.opensource.org/licenses/mit-license.php. | |
*/ | |
/** | |
* Builder plugin for r.js | |
*/ | |
define([ 'wire/base' ], function() { |
This file contains 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
define({ | |
plugins: [ | |
{ module: "wire/debug" } | |
], | |
somethingFromTheParent: { $ref: 'somethingFromTheParent' } | |
}); |
NewerOlder