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

28
node_modules/require-dot-file/.npmignore generated vendored Normal file
View file

@ -0,0 +1,28 @@
# Logs
logs
*.log
# Runtime data
pids
*.pid
*.seed
# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov
# Coverage directory used by tools like istanbul
coverage
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
# Compiled binary addons (http://nodejs.org/api/addons.html)
build/Release
# Dependency directory
# Commenting this out is preferred by some people, see
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git-
node_modules
# Users Environment Variables
.lock-wscript

22
node_modules/require-dot-file/LICENSE generated vendored Executable file
View file

@ -0,0 +1,22 @@
The MIT License (MIT)
Copyright (c) 2015 Jack Lukic
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.

23
node_modules/require-dot-file/README.md generated vendored Executable file
View file

@ -0,0 +1,23 @@
## Install
```javascript
npm install require-dot-file
```
## Usage
This is a simple module used for recursively searching across all parent folders for a file to require.
For example you may want to allow a user to [include a dotfile](http://askubuntu.com/questions/94780/what-are-dot-files) to allow users to configure your project that they can include in their project root.
```javascript
var
requireDotFile = require('require-dot-file')
;
// searches for .myconfig in all parent dir recursively (including current dir)
var config = requireDotFile('.myconfig');
// searches for .myconfig file in /path/to/start and its parent dirs
var config = requireDotFile('.myconfig', '/path/to/start');
```

48
node_modules/require-dot-file/index.js generated vendored Executable file
View file

@ -0,0 +1,48 @@
var
fs = require('fs'),
path = require('path')
;
// walks parent folders until a dot file is found
module.exports = function(file, directory, maxSteps) {
var
steps = 0,
requirePath,
walk
;
// recursion safety-net
maxSteps = maxSteps || 20;
walk = function(directory) {
var
nextDirectory = path.resolve( path.join(directory, path.sep, '..') ),
currentPath = path.normalize( path.join(directory, file) )
;
if( fs.existsSync(currentPath) ) {
// found file
requirePath = path.normalize(currentPath);
return;
}
else {
// reached file system root, let's stop
if(nextDirectory == directory || steps >= maxSteps ) {
return;
}
// otherwise recurse
steps++;
walk(nextDirectory, file);
}
};
// start walk from outside require-dot-files directory
directory = directory || path.join(__dirname, path.sep , '..');
walk(directory);
if(!requirePath) {
// throw new Error('Unable to find: ' + file);
return false;
}
return require(requirePath);
};

82
node_modules/require-dot-file/package.json generated vendored Executable file
View file

@ -0,0 +1,82 @@
{
"_args": [
[
{
"raw": "require-dot-file@^0.4.0",
"scope": null,
"escapedName": "require-dot-file",
"name": "require-dot-file",
"rawSpec": "^0.4.0",
"spec": ">=0.4.0 <0.5.0",
"type": "range"
},
"/Users/jose/Documents/GitHub/Mods/node_modules/semantic-ui"
]
],
"_from": "require-dot-file@>=0.4.0 <0.5.0",
"_id": "require-dot-file@0.4.0",
"_inCache": true,
"_location": "/require-dot-file",
"_nodeVersion": "0.10.33",
"_npmUser": {
"name": "semantic-bot",
"email": "bot@semantic-ui.com"
},
"_npmVersion": "2.1.6",
"_phantomChildren": {},
"_requested": {
"raw": "require-dot-file@^0.4.0",
"scope": null,
"escapedName": "require-dot-file",
"name": "require-dot-file",
"rawSpec": "^0.4.0",
"spec": ">=0.4.0 <0.5.0",
"type": "range"
},
"_requiredBy": [
"/semantic-ui"
],
"_resolved": "https://registry.npmjs.org/require-dot-file/-/require-dot-file-0.4.0.tgz",
"_shasum": "b5bf556a55895c2d590e5decad4535717850a9e9",
"_shrinkwrap": null,
"_spec": "require-dot-file@^0.4.0",
"_where": "/Users/jose/Documents/GitHub/Mods/node_modules/semantic-ui",
"author": {
"name": "Jack Lukic",
"email": "jack@semantic-ui.com"
},
"bugs": {
"url": "https://github.com/jlukic/require-dot-file/issues"
},
"dependencies": {},
"description": "Recursively walks parent folders looking for a config file",
"devDependencies": {},
"directories": {},
"dist": {
"shasum": "b5bf556a55895c2d590e5decad4535717850a9e9",
"tarball": "https://registry.npmjs.org/require-dot-file/-/require-dot-file-0.4.0.tgz"
},
"gitHead": "0e9573350393c0d51ef538931dd885f01481e308",
"homepage": "http://github.com/jlukic/require-dot-file/",
"license": "MIT",
"maintainers": [
{
"name": "jlukic",
"email": "jack@semantic-ui.com"
},
{
"name": "semantic-bot",
"email": "bot@semantic-ui.com"
}
],
"name": "require-dot-file",
"optionalDependencies": {},
"readme": "ERROR: No README data found!",
"repository": {
"type": "git",
"url": "git://github.com/jlukic/require-dot-file.git"
},
"scripts": {},
"title": "Require Dot File",
"version": "0.4.0"
}