mirror of
https://github.com/StartBootstrap/startbootstrap-sb-admin.git
synced 2024-12-28 01:42:23 +01:00
remove node_modules
This commit is contained in:
parent
4ecca14a9b
commit
88dbd8d591
11432 changed files with 0 additions and 1434534 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1 +0,0 @@
|
|||
node_modules
|
1
node_modules/.bin/acorn
generated
vendored
1
node_modules/.bin/acorn
generated
vendored
|
@ -1 +0,0 @@
|
|||
../acorn/bin/acorn
|
1
node_modules/.bin/browser-sync
generated
vendored
1
node_modules/.bin/browser-sync
generated
vendored
|
@ -1 +0,0 @@
|
|||
../browser-sync/bin/browser-sync.js
|
1
node_modules/.bin/buble
generated
vendored
1
node_modules/.bin/buble
generated
vendored
|
@ -1 +0,0 @@
|
|||
../buble/bin/buble
|
1
node_modules/.bin/dev-ip
generated
vendored
1
node_modules/.bin/dev-ip
generated
vendored
|
@ -1 +0,0 @@
|
|||
../dev-ip/lib/dev-ip.js
|
1
node_modules/.bin/errno
generated
vendored
1
node_modules/.bin/errno
generated
vendored
|
@ -1 +0,0 @@
|
|||
../errno/cli.js
|
1
node_modules/.bin/express
generated
vendored
1
node_modules/.bin/express
generated
vendored
|
@ -1 +0,0 @@
|
|||
../express/bin/express
|
1
node_modules/.bin/gulp
generated
vendored
1
node_modules/.bin/gulp
generated
vendored
|
@ -1 +0,0 @@
|
|||
../gulp/bin/gulp.js
|
1
node_modules/.bin/har-validator
generated
vendored
1
node_modules/.bin/har-validator
generated
vendored
|
@ -1 +0,0 @@
|
|||
../har-validator/bin/har-validator
|
1
node_modules/.bin/image-size
generated
vendored
1
node_modules/.bin/image-size
generated
vendored
|
@ -1 +0,0 @@
|
|||
../image-size/bin/image-size.js
|
1
node_modules/.bin/in-install
generated
vendored
1
node_modules/.bin/in-install
generated
vendored
|
@ -1 +0,0 @@
|
|||
../in-publish/in-install.js
|
1
node_modules/.bin/in-publish
generated
vendored
1
node_modules/.bin/in-publish
generated
vendored
|
@ -1 +0,0 @@
|
|||
../in-publish/in-publish.js
|
1
node_modules/.bin/lessc
generated
vendored
1
node_modules/.bin/lessc
generated
vendored
|
@ -1 +0,0 @@
|
|||
../less/bin/lessc
|
1
node_modules/.bin/lt
generated
vendored
1
node_modules/.bin/lt
generated
vendored
|
@ -1 +0,0 @@
|
|||
../localtunnel/bin/client
|
1
node_modules/.bin/node-gyp
generated
vendored
1
node_modules/.bin/node-gyp
generated
vendored
|
@ -1 +0,0 @@
|
|||
../node-gyp/bin/node-gyp.js
|
1
node_modules/.bin/node-sass
generated
vendored
1
node_modules/.bin/node-sass
generated
vendored
|
@ -1 +0,0 @@
|
|||
../node-sass/bin/node-sass
|
1
node_modules/.bin/nopt
generated
vendored
1
node_modules/.bin/nopt
generated
vendored
|
@ -1 +0,0 @@
|
|||
../nopt/bin/nopt.js
|
1
node_modules/.bin/not-in-install
generated
vendored
1
node_modules/.bin/not-in-install
generated
vendored
|
@ -1 +0,0 @@
|
|||
../in-publish/not-in-install.js
|
1
node_modules/.bin/not-in-publish
generated
vendored
1
node_modules/.bin/not-in-publish
generated
vendored
|
@ -1 +0,0 @@
|
|||
../in-publish/not-in-publish.js
|
1
node_modules/.bin/rimraf
generated
vendored
1
node_modules/.bin/rimraf
generated
vendored
|
@ -1 +0,0 @@
|
|||
../rimraf/bin.js
|
1
node_modules/.bin/sassgraph
generated
vendored
1
node_modules/.bin/sassgraph
generated
vendored
|
@ -1 +0,0 @@
|
|||
../sass-graph/bin/sassgraph
|
1
node_modules/.bin/semver
generated
vendored
1
node_modules/.bin/semver
generated
vendored
|
@ -1 +0,0 @@
|
|||
../semver/bin/semver
|
1
node_modules/.bin/sshpk-conv
generated
vendored
1
node_modules/.bin/sshpk-conv
generated
vendored
|
@ -1 +0,0 @@
|
|||
../sshpk/bin/sshpk-conv
|
1
node_modules/.bin/sshpk-sign
generated
vendored
1
node_modules/.bin/sshpk-sign
generated
vendored
|
@ -1 +0,0 @@
|
|||
../sshpk/bin/sshpk-sign
|
1
node_modules/.bin/sshpk-verify
generated
vendored
1
node_modules/.bin/sshpk-verify
generated
vendored
|
@ -1 +0,0 @@
|
|||
../sshpk/bin/sshpk-verify
|
1
node_modules/.bin/strip-indent
generated
vendored
1
node_modules/.bin/strip-indent
generated
vendored
|
@ -1 +0,0 @@
|
|||
../strip-indent/cli.js
|
1
node_modules/.bin/throttleproxy
generated
vendored
1
node_modules/.bin/throttleproxy
generated
vendored
|
@ -1 +0,0 @@
|
|||
../stream-throttle/bin/throttleproxy.js
|
1
node_modules/.bin/uglifyjs
generated
vendored
1
node_modules/.bin/uglifyjs
generated
vendored
|
@ -1 +0,0 @@
|
|||
../uglify-js/bin/uglifyjs
|
1
node_modules/.bin/user-home
generated
vendored
1
node_modules/.bin/user-home
generated
vendored
|
@ -1 +0,0 @@
|
|||
../user-home/cli.js
|
1
node_modules/.bin/uuid
generated
vendored
1
node_modules/.bin/uuid
generated
vendored
|
@ -1 +0,0 @@
|
|||
../node-uuid/bin/uuid
|
1
node_modules/.bin/weinre
generated
vendored
1
node_modules/.bin/weinre
generated
vendored
|
@ -1 +0,0 @@
|
|||
../weinre/weinre
|
1
node_modules/.bin/which
generated
vendored
1
node_modules/.bin/which
generated
vendored
|
@ -1 +0,0 @@
|
|||
../which/bin/which
|
1
node_modules/.bin/window-size
generated
vendored
1
node_modules/.bin/window-size
generated
vendored
|
@ -1 +0,0 @@
|
|||
../window-size/cli.js
|
15
node_modules/abbrev/LICENSE
generated
vendored
15
node_modules/abbrev/LICENSE
generated
vendored
|
@ -1,15 +0,0 @@
|
|||
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
23
node_modules/abbrev/README.md
generated
vendored
|
@ -1,23 +0,0 @@
|
|||
# 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
61
node_modules/abbrev/abbrev.js
generated
vendored
|
@ -1,61 +0,0 @@
|
|||
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
92
node_modules/abbrev/package.json
generated
vendored
|
@ -1,92 +0,0 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "abbrev@1",
|
||||
"scope": null,
|
||||
"escapedName": "abbrev",
|
||||
"name": "abbrev",
|
||||
"rawSpec": "1",
|
||||
"spec": ">=1.0.0 <2.0.0",
|
||||
"type": "range"
|
||||
},
|
||||
"/Users/DANGER_DAVID/Sites/startbootstrap-themes/startbootstrap-sb-admin/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/DANGER_DAVID/Sites/startbootstrap-themes/startbootstrap-sb-admin/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"
|
||||
}
|
212
node_modules/accepts/HISTORY.md
generated
vendored
212
node_modules/accepts/HISTORY.md
generated
vendored
|
@ -1,212 +0,0 @@
|
|||
1.3.3 / 2016-05-02
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.1.11
|
||||
- deps: mime-db@~1.23.0
|
||||
* deps: negotiator@0.6.1
|
||||
- perf: improve `Accept` parsing speed
|
||||
- perf: improve `Accept-Charset` parsing speed
|
||||
- perf: improve `Accept-Encoding` parsing speed
|
||||
- perf: improve `Accept-Language` parsing speed
|
||||
|
||||
1.3.2 / 2016-03-08
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.1.10
|
||||
- Fix extension of `application/dash+xml`
|
||||
- Update primary extension for `audio/mp4`
|
||||
- deps: mime-db@~1.22.0
|
||||
|
||||
1.3.1 / 2016-01-19
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.1.9
|
||||
- deps: mime-db@~1.21.0
|
||||
|
||||
1.3.0 / 2015-09-29
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.1.7
|
||||
- deps: mime-db@~1.19.0
|
||||
* deps: negotiator@0.6.0
|
||||
- Fix including type extensions in parameters in `Accept` parsing
|
||||
- Fix parsing `Accept` parameters with quoted equals
|
||||
- Fix parsing `Accept` parameters with quoted semicolons
|
||||
- Lazy-load modules from main entry point
|
||||
- perf: delay type concatenation until needed
|
||||
- perf: enable strict mode
|
||||
- perf: hoist regular expressions
|
||||
- perf: remove closures getting spec properties
|
||||
- perf: remove a closure from media type parsing
|
||||
- perf: remove property delete from media type parsing
|
||||
|
||||
1.2.13 / 2015-09-06
|
||||
===================
|
||||
|
||||
* deps: mime-types@~2.1.6
|
||||
- deps: mime-db@~1.18.0
|
||||
|
||||
1.2.12 / 2015-07-30
|
||||
===================
|
||||
|
||||
* deps: mime-types@~2.1.4
|
||||
- deps: mime-db@~1.16.0
|
||||
|
||||
1.2.11 / 2015-07-16
|
||||
===================
|
||||
|
||||
* deps: mime-types@~2.1.3
|
||||
- deps: mime-db@~1.15.0
|
||||
|
||||
1.2.10 / 2015-07-01
|
||||
===================
|
||||
|
||||
* deps: mime-types@~2.1.2
|
||||
- deps: mime-db@~1.14.0
|
||||
|
||||
1.2.9 / 2015-06-08
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.1.1
|
||||
- perf: fix deopt during mapping
|
||||
|
||||
1.2.8 / 2015-06-07
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.1.0
|
||||
- deps: mime-db@~1.13.0
|
||||
* perf: avoid argument reassignment & argument slice
|
||||
* perf: avoid negotiator recursive construction
|
||||
* perf: enable strict mode
|
||||
* perf: remove unnecessary bitwise operator
|
||||
|
||||
1.2.7 / 2015-05-10
|
||||
==================
|
||||
|
||||
* deps: negotiator@0.5.3
|
||||
- Fix media type parameter matching to be case-insensitive
|
||||
|
||||
1.2.6 / 2015-05-07
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.0.11
|
||||
- deps: mime-db@~1.9.1
|
||||
* deps: negotiator@0.5.2
|
||||
- Fix comparing media types with quoted values
|
||||
- Fix splitting media types with quoted commas
|
||||
|
||||
1.2.5 / 2015-03-13
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.0.10
|
||||
- deps: mime-db@~1.8.0
|
||||
|
||||
1.2.4 / 2015-02-14
|
||||
==================
|
||||
|
||||
* Support Node.js 0.6
|
||||
* deps: mime-types@~2.0.9
|
||||
- deps: mime-db@~1.7.0
|
||||
* deps: negotiator@0.5.1
|
||||
- Fix preference sorting to be stable for long acceptable lists
|
||||
|
||||
1.2.3 / 2015-01-31
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.0.8
|
||||
- deps: mime-db@~1.6.0
|
||||
|
||||
1.2.2 / 2014-12-30
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.0.7
|
||||
- deps: mime-db@~1.5.0
|
||||
|
||||
1.2.1 / 2014-12-30
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.0.5
|
||||
- deps: mime-db@~1.3.1
|
||||
|
||||
1.2.0 / 2014-12-19
|
||||
==================
|
||||
|
||||
* deps: negotiator@0.5.0
|
||||
- Fix list return order when large accepted list
|
||||
- Fix missing identity encoding when q=0 exists
|
||||
- Remove dynamic building of Negotiator class
|
||||
|
||||
1.1.4 / 2014-12-10
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.0.4
|
||||
- deps: mime-db@~1.3.0
|
||||
|
||||
1.1.3 / 2014-11-09
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.0.3
|
||||
- deps: mime-db@~1.2.0
|
||||
|
||||
1.1.2 / 2014-10-14
|
||||
==================
|
||||
|
||||
* deps: negotiator@0.4.9
|
||||
- Fix error when media type has invalid parameter
|
||||
|
||||
1.1.1 / 2014-09-28
|
||||
==================
|
||||
|
||||
* deps: mime-types@~2.0.2
|
||||
- deps: mime-db@~1.1.0
|
||||
* deps: negotiator@0.4.8
|
||||
- Fix all negotiations to be case-insensitive
|
||||
- Stable sort preferences of same quality according to client order
|
||||
|
||||
1.1.0 / 2014-09-02
|
||||
==================
|
||||
|
||||
* update `mime-types`
|
||||
|
||||
1.0.7 / 2014-07-04
|
||||
==================
|
||||
|
||||
* Fix wrong type returned from `type` when match after unknown extension
|
||||
|
||||
1.0.6 / 2014-06-24
|
||||
==================
|
||||
|
||||
* deps: negotiator@0.4.7
|
||||
|
||||
1.0.5 / 2014-06-20
|
||||
==================
|
||||
|
||||
* fix crash when unknown extension given
|
||||
|
||||
1.0.4 / 2014-06-19
|
||||
==================
|
||||
|
||||
* use `mime-types`
|
||||
|
||||
1.0.3 / 2014-06-11
|
||||
==================
|
||||
|
||||
* deps: negotiator@0.4.6
|
||||
- Order by specificity when quality is the same
|
||||
|
||||
1.0.2 / 2014-05-29
|
||||
==================
|
||||
|
||||
* Fix interpretation when header not in request
|
||||
* deps: pin negotiator@0.4.5
|
||||
|
||||
1.0.1 / 2014-01-18
|
||||
==================
|
||||
|
||||
* Identity encoding isn't always acceptable
|
||||
* deps: negotiator@~0.4.0
|
||||
|
||||
1.0.0 / 2013-12-27
|
||||
==================
|
||||
|
||||
* Genesis
|
23
node_modules/accepts/LICENSE
generated
vendored
23
node_modules/accepts/LICENSE
generated
vendored
|
@ -1,23 +0,0 @@
|
|||
(The MIT License)
|
||||
|
||||
Copyright (c) 2014 Jonathan Ong <me@jongleberry.com>
|
||||
Copyright (c) 2015 Douglas Christopher Wilson <doug@somethingdoug.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
'Software'), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
135
node_modules/accepts/README.md
generated
vendored
135
node_modules/accepts/README.md
generated
vendored
|
@ -1,135 +0,0 @@
|
|||
# accepts
|
||||
|
||||
[![NPM Version][npm-image]][npm-url]
|
||||
[![NPM Downloads][downloads-image]][downloads-url]
|
||||
[![Node.js Version][node-version-image]][node-version-url]
|
||||
[![Build Status][travis-image]][travis-url]
|
||||
[![Test Coverage][coveralls-image]][coveralls-url]
|
||||
|
||||
Higher level content negotiation based on [negotiator](https://www.npmjs.com/package/negotiator). Extracted from [koa](https://www.npmjs.com/package/koa) for general use.
|
||||
|
||||
In addition to negotiator, it allows:
|
||||
|
||||
- Allows types as an array or arguments list, ie `(['text/html', 'application/json'])` as well as `('text/html', 'application/json')`.
|
||||
- Allows type shorthands such as `json`.
|
||||
- Returns `false` when no types match
|
||||
- Treats non-existent headers as `*`
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
npm install accepts
|
||||
```
|
||||
|
||||
## API
|
||||
|
||||
```js
|
||||
var accepts = require('accepts')
|
||||
```
|
||||
|
||||
### accepts(req)
|
||||
|
||||
Create a new `Accepts` object for the given `req`.
|
||||
|
||||
#### .charset(charsets)
|
||||
|
||||
Return the first accepted charset. If nothing in `charsets` is accepted,
|
||||
then `false` is returned.
|
||||
|
||||
#### .charsets()
|
||||
|
||||
Return the charsets that the request accepts, in the order of the client's
|
||||
preference (most preferred first).
|
||||
|
||||
#### .encoding(encodings)
|
||||
|
||||
Return the first accepted encoding. If nothing in `encodings` is accepted,
|
||||
then `false` is returned.
|
||||
|
||||
#### .encodings()
|
||||
|
||||
Return the encodings that the request accepts, in the order of the client's
|
||||
preference (most preferred first).
|
||||
|
||||
#### .language(languages)
|
||||
|
||||
Return the first accepted language. If nothing in `languages` is accepted,
|
||||
then `false` is returned.
|
||||
|
||||
#### .languages()
|
||||
|
||||
Return the languages that the request accepts, in the order of the client's
|
||||
preference (most preferred first).
|
||||
|
||||
#### .type(types)
|
||||
|
||||
Return the first accepted type (and it is returned as the same text as what
|
||||
appears in the `types` array). If nothing in `types` is accepted, then `false`
|
||||
is returned.
|
||||
|
||||
The `types` array can contain full MIME types or file extensions. Any value
|
||||
that is not a full MIME types is passed to `require('mime-types').lookup`.
|
||||
|
||||
#### .types()
|
||||
|
||||
Return the types that the request accepts, in the order of the client's
|
||||
preference (most preferred first).
|
||||
|
||||
## Examples
|
||||
|
||||
### Simple type negotiation
|
||||
|
||||
This simple example shows how to use `accepts` to return a different typed
|
||||
respond body based on what the client wants to accept. The server lists it's
|
||||
preferences in order and will get back the best match between the client and
|
||||
server.
|
||||
|
||||
```js
|
||||
var accepts = require('accepts')
|
||||
var http = require('http')
|
||||
|
||||
function app(req, res) {
|
||||
var accept = accepts(req)
|
||||
|
||||
// the order of this list is significant; should be server preferred order
|
||||
switch(accept.type(['json', 'html'])) {
|
||||
case 'json':
|
||||
res.setHeader('Content-Type', 'application/json')
|
||||
res.write('{"hello":"world!"}')
|
||||
break
|
||||
case 'html':
|
||||
res.setHeader('Content-Type', 'text/html')
|
||||
res.write('<b>hello, world!</b>')
|
||||
break
|
||||
default:
|
||||
// the fallback is text/plain, so no need to specify it above
|
||||
res.setHeader('Content-Type', 'text/plain')
|
||||
res.write('hello, world!')
|
||||
break
|
||||
}
|
||||
|
||||
res.end()
|
||||
}
|
||||
|
||||
http.createServer(app).listen(3000)
|
||||
```
|
||||
|
||||
You can test this out with the cURL program:
|
||||
```sh
|
||||
curl -I -H'Accept: text/html' http://localhost:3000/
|
||||
```
|
||||
|
||||
## License
|
||||
|
||||
[MIT](LICENSE)
|
||||
|
||||
[npm-image]: https://img.shields.io/npm/v/accepts.svg
|
||||
[npm-url]: https://npmjs.org/package/accepts
|
||||
[node-version-image]: https://img.shields.io/node/v/accepts.svg
|
||||
[node-version-url]: http://nodejs.org/download/
|
||||
[travis-image]: https://img.shields.io/travis/jshttp/accepts/master.svg
|
||||
[travis-url]: https://travis-ci.org/jshttp/accepts
|
||||
[coveralls-image]: https://img.shields.io/coveralls/jshttp/accepts/master.svg
|
||||
[coveralls-url]: https://coveralls.io/r/jshttp/accepts
|
||||
[downloads-image]: https://img.shields.io/npm/dm/accepts.svg
|
||||
[downloads-url]: https://npmjs.org/package/accepts
|
231
node_modules/accepts/index.js
generated
vendored
231
node_modules/accepts/index.js
generated
vendored
|
@ -1,231 +0,0 @@
|
|||
/*!
|
||||
* accepts
|
||||
* Copyright(c) 2014 Jonathan Ong
|
||||
* Copyright(c) 2015 Douglas Christopher Wilson
|
||||
* MIT Licensed
|
||||
*/
|
||||
|
||||
'use strict'
|
||||
|
||||
/**
|
||||
* Module dependencies.
|
||||
* @private
|
||||
*/
|
||||
|
||||
var Negotiator = require('negotiator')
|
||||
var mime = require('mime-types')
|
||||
|
||||
/**
|
||||
* Module exports.
|
||||
* @public
|
||||
*/
|
||||
|
||||
module.exports = Accepts
|
||||
|
||||
/**
|
||||
* Create a new Accepts object for the given req.
|
||||
*
|
||||
* @param {object} req
|
||||
* @public
|
||||
*/
|
||||
|
||||
function Accepts(req) {
|
||||
if (!(this instanceof Accepts))
|
||||
return new Accepts(req)
|
||||
|
||||
this.headers = req.headers
|
||||
this.negotiator = new Negotiator(req)
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the given `type(s)` is acceptable, returning
|
||||
* the best match when true, otherwise `undefined`, in which
|
||||
* case you should respond with 406 "Not Acceptable".
|
||||
*
|
||||
* The `type` value may be a single mime type string
|
||||
* such as "application/json", the extension name
|
||||
* such as "json" or an array `["json", "html", "text/plain"]`. When a list
|
||||
* or array is given the _best_ match, if any is returned.
|
||||
*
|
||||
* Examples:
|
||||
*
|
||||
* // Accept: text/html
|
||||
* this.types('html');
|
||||
* // => "html"
|
||||
*
|
||||
* // Accept: text/*, application/json
|
||||
* this.types('html');
|
||||
* // => "html"
|
||||
* this.types('text/html');
|
||||
* // => "text/html"
|
||||
* this.types('json', 'text');
|
||||
* // => "json"
|
||||
* this.types('application/json');
|
||||
* // => "application/json"
|
||||
*
|
||||
* // Accept: text/*, application/json
|
||||
* this.types('image/png');
|
||||
* this.types('png');
|
||||
* // => undefined
|
||||
*
|
||||
* // Accept: text/*;q=.5, application/json
|
||||
* this.types(['html', 'json']);
|
||||
* this.types('html', 'json');
|
||||
* // => "json"
|
||||
*
|
||||
* @param {String|Array} types...
|
||||
* @return {String|Array|Boolean}
|
||||
* @public
|
||||
*/
|
||||
|
||||
Accepts.prototype.type =
|
||||
Accepts.prototype.types = function (types_) {
|
||||
var types = types_
|
||||
|
||||
// support flattened arguments
|
||||
if (types && !Array.isArray(types)) {
|
||||
types = new Array(arguments.length)
|
||||
for (var i = 0; i < types.length; i++) {
|
||||
types[i] = arguments[i]
|
||||
}
|
||||
}
|
||||
|
||||
// no types, return all requested types
|
||||
if (!types || types.length === 0) {
|
||||
return this.negotiator.mediaTypes()
|
||||
}
|
||||
|
||||
if (!this.headers.accept) return types[0];
|
||||
var mimes = types.map(extToMime);
|
||||
var accepts = this.negotiator.mediaTypes(mimes.filter(validMime));
|
||||
var first = accepts[0];
|
||||
if (!first) return false;
|
||||
return types[mimes.indexOf(first)];
|
||||
}
|
||||
|
||||
/**
|
||||
* Return accepted encodings or best fit based on `encodings`.
|
||||
*
|
||||
* Given `Accept-Encoding: gzip, deflate`
|
||||
* an array sorted by quality is returned:
|
||||
*
|
||||
* ['gzip', 'deflate']
|
||||
*
|
||||
* @param {String|Array} encodings...
|
||||
* @return {String|Array}
|
||||
* @public
|
||||
*/
|
||||
|
||||
Accepts.prototype.encoding =
|
||||
Accepts.prototype.encodings = function (encodings_) {
|
||||
var encodings = encodings_
|
||||
|
||||
// support flattened arguments
|
||||
if (encodings && !Array.isArray(encodings)) {
|
||||
encodings = new Array(arguments.length)
|
||||
for (var i = 0; i < encodings.length; i++) {
|
||||
encodings[i] = arguments[i]
|
||||
}
|
||||
}
|
||||
|
||||
// no encodings, return all requested encodings
|
||||
if (!encodings || encodings.length === 0) {
|
||||
return this.negotiator.encodings()
|
||||
}
|
||||
|
||||
return this.negotiator.encodings(encodings)[0] || false
|
||||
}
|
||||
|
||||
/**
|
||||
* Return accepted charsets or best fit based on `charsets`.
|
||||
*
|
||||
* Given `Accept-Charset: utf-8, iso-8859-1;q=0.2, utf-7;q=0.5`
|
||||
* an array sorted by quality is returned:
|
||||
*
|
||||
* ['utf-8', 'utf-7', 'iso-8859-1']
|
||||
*
|
||||
* @param {String|Array} charsets...
|
||||
* @return {String|Array}
|
||||
* @public
|
||||
*/
|
||||
|
||||
Accepts.prototype.charset =
|
||||
Accepts.prototype.charsets = function (charsets_) {
|
||||
var charsets = charsets_
|
||||
|
||||
// support flattened arguments
|
||||
if (charsets && !Array.isArray(charsets)) {
|
||||
charsets = new Array(arguments.length)
|
||||
for (var i = 0; i < charsets.length; i++) {
|
||||
charsets[i] = arguments[i]
|
||||
}
|
||||
}
|
||||
|
||||
// no charsets, return all requested charsets
|
||||
if (!charsets || charsets.length === 0) {
|
||||
return this.negotiator.charsets()
|
||||
}
|
||||
|
||||
return this.negotiator.charsets(charsets)[0] || false
|
||||
}
|
||||
|
||||
/**
|
||||
* Return accepted languages or best fit based on `langs`.
|
||||
*
|
||||
* Given `Accept-Language: en;q=0.8, es, pt`
|
||||
* an array sorted by quality is returned:
|
||||
*
|
||||
* ['es', 'pt', 'en']
|
||||
*
|
||||
* @param {String|Array} langs...
|
||||
* @return {Array|String}
|
||||
* @public
|
||||
*/
|
||||
|
||||
Accepts.prototype.lang =
|
||||
Accepts.prototype.langs =
|
||||
Accepts.prototype.language =
|
||||
Accepts.prototype.languages = function (languages_) {
|
||||
var languages = languages_
|
||||
|
||||
// support flattened arguments
|
||||
if (languages && !Array.isArray(languages)) {
|
||||
languages = new Array(arguments.length)
|
||||
for (var i = 0; i < languages.length; i++) {
|
||||
languages[i] = arguments[i]
|
||||
}
|
||||
}
|
||||
|
||||
// no languages, return all requested languages
|
||||
if (!languages || languages.length === 0) {
|
||||
return this.negotiator.languages()
|
||||
}
|
||||
|
||||
return this.negotiator.languages(languages)[0] || false
|
||||
}
|
||||
|
||||
/**
|
||||
* Convert extnames to mime.
|
||||
*
|
||||
* @param {String} type
|
||||
* @return {String}
|
||||
* @private
|
||||
*/
|
||||
|
||||
function extToMime(type) {
|
||||
return type.indexOf('/') === -1
|
||||
? mime.lookup(type)
|
||||
: type
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if mime is valid.
|
||||
*
|
||||
* @param {String} type
|
||||
* @return {String}
|
||||
* @private
|
||||
*/
|
||||
|
||||
function validMime(type) {
|
||||
return typeof type === 'string';
|
||||
}
|
113
node_modules/accepts/package.json
generated
vendored
113
node_modules/accepts/package.json
generated
vendored
|
@ -1,113 +0,0 @@
|
|||
{
|
||||
"_args": [
|
||||
[
|
||||
{
|
||||
"raw": "accepts@~1.3.3",
|
||||
"scope": null,
|
||||
"escapedName": "accepts",
|
||||
"name": "accepts",
|
||||
"rawSpec": "~1.3.3",
|
||||
"spec": ">=1.3.3 <1.4.0",
|
||||
"type": "range"
|
||||
},
|
||||
"/Users/DANGER_DAVID/Sites/startbootstrap-themes/startbootstrap-sb-admin/node_modules/serve-index"
|
||||
]
|
||||
],
|
||||
"_from": "accepts@>=1.3.3 <1.4.0",
|
||||
"_id": "accepts@1.3.3",
|
||||
"_inCache": true,
|
||||
"_location": "/accepts",
|
||||
"_nodeVersion": "4.4.3",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-16-east.internal.npmjs.com",
|
||||
"tmp": "tmp/accepts-1.3.3.tgz_1462251932032_0.7092335098423064"
|
||||
},
|
||||
"_npmUser": {
|
||||
"name": "dougwilson",
|
||||
"email": "doug@somethingdoug.com"
|
||||
},
|
||||
"_npmVersion": "2.15.1",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"raw": "accepts@~1.3.3",
|
||||
"scope": null,
|
||||
"escapedName": "accepts",
|
||||
"name": "accepts",
|
||||
"rawSpec": "~1.3.3",
|
||||
"spec": ">=1.3.3 <1.4.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/engine.io",
|
||||
"/serve-index"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.3.tgz",
|
||||
"_shasum": "c3ca7434938648c3e0d9c1e328dd68b622c284ca",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "accepts@~1.3.3",
|
||||
"_where": "/Users/DANGER_DAVID/Sites/startbootstrap-themes/startbootstrap-sb-admin/node_modules/serve-index",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jshttp/accepts/issues"
|
||||
},
|
||||
"contributors": [
|
||||
{
|
||||
"name": "Douglas Christopher Wilson",
|
||||
"email": "doug@somethingdoug.com"
|
||||
},
|
||||
{
|
||||
"name": "Jonathan Ong",
|
||||
"email": "me@jongleberry.com",
|
||||
"url": "http://jongleberry.com"
|
||||
}
|
||||
],
|
||||
"dependencies": {
|
||||
"mime-types": "~2.1.11",
|
||||
"negotiator": "0.6.1"
|
||||
},
|
||||
"description": "Higher-level content negotiation",
|
||||
"devDependencies": {
|
||||
"istanbul": "0.4.3",
|
||||
"mocha": "~1.21.5"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "c3ca7434938648c3e0d9c1e328dd68b622c284ca",
|
||||
"tarball": "https://registry.npmjs.org/accepts/-/accepts-1.3.3.tgz"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 0.6"
|
||||
},
|
||||
"files": [
|
||||
"LICENSE",
|
||||
"HISTORY.md",
|
||||
"index.js"
|
||||
],
|
||||
"gitHead": "3e925b1e65ed7da2798849683d49814680dfa426",
|
||||
"homepage": "https://github.com/jshttp/accepts#readme",
|
||||
"keywords": [
|
||||
"content",
|
||||
"negotiation",
|
||||
"accept",
|
||||
"accepts"
|
||||
],
|
||||
"license": "MIT",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "dougwilson",
|
||||
"email": "doug@somethingdoug.com"
|
||||
}
|
||||
],
|
||||
"name": "accepts",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/jshttp/accepts.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha --reporter spec --check-leaks --bail test/",
|
||||
"test-cov": "istanbul cover node_modules/mocha/bin/_mocha -- --reporter dot --check-leaks test/",
|
||||
"test-travis": "istanbul cover node_modules/mocha/bin/_mocha --report lcovonly -- --reporter spec --check-leaks test/"
|
||||
},
|
||||
"version": "1.3.3"
|
||||
}
|
11
node_modules/accord/.editorconfig
generated
vendored
11
node_modules/accord/.editorconfig
generated
vendored
|
@ -1,11 +0,0 @@
|
|||
# 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
8
node_modules/accord/.npmignore
generated
vendored
|
@ -1,8 +0,0 @@
|
|||
test
|
||||
src
|
||||
.travis.yml
|
||||
Makefile
|
||||
docs
|
||||
coverage
|
||||
yarn.lock
|
||||
polytest_*
|
20
node_modules/accord/contributing.md
generated
vendored
20
node_modules/accord/contributing.md
generated
vendored
|
@ -1,20 +0,0 @@
|
|||
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
278
node_modules/accord/lib/adapter_base.js
generated
vendored
|
@ -1,278 +0,0 @@
|
|||
// 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
55
node_modules/accord/lib/adapters/LiveScript/1.x.js
generated
vendored
|
@ -1,55 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/LiveScript/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
74
node_modules/accord/lib/adapters/babel/4.x - 5.x.js
generated
vendored
|
@ -1,74 +0,0 @@
|
|||
// 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
86
node_modules/accord/lib/adapters/babel/6.x.js
generated
vendored
|
@ -1,86 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/babel/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
68
node_modules/accord/lib/adapters/buble/0.8.x - 0.14.x.js
generated
vendored
|
@ -1,68 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/buble/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
63
node_modules/accord/lib/adapters/cjsx/3.x.js
generated
vendored
|
@ -1,63 +0,0 @@
|
|||
// 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
63
node_modules/accord/lib/adapters/cjsx/4.x - 5.x.js
generated
vendored
|
@ -1,63 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/cjsx/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
55
node_modules/accord/lib/adapters/coco/0.9.x.js
generated
vendored
|
@ -1,55 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/coco/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
80
node_modules/accord/lib/adapters/coffee-script/1.x.js
generated
vendored
|
@ -1,80 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/coffee-script/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
58
node_modules/accord/lib/adapters/csso/1.0.x - 1.3.x.js
generated
vendored
|
@ -1,58 +0,0 @@
|
|||
// 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
61
node_modules/accord/lib/adapters/csso/2.x.js
generated
vendored
|
@ -1,61 +0,0 @@
|
|||
// 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
61
node_modules/accord/lib/adapters/csso/^1.4.js
generated
vendored
|
@ -1,61 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/csso/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
38
node_modules/accord/lib/adapters/dogescript/2.x.js
generated
vendored
|
@ -1,38 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/dogescript/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
80
node_modules/accord/lib/adapters/dot/1.x.js
generated
vendored
|
@ -1,80 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/dot/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
76
node_modules/accord/lib/adapters/eco/1.x.js
generated
vendored
|
@ -1,76 +0,0 @@
|
|||
// 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
73
node_modules/accord/lib/adapters/eco/=1.1.0-rc-3.js
generated
vendored
|
@ -1,73 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/eco/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
80
node_modules/accord/lib/adapters/ejs/2.x.js
generated
vendored
|
@ -1,80 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/ejs/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
62
node_modules/accord/lib/adapters/escape-html/0.5.x.js
generated
vendored
|
@ -1,62 +0,0 @@
|
|||
// 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
62
node_modules/accord/lib/adapters/escape-html/1.x.js
generated
vendored
|
@ -1,62 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/escape-html/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
69
node_modules/accord/lib/adapters/haml/0.6.x.js
generated
vendored
|
@ -1,69 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/haml/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
106
node_modules/accord/lib/adapters/handlebars/3.x - 4.x.js
generated
vendored
|
@ -1,106 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/handlebars/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
86
node_modules/accord/lib/adapters/jade/1.x.js
generated
vendored
|
@ -1,86 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/jade/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
78
node_modules/accord/lib/adapters/jsx/0.13.x.js
generated
vendored
|
@ -1,78 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/jsx/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
67
node_modules/accord/lib/adapters/less/2.x.js
generated
vendored
|
@ -1,67 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/less/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
57
node_modules/accord/lib/adapters/marc/0.1.x.js
generated
vendored
|
@ -1,57 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/marc/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
42
node_modules/accord/lib/adapters/markdown/0.3.x.js
generated
vendored
|
@ -1,42 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/markdown/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
68
node_modules/accord/lib/adapters/minify-css/3.x.js
generated
vendored
|
@ -1,68 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/minify-css/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
71
node_modules/accord/lib/adapters/minify-html/0.7.x - 1.x.js
generated
vendored
|
@ -1,71 +0,0 @@
|
|||
// 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
71
node_modules/accord/lib/adapters/minify-html/2.x - 3.x.js
generated
vendored
|
@ -1,71 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/minify-html/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
83
node_modules/accord/lib/adapters/minify-js/2.x.js
generated
vendored
|
@ -1,83 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/minify-js/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
85
node_modules/accord/lib/adapters/mustache/3.x.js
generated
vendored
|
@ -1,85 +0,0 @@
|
|||
// 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
5
node_modules/accord/lib/adapters/mustache/index.js
generated
vendored
|
@ -1,5 +0,0 @@
|
|||
// 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
66
node_modules/accord/lib/adapters/myth/1.x.js
generated
vendored
|
@ -1,66 +0,0 @@
|
|||
// 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);
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue