This commit is contained in:
oitsjustjose 2017-02-26 17:06:42 -05:00
commit 6b60015c02
9588 changed files with 1149251 additions and 49 deletions

BIN
img/persistent_bits/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 202 KiB

BIN
img/persistent_bits/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 KiB

BIN
img/persistent_bits/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 MiB

BIN
img/persistent_bits/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 954 KiB

BIN
img/pulver/1 copy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 73 KiB

BIN
img/pulver/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

BIN
img/tinkers_addons/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
img/tinkers_addons/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
img/tinkers_addons/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

BIN
img/tinkers_addons/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

BIN
img/tinkers_addons/5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
img/tinkers_addons/6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 704 KiB

BIN
img/tinkers_addons/7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 756 KiB

View file

@ -3,40 +3,85 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no, minimal-ui">
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="icon" href="img/favicon.ico">
<title>oitsjustjose's mods</title>
<link rel="stylesheet" type="text/css" href="semantic/src/semantic.min.css">
<link rel="stylesheet" type="text/css" href="semantic/out/semantic.min.css">
<link rel="stylesheet" type="text/css" href="mods.css">
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<script src="semantic/src/semantic.min.js"></script>
<script src="semantic/out/semantic.min.js"></script>
<script src="mods.js"></script>
</head>
<body>
<!--This is all stuff for the menubar-->
<div class="ui blue fixed inverted menu">
<!-- Following Menu -->
<div class="ui large inverted teal top fixed hidden menu">
<div class="ui container">
<a href="https://oitsjustjose.github.io/Mods/" class="header item"><img class="logo" src="img/logo.png">General Info</a>
<a href="https://oitsjustjose.github.io/Mods/" class="header item">Home</a>
<a href="https://oitsjustjose.github.io/V-Tweaks-Online" class="item">V-Tweaks</a>
<a href="persistent_bits.html" class="item">Persistent Bits</a>
<a href="pulver.html" class="item">Pulver</a>
<a href="tinkers_addons.html" class="item">Tinkers Addons</a>
<a href="https://github.com/oitsjustjose/" target="_blank" class="item"><i class="github alternate icon"></i> GitHub</a>
<div class="right menu">
<a href="https://github.com/oitsjustjose/" target="_blank" class="item"><i class="github alternate icon"></i></a>
<a href="https://www.youtube.com/channel/UCaau77RpFMoyaHe1vk7Caqw" target="_blank" class="item"><i class="youtube play icon"></i></a>
<a href="http://reddit.com/u/oitsjustjose" target="_blank" class="item"><i class="reddit icon"></i></a>
</div>
</div>
</div>
<div id="footer">
<div class="ui inverted vertical segment">
<div class="ui center aligned container">
<div class="ui horizontal inverted small divided link list">
<a class="item" href="mailto:stovallj1995@gmail.com"><i class="mail icon"></i> Contact</a>
<a class="item" href="http://github.com/oitsjustjose/Mods"><i class="code icon"></i> Site Source</a>
<!--Stuff goes below:-->
<div class="pusher">
<div class="ui inverted vertical masthead center aligned segment">
<div class="ui container">
<div class="ui large secondary inverted pointing menu">
<a href="https://oitsjustjose.github.io/Mods/" class="header item">Home</a>
<a href="https://oitsjustjose.github.io/V-Tweaks-Online" class="item">V-Tweaks</a>
<a href="persistent_bits.html" class="item">Persistent Bits</a>
<a href="pulver.html" class="item">Pulver</a>
<a href="tinkers_addons.html" class="item">Tinkers Addons</a>
<div class="right menu">
<a href="https://github.com/oitsjustjose/" target="_blank" class="item"><i class="github alternate icon"></i></a>
<a href="https://www.youtube.com/channel/UCaau77RpFMoyaHe1vk7Caqw" target="_blank" class="item"><i class="youtube play icon"></i></a>
<a href="http://reddit.com/u/oitsjustjose" target="_blank" class="item"><i class="reddit icon"></i></a>
</div>
</div>
</div>
<div class="ui text container">
<h1 class="ui inverted header">oitsjustjose's mods</h1>
<h2>Small but powerful!</h2>
</div>
</div>
<div class="ui vertical stripe quote segment">
<div class="ui equal width stackable internally celled grid">
<div class="center aligned row">
<div class="column">
<h3>ASM-Free</h3>
<p>A clean, Access Transformer-Free codebase!</p>
</div>
<div class="column">
<h3>Licensed under GPL</h3>
<p>Please! If my code teaches you something I'm thrilled!</p>
</div>
</div>
</div>
</div>
<div class="ui vertical stripe segment">
<div class="ui text container">
<h3 class="ui header"><i class="database icon"></i> Hosted on Curse!</h3>
<p>For ease of Curse modpack creation, of course!! Since my mods are all licensed under the General Public License (GPL), you're permitted to use them on <i>any</i> pack platform as long as you abide by the license!</p>
<a href="https://minecraft.curseforge.com/members/oitsjustjose" target="_blank" class="ui large button">CurseForge Profile</a>
<h3 class="ui header"><i class="talk outline icon"></i>Looking for Suggestions!</h3>
<p>I'm terrible at coming up with full ideas. If you give me the start of an idea, I'll probably run off with it for miles of new sub-ideas though! Any suggestions for any of my mods are always welcome!</p>
<a href="http://reddit.com/message/compose?to=oitsjustjose&subject=Mod+Idea!" target="_blank" class="ui large button">Message Me!</a>
</div>
</div>
</div>
</body>

109
mods.css
View file

@ -1,33 +1,100 @@
body {
background-color: #FFFFFF;
}
.ui.menu .item img.logo {
margin-right: 1.5em;
}
.main.container {
margin-top: 3em;
}
.wireframe {
margin-top: 2em;
.hidden.menu {
display: none;
}
.ui.footer.segment {
margin: 5em 0em 0em;
.masthead.segment {
min-height: 700px;
padding: 1em 0em;
}
.masthead .logo.item img {
margin-right: 1em;
}
.masthead .ui.menu .ui.button {
margin-left: 0.5em;
}
.masthead h1.ui.header {
margin-top: 3em;
margin-bottom: 0em;
font-size: 4em;
font-weight: normal;
}
.masthead h2 {
font-size: 1.7em;
font-weight: normal;
}
.ui.vertical.stripe {
padding: 8em 0em;
}
.ui.vertical.stripe h3 {
font-size: 2em;
}
.ui.vertical.stripe .button+h3, .ui.vertical.stripe p+h3 {
margin-top: 3em;
}
.ui.vertical.stripe .floated.image {
clear: both;
}
.ui.vertical.stripe p {
font-size: 1.33em;
}
.ui.vertical.stripe .horizontal.divider {
margin: 3em 0em;
}
.quote.stripe.segment {
padding: 0em;
}
.quote.stripe.segment .grid .column {
padding-top: 5em;
padding-bottom: 5em;
}
.footer.segment {
padding: 5em 0em;
}
#footer {
position: absolute;
right: 0;
bottom: 0;
left: 0;
text-align: center;
.secondary.pointing.menu .toc.item {
display: none;
}
.ui.bottom.attached.segment ul {
text-align: left;
@media only screen and (max-width: 700px) {
.ui.fixed.menu {
display: none !important;
}
.secondary.pointing.menu .item, .secondary.pointing.menu .menu {
display: none;
}
.secondary.pointing.menu .toc.item {
display: block;
}
.masthead.segment {
min-height: 350px;
}
.masthead h1.ui.header {
font-size: 2em;
margin-top: 1.5em;
}
.masthead h2 {
margin-top: 0.5em;
font-size: 1.5em;
}
}
a {
cursor: pointer;
}

42
mods.js
View file

@ -1,25 +1,35 @@
$(document)
.ready(function() {
$('.masthead')
.visibility({
once: false,
onBottomPassed: function() {
$('.fixed.menu').transition('fade in');
},
onBottomPassedReverse: function() {
$('.fixed.menu').transition('fade out');
}
});
$('.ui.sidebar')
.sidebar('attach events', '.toc.item');
});
$(function() {
$('a.create-a-thon').click(function() {
$('.ui.modal.create-a-thon').modal('show');
moveDown();
$('a.tinkersaddons_bonus').click(function() {
$('.ui.modal.tinkersaddons_bonus').modal('show');
})
$('a.fantastic_five').click(function() {
$('.ui.modal.fantastic_five').modal('show');
moveDown();
$('a.tinkersaddons_amelioration').click(function() {
$('.ui.modal.tinkersaddons_amelioration').modal('show');
})
$('a.nissan').click(function() {
$('.ui.modal.nissan').modal('show');
moveDown();
$('a.persistentbits_autoload').click(function() {
$('.ui.modal.persistentbits_autoload').modal('show');
})
$('a.modding').click(function() {
$('.ui.modal.modding').modal('show');
moveDown();
$('a.persistentbits_indicator').click(function() {
$('.ui.modal.persistentbits_indicator').modal('show');
})
});
function moveDown() {
footer.style.bottom = (footer.style.bottom-14)+'px';
}

1
node_modules/.bin/atob generated vendored Symbolic link
View file

@ -0,0 +1 @@
../atob/bin/atob.js

1
node_modules/.bin/browserslist generated vendored Symbolic link
View file

@ -0,0 +1 @@
../browserslist/cli.js

1
node_modules/.bin/cdl generated vendored Symbolic link
View file

@ -0,0 +1 @@
../cardinal/bin/cdl.js

1
node_modules/.bin/css-beautify generated vendored Symbolic link
View file

@ -0,0 +1 @@
../js-beautify/js/bin/css-beautify.js

1
node_modules/.bin/detect-indent generated vendored Symbolic link
View file

@ -0,0 +1 @@
../detect-indent/cli.js

1
node_modules/.bin/errno generated vendored Symbolic link
View file

@ -0,0 +1 @@
../errno/cli.js

1
node_modules/.bin/esparse generated vendored Symbolic link
View file

@ -0,0 +1 @@
../esprima/bin/esparse.js

1
node_modules/.bin/esvalidate generated vendored Symbolic link
View file

@ -0,0 +1 @@
../esprima/bin/esvalidate.js

1
node_modules/.bin/findup generated vendored Symbolic link
View file

@ -0,0 +1 @@
../findup/bin/findup.js

1
node_modules/.bin/gulp generated vendored Symbolic link
View file

@ -0,0 +1 @@
../gulp/bin/gulp.js

1
node_modules/.bin/har-validator generated vendored Symbolic link
View file

@ -0,0 +1 @@
../har-validator/bin/har-validator

1
node_modules/.bin/html-beautify generated vendored Symbolic link
View file

@ -0,0 +1 @@
../js-beautify/js/bin/html-beautify.js

1
node_modules/.bin/image-size generated vendored Symbolic link
View file

@ -0,0 +1 @@
../image-size/bin/image-size.js

1
node_modules/.bin/js-beautify generated vendored Symbolic link
View file

@ -0,0 +1 @@
../js-beautify/js/bin/js-beautify.js

1
node_modules/.bin/json2yaml generated vendored Symbolic link
View file

@ -0,0 +1 @@
../yamljs/bin/json2yaml

1
node_modules/.bin/lessc generated vendored Symbolic link
View file

@ -0,0 +1 @@
../less/bin/lessc

1
node_modules/.bin/marked generated vendored Symbolic link
View file

@ -0,0 +1 @@
../marked/bin/marked

1
node_modules/.bin/mime generated vendored Symbolic link
View file

@ -0,0 +1 @@
../mime/cli.js

1
node_modules/.bin/mkdirp generated vendored Symbolic link
View file

@ -0,0 +1 @@
../mkdirp/bin/cmd.js

1
node_modules/.bin/nopt generated vendored Symbolic link
View file

@ -0,0 +1 @@
../nopt/bin/nopt.js

1
node_modules/.bin/notify generated vendored Symbolic link
View file

@ -0,0 +1 @@
../node-notifier/bin.js

1
node_modules/.bin/rimraf generated vendored Symbolic link
View file

@ -0,0 +1 @@
../rimraf/bin.js

1
node_modules/.bin/rtlcss generated vendored Symbolic link
View file

@ -0,0 +1 @@
../rtlcss/bin/rtlcss.js

1
node_modules/.bin/semver generated vendored Symbolic link
View file

@ -0,0 +1 @@
../semver/bin/semver

1
node_modules/.bin/sshpk-conv generated vendored Symbolic link
View file

@ -0,0 +1 @@
../sshpk/bin/sshpk-conv

1
node_modules/.bin/sshpk-sign generated vendored Symbolic link
View file

@ -0,0 +1 @@
../sshpk/bin/sshpk-sign

1
node_modules/.bin/sshpk-verify generated vendored Symbolic link
View file

@ -0,0 +1 @@
../sshpk/bin/sshpk-verify

1
node_modules/.bin/strip-bom generated vendored Symbolic link
View file

@ -0,0 +1 @@
../strip-bom/cli.js

1
node_modules/.bin/strip-indent generated vendored Symbolic link
View file

@ -0,0 +1 @@
../strip-indent/cli.js

1
node_modules/.bin/uglifyjs generated vendored Symbolic link
View file

@ -0,0 +1 @@
../uglify-js/bin/uglifyjs

1
node_modules/.bin/user-home generated vendored Symbolic link
View file

@ -0,0 +1 @@
../user-home/cli.js

1
node_modules/.bin/uuid generated vendored Symbolic link
View file

@ -0,0 +1 @@
../uuid/bin/uuid

1
node_modules/.bin/which generated vendored Symbolic link
View file

@ -0,0 +1 @@
../which/bin/which

1
node_modules/.bin/yaml2json generated vendored Symbolic link
View file

@ -0,0 +1 @@
../yamljs/bin/yaml2json

15
node_modules/abbrev/LICENSE generated vendored Normal file
View file

@ -0,0 +1,15 @@
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

23
node_modules/abbrev/README.md generated vendored Normal file
View file

@ -0,0 +1,23 @@
# abbrev-js
Just like [ruby's Abbrev](http://apidock.com/ruby/Abbrev).
Usage:
var abbrev = require("abbrev");
abbrev("foo", "fool", "folding", "flop");
// returns:
{ fl: 'flop'
, flo: 'flop'
, flop: 'flop'
, fol: 'folding'
, fold: 'folding'
, foldi: 'folding'
, foldin: 'folding'
, folding: 'folding'
, foo: 'foo'
, fool: 'fool'
}
This is handy for command-line scripts, or other cases where you want to be able to accept shorthands.

61
node_modules/abbrev/abbrev.js generated vendored Normal file
View file

@ -0,0 +1,61 @@
module.exports = exports = abbrev.abbrev = abbrev
abbrev.monkeyPatch = monkeyPatch
function monkeyPatch () {
Object.defineProperty(Array.prototype, 'abbrev', {
value: function () { return abbrev(this) },
enumerable: false, configurable: true, writable: true
})
Object.defineProperty(Object.prototype, 'abbrev', {
value: function () { return abbrev(Object.keys(this)) },
enumerable: false, configurable: true, writable: true
})
}
function abbrev (list) {
if (arguments.length !== 1 || !Array.isArray(list)) {
list = Array.prototype.slice.call(arguments, 0)
}
for (var i = 0, l = list.length, args = [] ; i < l ; i ++) {
args[i] = typeof list[i] === "string" ? list[i] : String(list[i])
}
// sort them lexicographically, so that they're next to their nearest kin
args = args.sort(lexSort)
// walk through each, seeing how much it has in common with the next and previous
var abbrevs = {}
, prev = ""
for (var i = 0, l = args.length ; i < l ; i ++) {
var current = args[i]
, next = args[i + 1] || ""
, nextMatches = true
, prevMatches = true
if (current === next) continue
for (var j = 0, cl = current.length ; j < cl ; j ++) {
var curChar = current.charAt(j)
nextMatches = nextMatches && curChar === next.charAt(j)
prevMatches = prevMatches && curChar === prev.charAt(j)
if (!nextMatches && !prevMatches) {
j ++
break
}
}
prev = current
if (j === cl) {
abbrevs[current] = current
continue
}
for (var a = current.substr(0, j) ; j <= cl ; j ++) {
abbrevs[a] = current
a += current.charAt(j)
}
}
return abbrevs
}
function lexSort (a, b) {
return a === b ? 0 : a > b ? 1 : -1
}

92
node_modules/abbrev/package.json generated vendored Normal file
View file

@ -0,0 +1,92 @@
{
"_args": [
[
{
"raw": "abbrev@1",
"scope": null,
"escapedName": "abbrev",
"name": "abbrev",
"rawSpec": "1",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"/Users/jose/Documents/GitHub/Mods/node_modules/nopt"
]
],
"_from": "abbrev@>=1.0.0 <2.0.0",
"_id": "abbrev@1.1.0",
"_inCache": true,
"_location": "/abbrev",
"_nodeVersion": "8.0.0-pre",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/abbrev-1.1.0.tgz_1487054000015_0.9229173036292195"
},
"_npmUser": {
"name": "isaacs",
"email": "i@izs.me"
},
"_npmVersion": "4.3.0",
"_phantomChildren": {},
"_requested": {
"raw": "abbrev@1",
"scope": null,
"escapedName": "abbrev",
"name": "abbrev",
"rawSpec": "1",
"spec": ">=1.0.0 <2.0.0",
"type": "range"
},
"_requiredBy": [
"/nopt"
],
"_resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz",
"_shasum": "d0554c2256636e2f56e7c2e5ad183f859428d81f",
"_shrinkwrap": null,
"_spec": "abbrev@1",
"_where": "/Users/jose/Documents/GitHub/Mods/node_modules/nopt",
"author": {
"name": "Isaac Z. Schlueter",
"email": "i@izs.me"
},
"bugs": {
"url": "https://github.com/isaacs/abbrev-js/issues"
},
"dependencies": {},
"description": "Like ruby's abbrev module, but in js",
"devDependencies": {
"tap": "^10.1"
},
"directories": {},
"dist": {
"shasum": "d0554c2256636e2f56e7c2e5ad183f859428d81f",
"tarball": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.0.tgz"
},
"files": [
"abbrev.js"
],
"gitHead": "7136d4d95449dc44115d4f78b80ec907724f64e0",
"homepage": "https://github.com/isaacs/abbrev-js#readme",
"license": "ISC",
"main": "abbrev.js",
"maintainers": [
{
"name": "isaacs",
"email": "i@izs.me"
}
],
"name": "abbrev",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git+ssh://git@github.com/isaacs/abbrev-js.git"
},
"scripts": {
"postpublish": "git push origin --all; git push origin --tags",
"postversion": "npm publish",
"preversion": "npm test",
"test": "tap test.js --100"
},
"version": "1.1.0"
}

11
node_modules/accord/.editorconfig generated vendored Normal file
View file

@ -0,0 +1,11 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
root = true
[*]
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

8
node_modules/accord/.npmignore generated vendored Normal file
View file

@ -0,0 +1,8 @@
test
src
.travis.yml
Makefile
docs
coverage
yarn.lock
polytest_*

20
node_modules/accord/contributing.md generated vendored Normal file
View file

@ -0,0 +1,20 @@
Contributing
------------
Anything that people should know before filing issues or opening pull requests should be here. This is a good place to put details on coding conventions, how to build the project, and how to run tests.
### Filing Issues
If you have found an issue with this library, please let us know! Make sure that before you file an issue, you have searched to see if someone else has already opened it. When opening the issue, make sure there's a clear and concise title and description, and that the description contains specific steps that can be followed to reproduce the issue you are experiencing. Following these guidelines will get your issue fixed up the quickest!
If you are making a feature request, that is welcome in the issues section as well. Make sure again that the title and issue summary are clear so that we can understand what you're asking for. Any use cases would also help. And if you are requesting a feature and are able to work with javscript code, please consider submitting a pull request for the feature!
### Pull Requests
When submitting a pull request, make sure that the code follows the general style and structure elsewhere in the library, that your commit messages are [well-formed](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html), and that you have added tests for whatever feature you are adding.
### Running Tests
To run tests, make sure you have `npm install`ed, then just run `mocha` in the root. If you'd like to run tests just for one specific adapter, you can use mocha's grep option, like this `mocha -g jade` - this would run just the jade test suite.
The way tests are set up is fairly simple, a folder in `fixtures` and a `describe` block for each adapter. All tests are currently compared to expected output through an pure javascript AST, to ensure compatibility across systems.

278
node_modules/accord/lib/adapter_base.js generated vendored Normal file
View file

@ -0,0 +1,278 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, W, clone, fs, partialRight, path, readFile, requireEngine, resolve, resolvePath,
indexOf = [].indexOf || function(item) { for (var i = 0, l = this.length; i < l; i++) { if (i in this && this[i] === item) return i; } return -1; };
W = require('when');
clone = require('lodash.clone');
partialRight = require('lodash.partialright');
resolve = require('resolve');
path = require('path');
fs = require('fs');
readFile = require('when/node/function').lift(fs.readFile);
Adapter = (function() {
/**
* The names of the npm modules that are supported to be used as engines by
the adapter. Defaults to the name of the adapter.
* @type {String[]}
*/
Adapter.prototype.supportedEngines = void 0;
/**
* The name of the engine in-use. Generally this is the name of the package on
npm.
* @type {String}
*/
Adapter.prototype.engineName = '';
/**
* The actual engine, no adapter wrapper. Defaults to the engine that we
recommend for compiling that particular language (if it is installed).
Otherwise, whatever engine we support that is installed.
*/
Adapter.prototype.engine = void 0;
/**
* Array of all file extensions the compiler should match
* @type {String[]}
*/
Adapter.prototype.extensions = void 0;
/**
* Expected output extension
* @type {String}
*/
Adapter.prototype.output = '';
/**
* Specify if the output of the language is independent of other files or the
evaluation of potentially stateful functions. This means that the only
information passed into the engine is what gets passed to Accord's
compile/render function, and whenever that same input is given, the output
will always be the same.
* @type {Boolean}
* @todo Add detection for when a particular job qualifies as isolated
*/
Adapter.prototype.isolated = false;
/**
* @param {String} [engine=Adapter.supportedEngines[0]] If you need to use a
particular engine to compile/render with, then specify it here. Otherwise
we use whatever engine you have installed.
*/
function Adapter(engineName1, customPath) {
var i, len, ref, ref1;
this.engineName = engineName1;
if (!this.supportedEngines || this.supportedEngines.length === 0) {
this.supportedEngines = [this.name];
}
if (this.engineName != null) {
if (ref = this.engineName, indexOf.call(this.supportedEngines, ref) < 0) {
throw new Error("engine '" + this.engineName + "' not supported");
}
this.engine = requireEngine(this.engineName, customPath);
} else {
ref1 = this.supportedEngines;
for (i = 0, len = ref1.length; i < len; i++) {
this.engineName = ref1[i];
try {
this.engine = requireEngine(this.engineName, customPath);
} catch (error) {
continue;
}
return;
}
throw new Error("'tried to require: " + this.supportedEngines + "'.\nNone found. Make sure one has been installed!");
}
}
/**
* Render a string to a compiled string
* @param {String} str
* @param {Object} [opts = {}]
* @return {Promise}
*/
Adapter.prototype.render = function(str, opts) {
if (opts == null) {
opts = {};
}
if (!this._render) {
return W.reject(new Error('render not supported'));
}
return this._render(str, opts);
};
/**
* Render a file to a compiled string
* @param {String} file The path to the file
* @param {Object} [opts = {}]
* @return {Promise}
*/
Adapter.prototype.renderFile = function(file, opts) {
if (opts == null) {
opts = {};
}
opts = clone(opts, true);
return readFile(file, 'utf8').then(partialRight(this.render, Object.assign({
filename: file
}, opts)).bind(this));
};
/**
* Compile a string to a function
* @param {String} str
* @param {Object} [opts = {}]
* @return {Promise}
*/
Adapter.prototype.compile = function(str, opts) {
if (opts == null) {
opts = {};
}
if (!this._compile) {
return W.reject(new Error('compile not supported'));
}
return this._compile(str, opts);
};
/**
* Compile a file to a function
* @param {String} file The path to the file
* @param {Object} [opts = {}]
* @return {Promise}
*/
Adapter.prototype.compileFile = function(file, opts) {
if (opts == null) {
opts = {};
}
return readFile(file, 'utf8').then(partialRight(this.compile, Object.assign({
filename: file
}, opts)).bind(this));
};
/**
* Compile a string to a client-side-ready function
* @param {String} str
* @param {Object} [opts = {}]
* @return {Promise}
*/
Adapter.prototype.compileClient = function(str, opts) {
if (opts == null) {
opts = {};
}
if (!this._compileClient) {
return W.reject(new Error('client-side compile not supported'));
}
return this._compileClient(str, opts);
};
/**
* Compile a file to a client-side-ready function
* @param {String} file The path to the file
* @param {Object} [opts = {}]
* @return {Promise}
*/
Adapter.prototype.compileFileClient = function(file, opts) {
if (opts == null) {
opts = {};
}
return readFile(file, 'utf8').then(partialRight(this.compileClient, Object.assign(opts, {
filename: file
})).bind(this));
};
/**
* Some adapters that compile for client also need helpers, this method
returns a string of minfied JavaScript with all of them
* @return {Promise} A promise for the client-side helpers.
*/
Adapter.prototype.clientHelpers = void 0;
return Adapter;
})();
requireEngine = function(engineName, customPath) {
var engine, err;
if (customPath != null) {
engine = require(resolve.sync(path.basename(customPath), {
basedir: customPath
}));
engine.__accord_path = customPath;
} else {
try {
engine = require(engineName);
engine.__accord_path = resolvePath(engineName);
} catch (error) {
err = error;
throw new Error("'" + engineName + "' not found. make sure it has been installed!");
}
}
try {
if (!engine.version) {
engine.version = require(engine.__accord_path + '/package.json').version;
}
} catch (error) {
err = error;
}
return engine;
};
/**
* Get the path to the root folder of a node module, given its name.
* @param {String} name The name of the node module you want the path to.
* @return {String} The root folder of node module `name`.
* @private
*/
resolvePath = function(name) {
var filepath;
filepath = require.resolve(name);
while (true) {
if (filepath === '/') {
throw new Error("cannot resolve root of node module " + name);
}
filepath = path.dirname(filepath);
if (fs.existsSync(path.join(filepath, 'package.json'))) {
return filepath;
}
}
};
module.exports = Adapter;
}).call(this);

55
node_modules/accord/lib/adapters/LiveScript/1.x.js generated vendored Normal file
View file

@ -0,0 +1,55 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, LiveScript, W,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
W = require('when');
LiveScript = (function(superClass) {
var compile;
extend(LiveScript, superClass);
function LiveScript() {
return LiveScript.__super__.constructor.apply(this, arguments);
}
LiveScript.prototype.name = 'LiveScript';
LiveScript.prototype.extensions = ['ls'];
LiveScript.prototype.output = 'js';
LiveScript.prototype.isolated = true;
LiveScript.prototype._render = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options);
};
})(this));
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return LiveScript;
})(Adapter);
module.exports = LiveScript;
}).call(this);

5
node_modules/accord/lib/adapters/LiveScript/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./1.x');
}).call(this);

74
node_modules/accord/lib/adapters/babel/4.x - 5.x.js generated vendored Normal file
View file

@ -0,0 +1,74 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, Babel, W, path, sourcemaps,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
path = require('path');
W = require('when');
sourcemaps = require('../../sourcemaps');
Babel = (function(superClass) {
var compile;
extend(Babel, superClass);
function Babel() {
return Babel.__super__.constructor.apply(this, arguments);
}
Babel.prototype.name = 'babel';
Babel.prototype.extensions = ['jsx', 'js'];
Babel.prototype.output = 'js';
Babel.prototype.isolated = true;
Babel.prototype._render = function(str, options) {
var filename;
filename = options.filename;
if (options.sourcemap === true) {
options.sourceMap = true;
}
options.sourceMapName = filename;
delete options.sourcemap;
return compile((function(_this) {
return function() {
return _this.engine.transform(str, options);
};
})(this));
};
compile = function(fn) {
var data, err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
data = {
result: res.code
};
if (res.map) {
return sourcemaps.inline_sources(res.map).then(function(map) {
data.sourcemap = map;
return data;
});
} else {
return W.resolve(data);
}
};
return Babel;
})(Adapter);
module.exports = Babel;
}).call(this);

86
node_modules/accord/lib/adapters/babel/6.x.js generated vendored Normal file
View file

@ -0,0 +1,86 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, Babel, W, path, pick, sourcemaps,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
path = require('path');
W = require('when');
pick = require('lodash.pick');
Adapter = require('../../adapter_base');
sourcemaps = require('../../sourcemaps');
Babel = (function(superClass) {
var compile;
extend(Babel, superClass);
function Babel() {
return Babel.__super__.constructor.apply(this, arguments);
}
Babel.prototype.name = 'babel';
Babel.prototype.extensions = ['js', 'jsx'];
Babel.prototype.output = 'js';
Babel.prototype.isolated = true;
Babel.prototype.supportedEngines = ['babel-core'];
Babel.prototype._render = function(str, options) {
var allowed_keys, filename, sanitized_options;
filename = options.filename;
if (options.sourcemap === true) {
options.sourceMaps = true;
}
options.sourceFileName = filename;
delete options.sourcemap;
allowed_keys = ['filename', 'filenameRelative', 'presets', 'plugins', 'highlightCode', 'only', 'ignore', 'auxiliaryCommentBefore', 'auxiliaryCommentAfter', 'sourceMaps', 'inputSourceMap', 'sourceMapTarget', 'sourceRoot', 'moduleRoot', 'moduleIds', 'moduleId', 'getModuleId', 'resolveModuleSource', 'code', 'babelrc', 'ast', 'compact', 'comments', 'shouldPrintComment', 'env', 'retainLines', 'extends'];
sanitized_options = pick(options, allowed_keys);
return compile((function(_this) {
return function() {
return _this.engine.transform(str, sanitized_options);
};
})(this));
};
compile = function(fn) {
var data, dirname, err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
data = {
result: res.code
};
if (res.map) {
if (res.map.sources) {
dirname = path.dirname(res.options.filename);
res.map.sources = res.map.sources.map(function(source) {
return path.join(dirname, source);
});
}
return sourcemaps.inline_sources(res.map).then(function(map) {
data.sourcemap = map;
return data;
});
} else {
return W.resolve(data);
}
};
return Babel;
})(Adapter);
module.exports = Babel;
}).call(this);

5
node_modules/accord/lib/adapters/babel/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./6.x');
}).call(this);

View file

@ -0,0 +1,68 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, Buble, W, path, sourcemaps,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
path = require('path');
W = require('when');
sourcemaps = require('../../sourcemaps');
Buble = (function(superClass) {
var compile;
extend(Buble, superClass);
function Buble() {
return Buble.__super__.constructor.apply(this, arguments);
}
Buble.prototype.name = 'buble';
Buble.prototype.extensions = ['js'];
Buble.prototype.output = 'js';
Buble.prototype.isolated = true;
Buble.prototype._render = function(str, options) {
options.source = options.filename;
return compile((function(_this) {
return function() {
return _this.engine.transform(str, options);
};
})(this));
};
compile = function(fn) {
var data, err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
data = {
result: res.code
};
if (res.map) {
return sourcemaps.inline_sources(res.map).then(function(map) {
data.sourcemap = map;
return data;
});
} else {
return W.resolve(data);
}
};
return Buble;
})(Adapter);
module.exports = Buble;
}).call(this);

5
node_modules/accord/lib/adapters/buble/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./0.8.x - 0.14.x');
}).call(this);

63
node_modules/accord/lib/adapters/cjsx/3.x.js generated vendored Normal file
View file

@ -0,0 +1,63 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, CJSX, W, path, sourcemaps,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
sourcemaps = require('../../sourcemaps');
path = require('path');
W = require('when');
CJSX = (function(superClass) {
var compile;
extend(CJSX, superClass);
function CJSX() {
return CJSX.__super__.constructor.apply(this, arguments);
}
CJSX.prototype.name = 'cjsx';
CJSX.prototype.extensions = ['cjsx'];
CJSX.prototype.output = 'coffee';
CJSX.prototype.supportedEngines = ['coffee-react-transform'];
CJSX.prototype.isolated = true;
CJSX.prototype._render = function(str, options) {
var filename;
filename = options.filename;
return compile((function(_this) {
return function() {
return _this.engine(str);
};
})(this));
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return CJSX;
})(Adapter);
module.exports = CJSX;
}).call(this);

63
node_modules/accord/lib/adapters/cjsx/4.x - 5.x.js generated vendored Normal file
View file

@ -0,0 +1,63 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, CJSX, W, path, sourcemaps,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
sourcemaps = require('../../sourcemaps');
path = require('path');
W = require('when');
CJSX = (function(superClass) {
var compile;
extend(CJSX, superClass);
function CJSX() {
return CJSX.__super__.constructor.apply(this, arguments);
}
CJSX.prototype.name = 'cjsx';
CJSX.prototype.extensions = ['cjsx'];
CJSX.prototype.output = 'coffee';
CJSX.prototype.supportedEngines = ['coffee-react-transform'];
CJSX.prototype.isolated = true;
CJSX.prototype._render = function(str, options) {
var filename;
filename = options.filename;
return compile((function(_this) {
return function() {
return _this.engine(str);
};
})(this));
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return CJSX;
})(Adapter);
module.exports = CJSX;
}).call(this);

5
node_modules/accord/lib/adapters/cjsx/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./4.x - 5.x');
}).call(this);

55
node_modules/accord/lib/adapters/coco/0.9.x.js generated vendored Normal file
View file

@ -0,0 +1,55 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, Coco, W,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
W = require('when');
Coco = (function(superClass) {
var compile;
extend(Coco, superClass);
function Coco() {
return Coco.__super__.constructor.apply(this, arguments);
}
Coco.prototype.name = 'coco';
Coco.prototype.extensions = ['co'];
Coco.prototype.output = 'js';
Coco.prototype.isolated = true;
Coco.prototype._render = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options);
};
})(this));
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return Coco;
})(Adapter);
module.exports = Coco;
}).call(this);

5
node_modules/accord/lib/adapters/coco/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./0.9.x');
}).call(this);

80
node_modules/accord/lib/adapters/coffee-script/1.x.js generated vendored Normal file
View file

@ -0,0 +1,80 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, CoffeeScript, W, path, sourcemaps,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
sourcemaps = require('../../sourcemaps');
path = require('path');
W = require('when');
CoffeeScript = (function(superClass) {
var compile;
extend(CoffeeScript, superClass);
function CoffeeScript() {
return CoffeeScript.__super__.constructor.apply(this, arguments);
}
CoffeeScript.prototype.name = 'coffee-script';
CoffeeScript.prototype.extensions = ['coffee'];
CoffeeScript.prototype.output = 'js';
CoffeeScript.prototype.isolated = true;
CoffeeScript.prototype._render = function(str, options) {
var filename;
filename = options.filename;
if (options.sourcemap === true) {
options.sourceMap = true;
}
options.sourceFiles = [filename];
if (options.filename) {
options.generatedFile = path.basename(filename).replace('.coffee', '.js');
}
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options);
};
})(this));
};
compile = function(fn) {
var data, err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
if (res.sourceMap) {
data = {
result: res.js,
v2sourcemap: res.sourceMap,
sourcemap: JSON.parse(res.v3SourceMap)
};
return sourcemaps.inline_sources(data.sourcemap).then(function(map) {
data.sourcemap = map;
return data;
});
} else {
return W.resolve({
result: res
});
}
};
return CoffeeScript;
})(Adapter);
module.exports = CoffeeScript;
}).call(this);

View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./1.x');
}).call(this);

58
node_modules/accord/lib/adapters/csso/1.0.x - 1.3.x.js generated vendored Normal file
View file

@ -0,0 +1,58 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, CSSO, W,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
W = require('when');
CSSO = (function(superClass) {
var compile;
extend(CSSO, superClass);
function CSSO() {
return CSSO.__super__.constructor.apply(this, arguments);
}
CSSO.prototype.name = 'csso';
CSSO.prototype.extensions = ['css'];
CSSO.prototype.output = 'css';
CSSO.prototype.isolated = true;
CSSO.prototype._render = function(str, options) {
if (options.noRestructure == null) {
options.noRestructure = false;
}
return compile((function(_this) {
return function() {
return _this.engine.justDoIt(str, options.noRestructure);
};
})(this));
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return CSSO;
})(Adapter);
module.exports = CSSO;
}).call(this);

61
node_modules/accord/lib/adapters/csso/2.x.js generated vendored Normal file
View file

@ -0,0 +1,61 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, CSSO, W,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
W = require('when');
CSSO = (function(superClass) {
var compile;
extend(CSSO, superClass);
function CSSO() {
return CSSO.__super__.constructor.apply(this, arguments);
}
CSSO.prototype.name = 'csso';
CSSO.prototype.extensions = ['css'];
CSSO.prototype.output = 'css';
CSSO.prototype.isolated = true;
CSSO.prototype._render = function(str, options) {
if (options.restructuring == null) {
options.restructuring = true;
}
if (options.debug == null) {
options.debug = false;
}
return compile((function(_this) {
return function() {
return _this.engine.minify(str, options).css;
};
})(this));
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return CSSO;
})(Adapter);
module.exports = CSSO;
}).call(this);

61
node_modules/accord/lib/adapters/csso/^1.4.js generated vendored Normal file
View file

@ -0,0 +1,61 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, CSSO, W,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
W = require('when');
CSSO = (function(superClass) {
var compile;
extend(CSSO, superClass);
function CSSO() {
return CSSO.__super__.constructor.apply(this, arguments);
}
CSSO.prototype.name = 'csso';
CSSO.prototype.extensions = ['css'];
CSSO.prototype.output = 'css';
CSSO.prototype.isolated = true;
CSSO.prototype._render = function(str, options) {
if (options.restructuring == null) {
options.restructuring = true;
}
if (options.debug == null) {
options.debug = false;
}
return compile((function(_this) {
return function() {
return _this.engine.minify(str, options);
};
})(this));
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return CSSO;
})(Adapter);
module.exports = CSSO;
}).call(this);

5
node_modules/accord/lib/adapters/csso/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./2.x');
}).call(this);

38
node_modules/accord/lib/adapters/dogescript/2.x.js generated vendored Normal file
View file

@ -0,0 +1,38 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, DogeScript, W,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
W = require('when');
DogeScript = (function(superClass) {
extend(DogeScript, superClass);
function DogeScript() {
return DogeScript.__super__.constructor.apply(this, arguments);
}
DogeScript.prototype.name = 'dogescript';
DogeScript.prototype.extensions = ['djs'];
DogeScript.prototype.output = 'js';
DogeScript.prototype.isolated = true;
DogeScript.prototype._render = function(str, options) {
return W.resolve({
result: this.engine(str, options.beauty, options.trueDoge)
});
};
return DogeScript;
})(Adapter);
module.exports = DogeScript;
}).call(this);

5
node_modules/accord/lib/adapters/dogescript/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./2.x');
}).call(this);

80
node_modules/accord/lib/adapters/dot/1.x.js generated vendored Normal file
View file

@ -0,0 +1,80 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, Dot, W, fs, path,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
path = require('path');
fs = require('fs');
W = require('when');
Dot = (function(superClass) {
var compile;
extend(Dot, superClass);
function Dot() {
return Dot.__super__.constructor.apply(this, arguments);
}
Dot.prototype.name = 'dot';
Dot.prototype.extensions = ['dot'];
Dot.prototype.output = 'html';
Dot.prototype._render = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compile(str)(options);
};
})(this));
};
Dot.prototype._compile = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options);
};
})(this));
};
Dot.prototype._compileClient = function(str, options) {
options.client = true;
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options).toString();
};
})(this));
};
Dot.prototype.clientHelpers = function(str, options) {
var runtime_path;
runtime_path = path.join(this.engine.__accord_path, 'doT.min.js');
return fs.readFileSync(runtime_path, 'utf8');
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return Dot;
})(Adapter);
module.exports = Dot;
}).call(this);

5
node_modules/accord/lib/adapters/dot/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./1.x');
}).call(this);

76
node_modules/accord/lib/adapters/eco/1.x.js generated vendored Normal file
View file

@ -0,0 +1,76 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, Eco, W, fs, path,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
path = require('path');
fs = require('fs');
W = require('when');
Eco = (function(superClass) {
var compile;
extend(Eco, superClass);
function Eco() {
return Eco.__super__.constructor.apply(this, arguments);
}
Eco.prototype.name = 'eco';
Eco.prototype.extensions = ['eco'];
Eco.prototype.output = 'html';
Eco.prototype._render = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.render(str, options);
};
})(this));
};
Eco.prototype._compile = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options);
};
})(this)).then(function(res) {
res.result = eval(res.result);
return res;
});
};
Eco.prototype._compileClient = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options).toString().trim() + '\n';
};
})(this));
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return Eco;
})(Adapter);
module.exports = Eco;
}).call(this);

73
node_modules/accord/lib/adapters/eco/=1.1.0-rc-3.js generated vendored Normal file
View file

@ -0,0 +1,73 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, Eco, W, fs, path,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
path = require('path');
fs = require('fs');
W = require('when');
Eco = (function(superClass) {
var compile;
extend(Eco, superClass);
function Eco() {
return Eco.__super__.constructor.apply(this, arguments);
}
Eco.prototype.name = 'eco';
Eco.prototype.extensions = ['eco'];
Eco.prototype.output = 'html';
Eco.prototype._render = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.render(str, options);
};
})(this));
};
Eco.prototype._compile = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options);
};
})(this));
};
Eco.prototype._compileClient = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options).toString().trim() + '\n';
};
})(this));
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return Eco;
})(Adapter);
module.exports = Eco;
}).call(this);

5
node_modules/accord/lib/adapters/eco/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./1.x');
}).call(this);

80
node_modules/accord/lib/adapters/ejs/2.x.js generated vendored Normal file
View file

@ -0,0 +1,80 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, EJS, W, fs, path,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
path = require('path');
fs = require('fs');
W = require('when');
EJS = (function(superClass) {
var compile;
extend(EJS, superClass);
function EJS() {
return EJS.__super__.constructor.apply(this, arguments);
}
EJS.prototype.name = 'ejs';
EJS.prototype.extensions = ['ejs'];
EJS.prototype.output = 'html';
EJS.prototype._render = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.render(str, options);
};
})(this));
};
EJS.prototype._compile = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options);
};
})(this));
};
EJS.prototype._compileClient = function(str, options) {
options.client = true;
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options).toString();
};
})(this));
};
EJS.prototype.clientHelpers = function(str, options) {
var runtime_path;
runtime_path = path.join(this.engine.__accord_path, 'ejs.min.js');
return fs.readFileSync(runtime_path, 'utf8');
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return EJS;
})(Adapter);
module.exports = EJS;
}).call(this);

5
node_modules/accord/lib/adapters/ejs/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./2.x');
}).call(this);

62
node_modules/accord/lib/adapters/escape-html/0.5.x.js generated vendored Normal file
View file

@ -0,0 +1,62 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, EscapeHTML, W, defaults,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
W = require('when');
defaults = require('lodash.defaults');
EscapeHTML = (function(superClass) {
var compile;
extend(EscapeHTML, superClass);
function EscapeHTML() {
return EscapeHTML.__super__.constructor.apply(this, arguments);
}
EscapeHTML.prototype.name = 'escape-html';
EscapeHTML.prototype.extensions = ['html'];
EscapeHTML.prototype.output = 'html';
EscapeHTML.prototype.supportedEngines = ['he'];
EscapeHTML.prototype.isolated = true;
EscapeHTML.prototype._render = function(str, options) {
options = defaults(options, {
allowUnsafeSymbols: true
});
return compile((function(_this) {
return function() {
return _this.engine.encode(str, options);
};
})(this));
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return EscapeHTML;
})(Adapter);
module.exports = EscapeHTML;
}).call(this);

62
node_modules/accord/lib/adapters/escape-html/1.x.js generated vendored Normal file
View file

@ -0,0 +1,62 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, EscapeHTML, W, defaults,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
W = require('when');
defaults = require('lodash.defaults');
EscapeHTML = (function(superClass) {
var compile;
extend(EscapeHTML, superClass);
function EscapeHTML() {
return EscapeHTML.__super__.constructor.apply(this, arguments);
}
EscapeHTML.prototype.name = 'escape-html';
EscapeHTML.prototype.extensions = ['html'];
EscapeHTML.prototype.output = 'html';
EscapeHTML.prototype.supportedEngines = ['he'];
EscapeHTML.prototype.isolated = true;
EscapeHTML.prototype._render = function(str, options) {
options = defaults(options, {
allowUnsafeSymbols: true
});
return compile((function(_this) {
return function() {
return _this.engine.encode(str, options);
};
})(this));
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return EscapeHTML;
})(Adapter);
module.exports = EscapeHTML;
}).call(this);

View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./1.x');
}).call(this);

69
node_modules/accord/lib/adapters/haml/0.6.x.js generated vendored Normal file
View file

@ -0,0 +1,69 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, HAML, UglifyJS, W, fs, path,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
path = require('path');
fs = require('fs');
W = require('when');
UglifyJS = require('uglify-js');
HAML = (function(superClass) {
var compile;
extend(HAML, superClass);
function HAML() {
return HAML.__super__.constructor.apply(this, arguments);
}
HAML.prototype.name = 'haml';
HAML.prototype.extensions = ['haml'];
HAML.prototype.output = 'html';
HAML.prototype.supportedEngines = ['hamljs'];
HAML.prototype._render = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compile(str)(options);
};
})(this));
};
HAML.prototype._compile = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options);
};
})(this));
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return HAML;
})(Adapter);
module.exports = HAML;
}).call(this);

5
node_modules/accord/lib/adapters/haml/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./0.6.x');
}).call(this);

View file

@ -0,0 +1,106 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, Handlebars, W, clone, fs, merge, path,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
clone = require('lodash.clone');
merge = require('lodash.merge');
path = require('path');
fs = require('fs');
W = require('when');
Handlebars = (function(superClass) {
var compile, register_helpers;
extend(Handlebars, superClass);
function Handlebars() {
return Handlebars.__super__.constructor.apply(this, arguments);
}
Handlebars.prototype.name = 'handlebars';
Handlebars.prototype.extensions = ['hbs', 'handlebars'];
Handlebars.prototype.output = 'html';
Handlebars.prototype._render = function(str, options) {
var compiler;
compiler = clone(this.engine);
register_helpers(compiler, options);
return compile((function(_this) {
return function() {
return compiler.compile(str)(options);
};
})(this));
};
Handlebars.prototype._compile = function(str, options) {
var compiler;
compiler = clone(this.engine);
register_helpers(compiler, options);
return compile((function(_this) {
return function() {
return compiler.compile(str);
};
})(this));
};
Handlebars.prototype._compileClient = function(str, options) {
var compiler;
compiler = clone(this.engine);
register_helpers(compiler, options);
return compile((function(_this) {
return function() {
return "Handlebars.template(" + (compiler.precompile(str)) + ");";
};
})(this));
};
Handlebars.prototype.clientHelpers = function() {
var runtime_path;
runtime_path = path.join(this.engine.__accord_path, 'dist/handlebars.runtime.min.js');
return fs.readFileSync(runtime_path, 'utf8');
};
/**
* @private
*/
register_helpers = function(compiler, opts) {
if (opts.helpers) {
compiler.helpers = merge(compiler.helpers, opts.helpers);
}
if (opts.partials) {
return compiler.partials = merge(compiler.partials, opts.partials);
}
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return Handlebars;
})(Adapter);
module.exports = Handlebars;
}).call(this);

5
node_modules/accord/lib/adapters/handlebars/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./3.x - 4.x');
}).call(this);

86
node_modules/accord/lib/adapters/jade/1.x.js generated vendored Normal file
View file

@ -0,0 +1,86 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, Jade, UglifyJS, W, fs, path,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
path = require('path');
fs = require('fs');
W = require('when');
UglifyJS = require('uglify-js');
Jade = (function(superClass) {
var compile;
extend(Jade, superClass);
function Jade() {
return Jade.__super__.constructor.apply(this, arguments);
}
Jade.prototype.name = 'jade';
Jade.prototype.extensions = ['jade'];
Jade.prototype.output = 'html';
Jade.prototype.supportedEngines = ['jade'];
Jade.prototype._render = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.render(str, options);
};
})(this));
};
Jade.prototype._compile = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compile(str, options);
};
})(this));
};
Jade.prototype._compileClient = function(str, options) {
return compile((function(_this) {
return function() {
return _this.engine.compileClient(str, options);
};
})(this));
};
Jade.prototype.clientHelpers = function() {
var runtime, runtime_path;
runtime_path = path.join(this.engine.__accord_path, 'runtime.js');
runtime = fs.readFileSync(runtime_path, 'utf8');
return UglifyJS.minify(runtime, {
fromString: true
}).code;
};
compile = function(fn) {
var err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
return W.resolve({
result: res
});
};
return Jade;
})(Adapter);
module.exports = Jade;
}).call(this);

5
node_modules/accord/lib/adapters/jade/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./1.x');
}).call(this);

78
node_modules/accord/lib/adapters/jsx/0.13.x.js generated vendored Normal file
View file

@ -0,0 +1,78 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, JSX, W, path, sourcemaps,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
sourcemaps = require('../../sourcemaps');
path = require('path');
W = require('when');
JSX = (function(superClass) {
var compile;
extend(JSX, superClass);
function JSX() {
return JSX.__super__.constructor.apply(this, arguments);
}
JSX.prototype.name = 'jsx';
JSX.prototype.extensions = ['jsx'];
JSX.prototype.output = 'js';
JSX.prototype.supportedEngines = ['react-tools'];
JSX.prototype.isolated = true;
JSX.prototype._render = function(str, options) {
if (options.sourcemap === true) {
options.sourceMap = true;
options.sourceFilename = options.filename;
}
return compile(options, (function(_this) {
return function() {
return _this.engine.transformWithDetails(str, options);
};
})(this));
};
compile = function(opts, fn) {
var data, err, res;
try {
res = fn();
} catch (error) {
err = error;
return W.reject(err);
}
if (res.sourceMap) {
data = {
result: res.code,
sourcemap: res.sourceMap
};
data.sourcemap.sources.pop();
data.sourcemap.sources.push(opts.filename);
return sourcemaps.inline_sources(data.sourcemap).then(function(map) {
data.sourcemap = map;
return data;
});
} else {
return W.resolve({
result: res.code
});
}
};
return JSX;
})(Adapter);
module.exports = JSX;
}).call(this);

5
node_modules/accord/lib/adapters/jsx/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./0.13.x');
}).call(this);

67
node_modules/accord/lib/adapters/less/2.x.js generated vendored Normal file
View file

@ -0,0 +1,67 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, Less, W, sourcemaps,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
sourcemaps = require('../../sourcemaps');
W = require('when');
Less = (function(superClass) {
extend(Less, superClass);
function Less() {
return Less.__super__.constructor.apply(this, arguments);
}
Less.prototype.name = 'less';
Less.prototype.extensions = ['less'];
Less.prototype.output = 'css';
/**
* LESS has import rules for other LESS stylesheets
*/
Less.prototype.isolated = false;
Less.prototype._render = function(str, options) {
var deferred;
deferred = W.defer();
if (options.sourcemap === true) {
options.sourceMap = true;
}
this.engine.render(str, options, function(err, res) {
var obj;
if (err) {
return deferred.reject(err);
}
obj = {
result: res.css,
imports: res.imports
};
if (options.sourceMap && res.map) {
obj.sourcemap = JSON.parse(res.map);
return sourcemaps.inline_sources(obj.sourcemap).then(function(map) {
obj.sourcemap = map;
return deferred.resolve(obj);
});
} else {
return deferred.resolve(obj);
}
});
return deferred.promise;
};
return Less;
})(Adapter);
module.exports = Less;
}).call(this);

5
node_modules/accord/lib/adapters/less/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./2.x');
}).call(this);

57
node_modules/accord/lib/adapters/marc/0.1.x.js generated vendored Normal file
View file

@ -0,0 +1,57 @@
// Generated by CoffeeScript 1.12.1
(function() {
var Adapter, Marc, W,
extend = function(child, parent) { for (var key in parent) { if (hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; },
hasProp = {}.hasOwnProperty;
Adapter = require('../../adapter_base');
W = require('when');
Marc = (function(superClass) {
extend(Marc, superClass);
function Marc() {
return Marc.__super__.constructor.apply(this, arguments);
}
Marc.prototype.name = 'marc';
Marc.prototype.extensions = ['md'];
Marc.prototype.output = 'html';
Marc.prototype._render = function(str, options) {
var base, k, ref, ref1, ref2, v;
base = this.engine();
ref = options['data'];
for (k in ref) {
v = ref[k];
base.set(k, v);
}
delete options['data'];
ref1 = options['partial'];
for (k in ref1) {
v = ref1[k];
base.partial(k, v);
}
delete options['partial'];
ref2 = options['filter'];
for (k in ref2) {
v = ref2[k];
base.filter(k, v);
}
delete options['filter'];
base.config(options);
return W.resolve({
result: base(str, true)
});
};
return Marc;
})(Adapter);
module.exports = Marc;
}).call(this);

5
node_modules/accord/lib/adapters/marc/index.js generated vendored Normal file
View file

@ -0,0 +1,5 @@
// Generated by CoffeeScript 1.12.1
(function() {
module.exports = require('./0.1.x');
}).call(this);

Some files were not shown because too many files have changed in this diff Show more