Add node modules and compiled JavaScript from main (#54)
Co-authored-by: Oliver King <oking3@uncc.edu>
This commit is contained in:
committed by
GitHub
parent
4a983766a0
commit
52d71d28bd
115
node_modules/interpret/CHANGELOG
generated
vendored
Normal file
115
node_modules/interpret/CHANGELOG
generated
vendored
Normal file
@ -0,0 +1,115 @@
|
||||
v1.0.3:
|
||||
date: 2017-04-18
|
||||
changes:
|
||||
- fix buble support
|
||||
v1.0.2:
|
||||
date: 2017-03-29
|
||||
changes:
|
||||
- add support for coffeescript (now with no hyphen)
|
||||
v1.0.1:
|
||||
date: 2016-05-01
|
||||
changes:
|
||||
- add support for buble
|
||||
v1.0.0:
|
||||
date: 2015-11-18
|
||||
changes:
|
||||
- add support for babel-register
|
||||
- go stable!
|
||||
v0.6.6:
|
||||
date: 2015-09-21
|
||||
changes:
|
||||
- add support for ts-node (formerly typescript-node)
|
||||
v0.6.5:
|
||||
date: 2015-07-22
|
||||
changes:
|
||||
- add support for typescript 1.5 via typescript-node
|
||||
v0.6.4:
|
||||
date: 2015-07-07
|
||||
changes:
|
||||
- add support for earlgrey
|
||||
v0.6.3:
|
||||
date: 2015-07-03
|
||||
changes:
|
||||
- prefer babel/core to babel
|
||||
v0.6.2:
|
||||
date: 2015-05-20
|
||||
changes:
|
||||
- update module list for iced coffee-script
|
||||
v0.6.1:
|
||||
date: 2015-05-20
|
||||
changes:
|
||||
- Fix toml loader.
|
||||
v0.6.0:
|
||||
date: 2015-05-19
|
||||
changes:
|
||||
- Combine fallbacks and loaders into `extensions`.
|
||||
- Provide implementation guidance.
|
||||
v0.5.1:
|
||||
date: 2015-03-01
|
||||
changes:
|
||||
- Add support for CirruScript.
|
||||
v0.5.0:
|
||||
date: 2015-02-27
|
||||
changes:
|
||||
- Refactor es6 support via Babel (formerly 6to5)
|
||||
v0.4.3:
|
||||
date: 2015-02-09
|
||||
changes:
|
||||
- Switch support from typescript-require to typescript-register.
|
||||
v0.4.2:
|
||||
date: 2015-01-16
|
||||
changes:
|
||||
- Add support for wisp.
|
||||
v0.4.1:
|
||||
date: 2015-01-10
|
||||
changes:
|
||||
- Add support for 6to5 (es6)
|
||||
v0.4.0:
|
||||
date: 2014-01-09
|
||||
changes:
|
||||
- Add support for fallback (legacy) modules
|
||||
- Add support for module configurations
|
||||
v0.3.10:
|
||||
date: 2014-12-17
|
||||
changes:
|
||||
- Add support for json5.
|
||||
v0.3.9:
|
||||
date: 2014-12-08
|
||||
changes:
|
||||
- Add support for literate iced coffee.
|
||||
v0.3.8:
|
||||
date: 2014-11-20
|
||||
changes:
|
||||
- Add support for [cjsx](https://github.com/jsdf/coffee-react).
|
||||
v0.3.7:
|
||||
date: 2014-09-08
|
||||
changes:
|
||||
- Add support for [TypeScript](http://www.typescriptlang.org/).
|
||||
v0.3.6:
|
||||
date: 2014-08-25
|
||||
changes:
|
||||
- Add support for coffee.md.
|
||||
v0.3.5:
|
||||
date: 2014-07-03
|
||||
changes:
|
||||
- Add support for jsx.
|
||||
v0.3.4:
|
||||
date: 2014-06-27
|
||||
changes:
|
||||
- Make .js first jsVariant entry.
|
||||
v0.3.3:
|
||||
date: 2014-06-02
|
||||
changes:
|
||||
- Fix casing on livescript dependency.
|
||||
v0.3.0:
|
||||
date: 2014-04-20
|
||||
changes:
|
||||
- Simplify loading of coffee-script and iced-coffee-script.
|
||||
v0.2.0:
|
||||
date: 2014-04-20
|
||||
changes:
|
||||
- Move module loading into rechoir.
|
||||
v0.1.0:
|
||||
date: 2014-04-20
|
||||
changes:
|
||||
- Initial public release.
|
22
node_modules/interpret/LICENSE
generated
vendored
Normal file
22
node_modules/interpret/LICENSE
generated
vendored
Normal file
@ -0,0 +1,22 @@
|
||||
Copyright (c) 2014-2018 Tyler Kellen <tyler@sleekcode.net>, Blaine Bublitz <blaine.bublitz@gmail.com>, and Eric Schoffstall <yo@contra.io>
|
||||
|
||||
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.
|
187
node_modules/interpret/README.md
generated
vendored
Normal file
187
node_modules/interpret/README.md
generated
vendored
Normal file
@ -0,0 +1,187 @@
|
||||
<p align="center">
|
||||
<a href="http://gulpjs.com">
|
||||
<img height="257" width="114" src="https://raw.githubusercontent.com/gulpjs/artwork/master/gulp-2x.png">
|
||||
</a>
|
||||
</p>
|
||||
|
||||
# interpret
|
||||
|
||||
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url] [![Travis Build Status][travis-image]][travis-url] [![AppVeyor Build Status][appveyor-image]][appveyor-url] [![Coveralls Status][coveralls-image]][coveralls-url] [![Gitter chat][gitter-image]][gitter-url]
|
||||
|
||||
A dictionary of file extensions and associated module loaders.
|
||||
|
||||
## What is it
|
||||
This is used by [Liftoff](http://github.com/tkellen/node-liftoff) to automatically require dependencies for configuration files, and by [rechoir](http://github.com/tkellen/node-rechoir) for registering module loaders.
|
||||
|
||||
## API
|
||||
|
||||
### extensions
|
||||
Map file types to modules which provide a [require.extensions] loader.
|
||||
|
||||
```js
|
||||
{
|
||||
'.babel.js': [
|
||||
{
|
||||
module: '@babel/register',
|
||||
register: function(hook) {
|
||||
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353
|
||||
// which only captures the final extension (.babel.js -> .js)
|
||||
hook({ extensions: '.js' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'babel-register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.js' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'babel-core/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.js' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'babel/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.js' });
|
||||
},
|
||||
},
|
||||
],
|
||||
'.babel.ts': [
|
||||
{
|
||||
module: '@babel/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.ts' });
|
||||
},
|
||||
},
|
||||
],
|
||||
'.buble.js': 'buble/register',
|
||||
'.cirru': 'cirru-script/lib/register',
|
||||
'.cjsx': 'node-cjsx/register',
|
||||
'.co': 'coco',
|
||||
'.coffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],
|
||||
'.coffee.md': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],
|
||||
'.csv': 'require-csv',
|
||||
'.eg': 'earlgrey/register',
|
||||
'.esm.js': {
|
||||
module: 'esm',
|
||||
register: function(hook) {
|
||||
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353
|
||||
// which only captures the final extension (.babel.js -> .js)
|
||||
var esmLoader = hook(module);
|
||||
require.extensions['.js'] = esmLoader('module')._extensions['.js'];
|
||||
},
|
||||
},
|
||||
'.iced': ['iced-coffee-script/register', 'iced-coffee-script'],
|
||||
'.iced.md': 'iced-coffee-script/register',
|
||||
'.ini': 'require-ini',
|
||||
'.js': null,
|
||||
'.json': null,
|
||||
'.json5': 'json5/lib/require',
|
||||
'.jsx': [
|
||||
{
|
||||
module: '@babel/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.jsx' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'babel-register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.jsx' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'babel-core/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.jsx' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'babel/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.jsx' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'node-jsx',
|
||||
register: function(hook) {
|
||||
hook.install({ extension: '.jsx', harmony: true });
|
||||
},
|
||||
},
|
||||
],
|
||||
'.litcoffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],
|
||||
'.liticed': 'iced-coffee-script/register',
|
||||
'.ls': ['livescript', 'LiveScript'],
|
||||
'.mjs': '/absolute/path/to/interpret/mjs-stub.js',
|
||||
'.node': null,
|
||||
'.toml': {
|
||||
module: 'toml-require',
|
||||
register: function(hook) {
|
||||
hook.install();
|
||||
},
|
||||
},
|
||||
'.ts': [
|
||||
'ts-node/register',
|
||||
'typescript-node/register',
|
||||
'typescript-register',
|
||||
'typescript-require',
|
||||
'sucrase/register/ts',
|
||||
{
|
||||
module: '@babel/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.ts' });
|
||||
},
|
||||
},
|
||||
],
|
||||
'.tsx': [
|
||||
'ts-node/register',
|
||||
'typescript-node/register',
|
||||
'sucrase/register',
|
||||
{
|
||||
module: '@babel/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.tsx' });
|
||||
},
|
||||
},
|
||||
],
|
||||
'.wisp': 'wisp/engine/node',
|
||||
'.xml': 'require-xml',
|
||||
'.yaml': 'require-yaml',
|
||||
'.yml': 'require-yaml',
|
||||
}
|
||||
```
|
||||
|
||||
### jsVariants
|
||||
Same as above, but only include the extensions which are javascript variants.
|
||||
|
||||
## How to use it
|
||||
|
||||
Consumers should use the exported `extensions` or `jsVariants` object to determine which module should be loaded for a given extension. If a matching extension is found, consumers should do the following:
|
||||
|
||||
1. If the value is null, do nothing.
|
||||
|
||||
2. If the value is a string, try to require it.
|
||||
|
||||
3. If the value is an object, try to require the `module` property. If successful, the `register` property (a function) should be called with the module passed as the first argument.
|
||||
|
||||
4. If the value is an array, iterate over it, attempting step #2 or #3 until one of the attempts does not throw.
|
||||
|
||||
[require.extensions]: http://nodejs.org/api/globals.html#globals_require_extensions
|
||||
|
||||
[downloads-image]: http://img.shields.io/npm/dm/interpret.svg
|
||||
[npm-url]: https://www.npmjs.com/package/interpret
|
||||
[npm-image]: http://img.shields.io/npm/v/interpret.svg
|
||||
|
||||
[travis-url]: https://travis-ci.org/gulpjs/interpret
|
||||
[travis-image]: http://img.shields.io/travis/gulpjs/interpret.svg?label=travis-ci
|
||||
|
||||
[appveyor-url]: https://ci.appveyor.com/project/gulpjs/interpret
|
||||
[appveyor-image]: https://img.shields.io/appveyor/ci/gulpjs/interpret.svg?label=appveyor
|
||||
|
||||
[coveralls-url]: https://coveralls.io/r/gulpjs/interpret
|
||||
[coveralls-image]: http://img.shields.io/coveralls/gulpjs/interpret/master.svg
|
||||
|
||||
[gitter-url]: https://gitter.im/gulpjs/gulp
|
||||
[gitter-image]: https://badges.gitter.im/gulpjs/gulp.svg
|
168
node_modules/interpret/index.js
generated
vendored
Normal file
168
node_modules/interpret/index.js
generated
vendored
Normal file
@ -0,0 +1,168 @@
|
||||
var path = require('path');
|
||||
|
||||
var mjsStub = path.join(__dirname, 'mjs-stub');
|
||||
|
||||
var extensions = {
|
||||
'.babel.js': [
|
||||
{
|
||||
module: '@babel/register',
|
||||
register: function(hook) {
|
||||
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353
|
||||
// which only captures the final extension (.babel.js -> .js)
|
||||
hook({ extensions: '.js' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'babel-register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.js' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'babel-core/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.js' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'babel/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.js' });
|
||||
},
|
||||
},
|
||||
],
|
||||
'.babel.ts': [
|
||||
{
|
||||
module: '@babel/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.ts' });
|
||||
},
|
||||
},
|
||||
],
|
||||
'.buble.js': 'buble/register',
|
||||
'.cirru': 'cirru-script/lib/register',
|
||||
'.cjsx': 'node-cjsx/register',
|
||||
'.co': 'coco',
|
||||
'.coffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],
|
||||
'.coffee.md': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],
|
||||
'.csv': 'require-csv',
|
||||
'.eg': 'earlgrey/register',
|
||||
'.esm.js': {
|
||||
module: 'esm',
|
||||
register: function(hook) {
|
||||
// register on .js extension due to https://github.com/joyent/node/blob/v0.12.0/lib/module.js#L353
|
||||
// which only captures the final extension (.babel.js -> .js)
|
||||
var esmLoader = hook(module);
|
||||
require.extensions['.js'] = esmLoader('module')._extensions['.js'];
|
||||
},
|
||||
},
|
||||
'.iced': ['iced-coffee-script/register', 'iced-coffee-script'],
|
||||
'.iced.md': 'iced-coffee-script/register',
|
||||
'.ini': 'require-ini',
|
||||
'.js': null,
|
||||
'.json': null,
|
||||
'.json5': 'json5/lib/require',
|
||||
'.jsx': [
|
||||
{
|
||||
module: '@babel/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.jsx' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'babel-register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.jsx' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'babel-core/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.jsx' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'babel/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.jsx' });
|
||||
},
|
||||
},
|
||||
{
|
||||
module: 'node-jsx',
|
||||
register: function(hook) {
|
||||
hook.install({ extension: '.jsx', harmony: true });
|
||||
},
|
||||
},
|
||||
],
|
||||
'.litcoffee': ['coffeescript/register', 'coffee-script/register', 'coffeescript', 'coffee-script'],
|
||||
'.liticed': 'iced-coffee-script/register',
|
||||
'.ls': ['livescript', 'LiveScript'],
|
||||
'.mjs': mjsStub,
|
||||
'.node': null,
|
||||
'.toml': {
|
||||
module: 'toml-require',
|
||||
register: function(hook) {
|
||||
hook.install();
|
||||
},
|
||||
},
|
||||
'.ts': [
|
||||
'ts-node/register',
|
||||
'typescript-node/register',
|
||||
'typescript-register',
|
||||
'typescript-require',
|
||||
'sucrase/register/ts',
|
||||
{
|
||||
module: '@babel/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.ts' });
|
||||
},
|
||||
},
|
||||
],
|
||||
'.tsx': [
|
||||
'ts-node/register',
|
||||
'typescript-node/register',
|
||||
'sucrase/register',
|
||||
{
|
||||
module: '@babel/register',
|
||||
register: function(hook) {
|
||||
hook({ extensions: '.tsx' });
|
||||
},
|
||||
},
|
||||
],
|
||||
'.wisp': 'wisp/engine/node',
|
||||
'.xml': 'require-xml',
|
||||
'.yaml': 'require-yaml',
|
||||
'.yml': 'require-yaml',
|
||||
};
|
||||
|
||||
var jsVariantExtensions = [
|
||||
'.js',
|
||||
'.babel.js',
|
||||
'.babel.ts',
|
||||
'.buble.js',
|
||||
'.cirru',
|
||||
'.cjsx',
|
||||
'.co',
|
||||
'.coffee',
|
||||
'.coffee.md',
|
||||
'.eg',
|
||||
'.esm.js',
|
||||
'.iced',
|
||||
'.iced.md',
|
||||
'.jsx',
|
||||
'.litcoffee',
|
||||
'.liticed',
|
||||
'.ls',
|
||||
'.mjs',
|
||||
'.ts',
|
||||
'.tsx',
|
||||
'.wisp',
|
||||
];
|
||||
|
||||
module.exports = {
|
||||
extensions: extensions,
|
||||
jsVariants: jsVariantExtensions.reduce(function(result, ext) {
|
||||
result[ext] = extensions[ext];
|
||||
return result;
|
||||
}, {}),
|
||||
};
|
1
node_modules/interpret/mjs-stub.js
generated
vendored
Normal file
1
node_modules/interpret/mjs-stub.js
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
require.extensions['.mjs'] = null;
|
75
node_modules/interpret/package.json
generated
vendored
Normal file
75
node_modules/interpret/package.json
generated
vendored
Normal file
@ -0,0 +1,75 @@
|
||||
{
|
||||
"name": "interpret",
|
||||
"version": "1.4.0",
|
||||
"description": "A dictionary of file extensions and associated module loaders.",
|
||||
"author": "Gulp Team <team@gulpjs.com> (http://gulpjs.com/)",
|
||||
"contributors": [
|
||||
"Blaine Bublitz <blaine.bublitz@gmail.com>",
|
||||
"Tyler Kellen <tyler@sleekcode.net> (http://goingslowly.com/)"
|
||||
],
|
||||
"repository": "gulpjs/interpret",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">= 0.10"
|
||||
},
|
||||
"main": "index.js",
|
||||
"files": [
|
||||
"LICENSE",
|
||||
"index.js",
|
||||
"mjs-stub.js"
|
||||
],
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"pretest": "rm -rf tmp/ && npm run lint",
|
||||
"test": "mocha --async-only",
|
||||
"cover": "istanbul cover _mocha --report lcovonly",
|
||||
"coveralls": "npm run cover && istanbul-coveralls"
|
||||
},
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"eslint": "^2.13.0",
|
||||
"eslint-config-gulp": "^3.0.1",
|
||||
"expect": "^1.20.2",
|
||||
"istanbul": "^0.4.3",
|
||||
"istanbul-coveralls": "^1.0.3",
|
||||
"mocha": "^3.5.3",
|
||||
"parse-node-version": "^1.0.0",
|
||||
"rechoir": "^0.6.2",
|
||||
"shelljs": "0.7.5",
|
||||
"trash-cli": "^3.0.0"
|
||||
},
|
||||
"keywords": [
|
||||
"cirru-script",
|
||||
"cjsx",
|
||||
"co",
|
||||
"coco",
|
||||
"coffee",
|
||||
"coffee-script",
|
||||
"coffee.md",
|
||||
"coffeescript",
|
||||
"csv",
|
||||
"earlgrey",
|
||||
"es",
|
||||
"es6",
|
||||
"iced",
|
||||
"iced.md",
|
||||
"iced-coffee-script",
|
||||
"ini",
|
||||
"js",
|
||||
"json",
|
||||
"json5",
|
||||
"jsx",
|
||||
"react",
|
||||
"litcoffee",
|
||||
"liticed",
|
||||
"ls",
|
||||
"livescript",
|
||||
"toml",
|
||||
"ts",
|
||||
"typescript",
|
||||
"wisp",
|
||||
"xml",
|
||||
"yaml",
|
||||
"yml"
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user