Init
This commit is contained in:
commit
4e066bffc9
10017 changed files with 1322084 additions and 0 deletions
1
node_modules/.bin/atob
generated
vendored
Symbolic link
1
node_modules/.bin/atob
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../atob/bin/atob.js
|
||||
1
node_modules/.bin/browserslist
generated
vendored
Symbolic link
1
node_modules/.bin/browserslist
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../browserslist/cli.js
|
||||
1
node_modules/.bin/cdl
generated
vendored
Symbolic link
1
node_modules/.bin/cdl
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../cardinal/bin/cdl.js
|
||||
1
node_modules/.bin/css-beautify
generated
vendored
Symbolic link
1
node_modules/.bin/css-beautify
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../js-beautify/js/bin/css-beautify.js
|
||||
1
node_modules/.bin/detect-indent
generated
vendored
Symbolic link
1
node_modules/.bin/detect-indent
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../detect-indent/cli.js
|
||||
1
node_modules/.bin/errno
generated
vendored
Symbolic link
1
node_modules/.bin/errno
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../errno/cli.js
|
||||
1
node_modules/.bin/esparse
generated
vendored
Symbolic link
1
node_modules/.bin/esparse
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../esprima/bin/esparse.js
|
||||
1
node_modules/.bin/esvalidate
generated
vendored
Symbolic link
1
node_modules/.bin/esvalidate
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../esprima/bin/esvalidate.js
|
||||
1
node_modules/.bin/findup
generated
vendored
Symbolic link
1
node_modules/.bin/findup
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../findup/bin/findup.js
|
||||
1
node_modules/.bin/gulp
generated
vendored
Symbolic link
1
node_modules/.bin/gulp
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../gulp/bin/gulp.js
|
||||
1
node_modules/.bin/har-validator
generated
vendored
Symbolic link
1
node_modules/.bin/har-validator
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../har-validator/bin/har-validator
|
||||
1
node_modules/.bin/html-beautify
generated
vendored
Symbolic link
1
node_modules/.bin/html-beautify
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../js-beautify/js/bin/html-beautify.js
|
||||
1
node_modules/.bin/image-size
generated
vendored
Symbolic link
1
node_modules/.bin/image-size
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../image-size/bin/image-size.js
|
||||
1
node_modules/.bin/js-beautify
generated
vendored
Symbolic link
1
node_modules/.bin/js-beautify
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../js-beautify/js/bin/js-beautify.js
|
||||
1
node_modules/.bin/json2yaml
generated
vendored
Symbolic link
1
node_modules/.bin/json2yaml
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../yamljs/bin/json2yaml
|
||||
1
node_modules/.bin/lessc
generated
vendored
Symbolic link
1
node_modules/.bin/lessc
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../less/bin/lessc
|
||||
1
node_modules/.bin/marked
generated
vendored
Symbolic link
1
node_modules/.bin/marked
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../marked/bin/marked
|
||||
1
node_modules/.bin/mime
generated
vendored
Symbolic link
1
node_modules/.bin/mime
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../mime/cli.js
|
||||
1
node_modules/.bin/mkdirp
generated
vendored
Symbolic link
1
node_modules/.bin/mkdirp
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../mkdirp/bin/cmd.js
|
||||
1
node_modules/.bin/nopt
generated
vendored
Symbolic link
1
node_modules/.bin/nopt
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../nopt/bin/nopt.js
|
||||
1
node_modules/.bin/notify
generated
vendored
Symbolic link
1
node_modules/.bin/notify
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../node-notifier/bin.js
|
||||
1
node_modules/.bin/rimraf
generated
vendored
Symbolic link
1
node_modules/.bin/rimraf
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../rimraf/bin.js
|
||||
1
node_modules/.bin/rtlcss
generated
vendored
Symbolic link
1
node_modules/.bin/rtlcss
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../rtlcss/bin/rtlcss.js
|
||||
1
node_modules/.bin/semver
generated
vendored
Symbolic link
1
node_modules/.bin/semver
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../semver/bin/semver
|
||||
1
node_modules/.bin/sshpk-conv
generated
vendored
Symbolic link
1
node_modules/.bin/sshpk-conv
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../sshpk/bin/sshpk-conv
|
||||
1
node_modules/.bin/sshpk-sign
generated
vendored
Symbolic link
1
node_modules/.bin/sshpk-sign
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../sshpk/bin/sshpk-sign
|
||||
1
node_modules/.bin/sshpk-verify
generated
vendored
Symbolic link
1
node_modules/.bin/sshpk-verify
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../sshpk/bin/sshpk-verify
|
||||
1
node_modules/.bin/strip-bom
generated
vendored
Symbolic link
1
node_modules/.bin/strip-bom
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../strip-bom/cli.js
|
||||
1
node_modules/.bin/strip-indent
generated
vendored
Symbolic link
1
node_modules/.bin/strip-indent
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../strip-indent/cli.js
|
||||
1
node_modules/.bin/uglifyjs
generated
vendored
Symbolic link
1
node_modules/.bin/uglifyjs
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../uglify-js/bin/uglifyjs
|
||||
1
node_modules/.bin/user-home
generated
vendored
Symbolic link
1
node_modules/.bin/user-home
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../user-home/cli.js
|
||||
1
node_modules/.bin/uuid
generated
vendored
Symbolic link
1
node_modules/.bin/uuid
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../uuid/bin/uuid
|
||||
1
node_modules/.bin/which
generated
vendored
Symbolic link
1
node_modules/.bin/which
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../which/bin/which
|
||||
1
node_modules/.bin/yaml2json
generated
vendored
Symbolic link
1
node_modules/.bin/yaml2json
generated
vendored
Symbolic link
|
|
@ -0,0 +1 @@
|
|||
../yamljs/bin/yaml2json
|
||||
15
node_modules/abbrev/LICENSE
generated
vendored
Normal file
15
node_modules/abbrev/LICENSE
generated
vendored
Normal 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
23
node_modules/abbrev/README.md
generated
vendored
Normal 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
61
node_modules/abbrev/abbrev.js
generated
vendored
Normal 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
92
node_modules/abbrev/package.json
generated
vendored
Normal 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/About/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/About/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
11
node_modules/accord/.editorconfig
generated
vendored
Normal 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
8
node_modules/accord/.npmignore
generated
vendored
Normal 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
20
node_modules/accord/contributing.md
generated
vendored
Normal 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
278
node_modules/accord/lib/adapter_base.js
generated
vendored
Normal 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
55
node_modules/accord/lib/adapters/LiveScript/1.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/LiveScript/index.js
generated
vendored
Normal 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
74
node_modules/accord/lib/adapters/babel/4.x - 5.x.js
generated
vendored
Normal 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
86
node_modules/accord/lib/adapters/babel/6.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/babel/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
module.exports = require('./6.x');
|
||||
|
||||
}).call(this);
|
||||
68
node_modules/accord/lib/adapters/buble/0.8.x - 0.14.x.js
generated
vendored
Normal file
68
node_modules/accord/lib/adapters/buble/0.8.x - 0.14.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/buble/index.js
generated
vendored
Normal 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
63
node_modules/accord/lib/adapters/cjsx/3.x.js
generated
vendored
Normal 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
63
node_modules/accord/lib/adapters/cjsx/4.x - 5.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/cjsx/index.js
generated
vendored
Normal 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
55
node_modules/accord/lib/adapters/coco/0.9.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/coco/index.js
generated
vendored
Normal 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
80
node_modules/accord/lib/adapters/coffee-script/1.x.js
generated
vendored
Normal 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);
|
||||
5
node_modules/accord/lib/adapters/coffee-script/index.js
generated
vendored
Normal file
5
node_modules/accord/lib/adapters/coffee-script/index.js
generated
vendored
Normal 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
58
node_modules/accord/lib/adapters/csso/1.0.x - 1.3.x.js
generated
vendored
Normal 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
61
node_modules/accord/lib/adapters/csso/2.x.js
generated
vendored
Normal 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
61
node_modules/accord/lib/adapters/csso/^1.4.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/csso/index.js
generated
vendored
Normal 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
38
node_modules/accord/lib/adapters/dogescript/2.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/dogescript/index.js
generated
vendored
Normal 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
80
node_modules/accord/lib/adapters/dot/1.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/dot/index.js
generated
vendored
Normal 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
76
node_modules/accord/lib/adapters/eco/1.x.js
generated
vendored
Normal 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
73
node_modules/accord/lib/adapters/eco/=1.1.0-rc-3.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/eco/index.js
generated
vendored
Normal 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
80
node_modules/accord/lib/adapters/ejs/2.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/ejs/index.js
generated
vendored
Normal 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
62
node_modules/accord/lib/adapters/escape-html/0.5.x.js
generated
vendored
Normal 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
62
node_modules/accord/lib/adapters/escape-html/1.x.js
generated
vendored
Normal 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);
|
||||
5
node_modules/accord/lib/adapters/escape-html/index.js
generated
vendored
Normal file
5
node_modules/accord/lib/adapters/escape-html/index.js
generated
vendored
Normal 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
69
node_modules/accord/lib/adapters/haml/0.6.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/haml/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
module.exports = require('./0.6.x');
|
||||
|
||||
}).call(this);
|
||||
106
node_modules/accord/lib/adapters/handlebars/3.x - 4.x.js
generated
vendored
Normal file
106
node_modules/accord/lib/adapters/handlebars/3.x - 4.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/handlebars/index.js
generated
vendored
Normal 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
86
node_modules/accord/lib/adapters/jade/1.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/jade/index.js
generated
vendored
Normal 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
78
node_modules/accord/lib/adapters/jsx/0.13.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/jsx/index.js
generated
vendored
Normal 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
67
node_modules/accord/lib/adapters/less/2.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/less/index.js
generated
vendored
Normal 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
57
node_modules/accord/lib/adapters/marc/0.1.x.js
generated
vendored
Normal 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
5
node_modules/accord/lib/adapters/marc/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
module.exports = require('./0.1.x');
|
||||
|
||||
}).call(this);
|
||||
42
node_modules/accord/lib/adapters/markdown/0.3.x.js
generated
vendored
Normal file
42
node_modules/accord/lib/adapters/markdown/0.3.x.js
generated
vendored
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
var Adapter, Markdown, nodefn,
|
||||
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');
|
||||
|
||||
nodefn = require('when/node/function');
|
||||
|
||||
Markdown = (function(superClass) {
|
||||
extend(Markdown, superClass);
|
||||
|
||||
function Markdown() {
|
||||
return Markdown.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
Markdown.prototype.name = 'markdown';
|
||||
|
||||
Markdown.prototype.extensions = ['md', 'mdown', 'markdown'];
|
||||
|
||||
Markdown.prototype.output = 'html';
|
||||
|
||||
Markdown.prototype.supportedEngines = ['marked'];
|
||||
|
||||
Markdown.prototype.isolated = true;
|
||||
|
||||
Markdown.prototype._render = function(str, options) {
|
||||
return nodefn.call(this.engine.bind(this.engine), str, options).then(function(res) {
|
||||
return {
|
||||
result: res
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
return Markdown;
|
||||
|
||||
})(Adapter);
|
||||
|
||||
module.exports = Markdown;
|
||||
|
||||
}).call(this);
|
||||
5
node_modules/accord/lib/adapters/markdown/index.js
generated
vendored
Normal file
5
node_modules/accord/lib/adapters/markdown/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
module.exports = require('./0.3.x');
|
||||
|
||||
}).call(this);
|
||||
68
node_modules/accord/lib/adapters/minify-css/3.x.js
generated
vendored
Normal file
68
node_modules/accord/lib/adapters/minify-css/3.x.js
generated
vendored
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
var Adapter, MinifyCSS, 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');
|
||||
|
||||
MinifyCSS = (function(superClass) {
|
||||
var compile;
|
||||
|
||||
extend(MinifyCSS, superClass);
|
||||
|
||||
function MinifyCSS() {
|
||||
return MinifyCSS.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
MinifyCSS.prototype.name = 'minify-css';
|
||||
|
||||
MinifyCSS.prototype.extensions = ['css'];
|
||||
|
||||
MinifyCSS.prototype.output = 'css';
|
||||
|
||||
MinifyCSS.prototype.supportedEngines = ['clean-css'];
|
||||
|
||||
|
||||
/**
|
||||
* It is sometimes isolated, but not always because you can get it to process
|
||||
`import` rules with `processImport`
|
||||
*/
|
||||
|
||||
MinifyCSS.prototype.isolated = false;
|
||||
|
||||
MinifyCSS.prototype._render = function(str, options) {
|
||||
return compile((function(_this) {
|
||||
return function() {
|
||||
return (new _this.engine(options)).minify(str);
|
||||
};
|
||||
})(this));
|
||||
};
|
||||
|
||||
compile = function(fn) {
|
||||
var err, res;
|
||||
try {
|
||||
res = fn();
|
||||
} catch (error) {
|
||||
err = error;
|
||||
return W.reject(err);
|
||||
}
|
||||
if (res.errors.length > 0) {
|
||||
W.reject(res);
|
||||
}
|
||||
return W.resolve({
|
||||
result: res.styles,
|
||||
warnings: res.warnings,
|
||||
stats: res.stats
|
||||
});
|
||||
};
|
||||
|
||||
return MinifyCSS;
|
||||
|
||||
})(Adapter);
|
||||
|
||||
module.exports = MinifyCSS;
|
||||
|
||||
}).call(this);
|
||||
5
node_modules/accord/lib/adapters/minify-css/index.js
generated
vendored
Normal file
5
node_modules/accord/lib/adapters/minify-css/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
module.exports = require('./3.x');
|
||||
|
||||
}).call(this);
|
||||
71
node_modules/accord/lib/adapters/minify-html/0.7.x - 1.x.js
generated
vendored
Normal file
71
node_modules/accord/lib/adapters/minify-html/0.7.x - 1.x.js
generated
vendored
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
var Adapter, MinifyHTML, 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');
|
||||
|
||||
MinifyHTML = (function(superClass) {
|
||||
var compile;
|
||||
|
||||
extend(MinifyHTML, superClass);
|
||||
|
||||
function MinifyHTML() {
|
||||
return MinifyHTML.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
MinifyHTML.prototype.name = 'minify-html';
|
||||
|
||||
MinifyHTML.prototype.extensions = ['html'];
|
||||
|
||||
MinifyHTML.prototype.output = 'html';
|
||||
|
||||
MinifyHTML.prototype.supportedEngines = ['html-minifier'];
|
||||
|
||||
|
||||
/**
|
||||
* I think that you could cause this to not be isolated by using the minifyCSS
|
||||
option and then making that import stylesheets, but I'm not even sure if
|
||||
MinifyHTML would support that...
|
||||
*/
|
||||
|
||||
MinifyHTML.prototype.isolated = true;
|
||||
|
||||
MinifyHTML.prototype._render = function(str, options) {
|
||||
options = defaults(options, {
|
||||
removeComments: true,
|
||||
collapseWhitespace: true,
|
||||
removeEmptyAttributes: true
|
||||
});
|
||||
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 MinifyHTML;
|
||||
|
||||
})(Adapter);
|
||||
|
||||
module.exports = MinifyHTML;
|
||||
|
||||
}).call(this);
|
||||
71
node_modules/accord/lib/adapters/minify-html/2.x - 3.x.js
generated
vendored
Normal file
71
node_modules/accord/lib/adapters/minify-html/2.x - 3.x.js
generated
vendored
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
var Adapter, MinifyHTML, 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');
|
||||
|
||||
MinifyHTML = (function(superClass) {
|
||||
var compile;
|
||||
|
||||
extend(MinifyHTML, superClass);
|
||||
|
||||
function MinifyHTML() {
|
||||
return MinifyHTML.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
MinifyHTML.prototype.name = 'minify-html';
|
||||
|
||||
MinifyHTML.prototype.extensions = ['html'];
|
||||
|
||||
MinifyHTML.prototype.output = 'html';
|
||||
|
||||
MinifyHTML.prototype.supportedEngines = ['html-minifier'];
|
||||
|
||||
|
||||
/**
|
||||
* I think that you could cause this to not be isolated by using the minifyCSS
|
||||
option and then making that import stylesheets, but I'm not even sure if
|
||||
MinifyHTML would support that...
|
||||
*/
|
||||
|
||||
MinifyHTML.prototype.isolated = true;
|
||||
|
||||
MinifyHTML.prototype._render = function(str, options) {
|
||||
options = defaults(options, {
|
||||
removeComments: true,
|
||||
collapseWhitespace: true,
|
||||
removeEmptyAttributes: true
|
||||
});
|
||||
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 MinifyHTML;
|
||||
|
||||
})(Adapter);
|
||||
|
||||
module.exports = MinifyHTML;
|
||||
|
||||
}).call(this);
|
||||
5
node_modules/accord/lib/adapters/minify-html/index.js
generated
vendored
Normal file
5
node_modules/accord/lib/adapters/minify-html/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
module.exports = require('./2.x - 3.x');
|
||||
|
||||
}).call(this);
|
||||
83
node_modules/accord/lib/adapters/minify-js/2.x.js
generated
vendored
Normal file
83
node_modules/accord/lib/adapters/minify-js/2.x.js
generated
vendored
Normal file
|
|
@ -0,0 +1,83 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
var Adapter, MinifyJS, W, convert, 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');
|
||||
|
||||
W = require('when');
|
||||
|
||||
path = require('path');
|
||||
|
||||
convert = require('convert-source-map');
|
||||
|
||||
MinifyJS = (function(superClass) {
|
||||
var compile;
|
||||
|
||||
extend(MinifyJS, superClass);
|
||||
|
||||
function MinifyJS() {
|
||||
return MinifyJS.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
MinifyJS.prototype.name = 'minify-js';
|
||||
|
||||
MinifyJS.prototype.extensions = ['js'];
|
||||
|
||||
MinifyJS.prototype.output = 'js';
|
||||
|
||||
MinifyJS.prototype.supportedEngines = ['uglify-js'];
|
||||
|
||||
MinifyJS.prototype.isolated = true;
|
||||
|
||||
MinifyJS.prototype._render = function(str, options) {
|
||||
if (options.sourcemap === true) {
|
||||
options.sourceMap = true;
|
||||
options.outSourceMap = path.basename(options.filename);
|
||||
}
|
||||
return compile((function(_this) {
|
||||
return function() {
|
||||
var obj, res;
|
||||
res = _this.engine.minify(str, Object.assign(options, {
|
||||
fromString: true
|
||||
}));
|
||||
obj = {
|
||||
result: res.code
|
||||
};
|
||||
if (options.sourceMap) {
|
||||
obj.sourcemap = JSON.parse(res.map);
|
||||
obj.sourcemap.sources.pop();
|
||||
obj.sourcemap.sources.push(options.filename);
|
||||
obj.result = convert.removeMapFileComments(obj.result).trim();
|
||||
return sourcemaps.inline_sources(obj.sourcemap).then(function(map) {
|
||||
obj.sourcemap = map;
|
||||
return obj;
|
||||
});
|
||||
} else {
|
||||
return obj;
|
||||
}
|
||||
};
|
||||
})(this));
|
||||
};
|
||||
|
||||
compile = function(fn, map) {
|
||||
var err, res;
|
||||
try {
|
||||
res = fn();
|
||||
} catch (error) {
|
||||
err = error;
|
||||
return W.reject(err);
|
||||
}
|
||||
return W.resolve(res);
|
||||
};
|
||||
|
||||
return MinifyJS;
|
||||
|
||||
})(Adapter);
|
||||
|
||||
module.exports = MinifyJS;
|
||||
|
||||
}).call(this);
|
||||
5
node_modules/accord/lib/adapters/minify-js/index.js
generated
vendored
Normal file
5
node_modules/accord/lib/adapters/minify-js/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
module.exports = require('./2.x');
|
||||
|
||||
}).call(this);
|
||||
85
node_modules/accord/lib/adapters/mustache/3.x.js
generated
vendored
Normal file
85
node_modules/accord/lib/adapters/mustache/3.x.js
generated
vendored
Normal file
|
|
@ -0,0 +1,85 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
var Adapter, Mustache, W, fs, path, util,
|
||||
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');
|
||||
|
||||
util = require('util');
|
||||
|
||||
fs = require('fs');
|
||||
|
||||
path = require('path');
|
||||
|
||||
Mustache = (function(superClass) {
|
||||
var compile;
|
||||
|
||||
extend(Mustache, superClass);
|
||||
|
||||
function Mustache() {
|
||||
return Mustache.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
Mustache.prototype.name = 'mustache';
|
||||
|
||||
Mustache.prototype.extensions = ['mustache', 'hogan'];
|
||||
|
||||
Mustache.prototype.output = 'html';
|
||||
|
||||
Mustache.prototype.supportedEngines = ['hogan.js'];
|
||||
|
||||
Mustache.prototype._render = function(str, options) {
|
||||
return compile((function(_this) {
|
||||
return function() {
|
||||
return _this.engine.compile(str, options).render(options, options.partials);
|
||||
};
|
||||
})(this));
|
||||
};
|
||||
|
||||
Mustache.prototype._compile = function(str, options) {
|
||||
return compile((function(_this) {
|
||||
return function() {
|
||||
return _this.engine.compile(str, options);
|
||||
};
|
||||
})(this));
|
||||
};
|
||||
|
||||
Mustache.prototype._compileClient = function(str, options) {
|
||||
options.asString = true;
|
||||
return this._compile(str, options).then(function(o) {
|
||||
return {
|
||||
result: "new Hogan.Template(" + (o.result.toString()) + ");"
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
Mustache.prototype.clientHelpers = function() {
|
||||
var runtime_path, version;
|
||||
version = require(path.join(this.engine.__accord_path, 'package')).version;
|
||||
runtime_path = path.join(this.engine.__accord_path, "web/builds/" + version + "/hogan-" + version + ".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 Mustache;
|
||||
|
||||
})(Adapter);
|
||||
|
||||
module.exports = Mustache;
|
||||
|
||||
}).call(this);
|
||||
5
node_modules/accord/lib/adapters/mustache/index.js
generated
vendored
Normal file
5
node_modules/accord/lib/adapters/mustache/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
module.exports = require('./3.x');
|
||||
|
||||
}).call(this);
|
||||
66
node_modules/accord/lib/adapters/myth/1.x.js
generated
vendored
Normal file
66
node_modules/accord/lib/adapters/myth/1.x.js
generated
vendored
Normal file
|
|
@ -0,0 +1,66 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
var Adapter, Myth, W, convert,
|
||||
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');
|
||||
|
||||
convert = require('convert-source-map');
|
||||
|
||||
W = require('when');
|
||||
|
||||
Myth = (function(superClass) {
|
||||
var compile;
|
||||
|
||||
extend(Myth, superClass);
|
||||
|
||||
function Myth() {
|
||||
return Myth.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
Myth.prototype.name = 'myth';
|
||||
|
||||
Myth.prototype.extensions = ['myth', 'mcss'];
|
||||
|
||||
Myth.prototype.output = 'css';
|
||||
|
||||
Myth.prototype._render = function(str, options) {
|
||||
options.source = options.filename;
|
||||
delete options.filename;
|
||||
return compile(options.sourcemap, ((function(_this) {
|
||||
return function() {
|
||||
return _this.engine(str, options);
|
||||
};
|
||||
})(this)));
|
||||
};
|
||||
|
||||
compile = function(sourcemap, fn) {
|
||||
var data, err, map, res, src;
|
||||
try {
|
||||
res = fn();
|
||||
} catch (error) {
|
||||
err = error;
|
||||
return W.reject(err);
|
||||
}
|
||||
data = {
|
||||
result: res
|
||||
};
|
||||
if (sourcemap) {
|
||||
map = convert.fromSource(res).sourcemap;
|
||||
src = convert.removeComments(res);
|
||||
data = {
|
||||
result: src,
|
||||
sourcemap: map
|
||||
};
|
||||
}
|
||||
return W.resolve(data);
|
||||
};
|
||||
|
||||
return Myth;
|
||||
|
||||
})(Adapter);
|
||||
|
||||
module.exports = Myth;
|
||||
|
||||
}).call(this);
|
||||
5
node_modules/accord/lib/adapters/myth/index.js
generated
vendored
Normal file
5
node_modules/accord/lib/adapters/myth/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
module.exports = require('./1.x');
|
||||
|
||||
}).call(this);
|
||||
64
node_modules/accord/lib/adapters/postcss/4.x - 5.x.js
generated
vendored
Normal file
64
node_modules/accord/lib/adapters/postcss/4.x - 5.x.js
generated
vendored
Normal file
|
|
@ -0,0 +1,64 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
var Adapter, PostCSS, W, convert, 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');
|
||||
|
||||
W = require('when');
|
||||
|
||||
path = require('path');
|
||||
|
||||
convert = require('convert-source-map');
|
||||
|
||||
PostCSS = (function(superClass) {
|
||||
extend(PostCSS, superClass);
|
||||
|
||||
function PostCSS() {
|
||||
return PostCSS.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
PostCSS.prototype.name = 'postcss';
|
||||
|
||||
PostCSS.prototype.extensions = ['css', 'pcss', 'sss'];
|
||||
|
||||
PostCSS.prototype.output = 'css';
|
||||
|
||||
PostCSS.prototype._render = function(str, options) {
|
||||
var processor, ref, use;
|
||||
use = (ref = options.use) != null ? ref : [];
|
||||
processor = this.engine(use);
|
||||
if (options.map === true) {
|
||||
options.map = {
|
||||
inline: false
|
||||
};
|
||||
options.from = options.filename;
|
||||
}
|
||||
return W(processor.process(str, options)).then(function(res) {
|
||||
var obj;
|
||||
obj = {
|
||||
result: res.css
|
||||
};
|
||||
if (options.map) {
|
||||
obj.sourcemap = JSON.parse(res.map);
|
||||
obj.result = convert.removeMapFileComments(obj.result).trim();
|
||||
return sourcemaps.inline_sources(obj.sourcemap).then(function(map) {
|
||||
obj.sourcemap = map;
|
||||
return obj;
|
||||
});
|
||||
} else {
|
||||
return obj;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
return PostCSS;
|
||||
|
||||
})(Adapter);
|
||||
|
||||
module.exports = PostCSS;
|
||||
|
||||
}).call(this);
|
||||
5
node_modules/accord/lib/adapters/postcss/index.js
generated
vendored
Normal file
5
node_modules/accord/lib/adapters/postcss/index.js
generated
vendored
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
module.exports = require('./4.x - 5.x');
|
||||
|
||||
}).call(this);
|
||||
71
node_modules/accord/lib/adapters/scss/2.x.js
generated
vendored
Normal file
71
node_modules/accord/lib/adapters/scss/2.x.js
generated
vendored
Normal file
|
|
@ -0,0 +1,71 @@
|
|||
// Generated by CoffeeScript 1.12.1
|
||||
(function() {
|
||||
var Adapter, SCSS, W, 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');
|
||||
|
||||
W = require('when');
|
||||
|
||||
path = require('path');
|
||||
|
||||
SCSS = (function(superClass) {
|
||||
extend(SCSS, superClass);
|
||||
|
||||
function SCSS() {
|
||||
return SCSS.__super__.constructor.apply(this, arguments);
|
||||
}
|
||||
|
||||
SCSS.prototype.name = 'scss';
|
||||
|
||||
SCSS.prototype.extensions = ['scss', 'sass'];
|
||||
|
||||
SCSS.prototype.output = 'css';
|
||||
|
||||
SCSS.prototype.supportedEngines = ['node-sass'];
|
||||
|
||||
SCSS.prototype._render = function(str, options) {
|
||||
var deferred;
|
||||
deferred = W.defer();
|
||||
if (options.sourcemap === true) {
|
||||
options.sourceMap = true;
|
||||
options.outFile = path.basename(options.filename).replace('.scss', '.css');
|
||||
options.omitSourceMapUrl = true;
|
||||
options.sourceMapContents = true;
|
||||
}
|
||||
options.file = options.filename;
|
||||
options.data = str;
|
||||
options.error = function(err) {
|
||||
return deferred.reject(err);
|
||||
};
|
||||
options.success = function(res) {
|
||||
var data;
|
||||
data = {
|
||||
result: String(res.css),
|
||||
imports: res.stats.includedFiles,
|
||||
meta: {
|
||||
entry: res.stats.entry,
|
||||
start: res.stats.start,
|
||||
end: res.stats.end,
|
||||
duration: res.stats.duration
|
||||
}
|
||||
};
|
||||
if (res.map && Object.keys(JSON.parse(res.map)).length) {
|
||||
data.sourcemap = JSON.parse(res.map);
|
||||
data.sourcemap.sources.pop();
|
||||
data.sourcemap.sources.push(options.file);
|
||||
}
|
||||
return deferred.resolve(data);
|
||||
};
|
||||
this.engine.render(options);
|
||||
return deferred.promise;
|
||||
};
|
||||
|
||||
return SCSS;
|
||||
|
||||
})(Adapter);
|
||||
|
||||
module.exports = SCSS;
|
||||
|
||||
}).call(this);
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue