Initial Import

This commit is contained in:
Chris Patterson 2019-08-03 21:49:54 -04:00
commit 9bb7038a07
244 changed files with 22913 additions and 0 deletions

21
node_modules/shelljs/scripts/generate-docs.js generated vendored Normal file
View file

@ -0,0 +1,21 @@
#!/usr/bin/env node
require('../global');
echo('Appending docs to README.md');
cd(__dirname + '/..');
// Extract docs from shell.js
var docs = grep('//@', 'shell.js');
docs = docs.replace(/\/\/\@include (.+)/g, function(match, path) {
var file = path.match('.js$') ? path : path+'.js';
return grep('//@', file);
});
// Remove '//@'
docs = docs.replace(/\/\/\@ ?/g, '');
// Append docs to README
sed('-i', /## Command reference(.|\n)*/, '## Command reference\n\n' + docs, 'README.md');
echo('All done.');