install gulp to process code
This commit is contained in:
parent
24f6606c2c
commit
b6a3900ee2
1651 changed files with 253427 additions and 39 deletions
20
node_modules/gulp-cli/lib/shared/completion.js
generated
vendored
Normal file
20
node_modules/gulp-cli/lib/shared/completion.js
generated
vendored
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
'use strict';
|
||||
|
||||
var fs = require('fs');
|
||||
var path = require('path');
|
||||
|
||||
var messages = require('@gulpjs/messages');
|
||||
|
||||
module.exports = function(name, translate) {
|
||||
if (typeof name !== 'string') {
|
||||
throw new Error(translate.message({ tag: messages.COMPLETION_TYPE_MISSING }));
|
||||
}
|
||||
var file = path.join(__dirname, '../../completion', name);
|
||||
try {
|
||||
console.log(fs.readFileSync(file, 'utf8'));
|
||||
process.exit(0);
|
||||
} catch (err) {
|
||||
console.log(translate.message({ tag: messages.COMPLETION_TYPE_UNKNOWN, name: name }));
|
||||
process.exit(5);
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue