fetch-idl v0.0.9-0
fetch-idl

Fetch Thrift or Proto files from Git Repositories
Usage
Install
npm install fetch-idl --save
Call the api
import fetchIdl from 'fetch-idl'
const repository = 'git@github.com:lancewuz/fetch-idl.git';
fetchIdl(repository, 'master', 'test/idl/!(error|index).thrift', `temp`, '.');
API
fetchIdl(repository: string, branch: string, entryGlob: string, outDir: string, rootDir: string): { commit: string }
fetch IDL files from repository
and checkout to branch
. Then parse the file and find the dependent files recursively, starting from entryGlob
with rootDir
as the root directory. In the end, write file contents to outDir
. repository
should conform to git urls. branch
should be "master" or other created branches. entryGlob
is an array of an entry Thrift or Proto file, which usually contain a "service" type. outDir
is a target output directory.
3 years ago
3 years ago
3 years ago
4 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
4 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago