mirror of
https://github.com/actions/setup-node.git
synced 2025-06-29 22:23:47 +00:00
Consume different tool-cache
This commit is contained in:
parent
e4990368a5
commit
4d73af8dd9
54 changed files with 3141 additions and 255 deletions
21
node_modules/shelljs/scripts/generate-docs.js
generated
vendored
Normal file
21
node_modules/shelljs/scripts/generate-docs.js
generated
vendored
Normal 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.');
|
Loading…
Add table
Add a link
Reference in a new issue