@octokit/rest

v16.40.2
GitHub REST API client for Node.js
octokit github rest api-client

lint

prettier --check '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json

test

nyc mocha test/mocha-node-setup.js "test/*/**/*-test.js"

build

npm-run-all build:*

pretest

npm run -s lint

build:ts

npm run -s update-endpoints:typescript

coverage

nyc report --reporter=html && open coverage/index.html

lint:fix

prettier --write '{lib,plugins,scripts,test}/**/*.{js,json,ts}' 'docs/*.{js,json}' 'docs/src/**/*' index.js README.md package.json

validate:ts

tsc --target es6 --noImplicitAny index.d.ts

test:browser

cypress run --browser chrome

build:browser

npm-run-all build:browser:*

prevalidate:ts

npm run -s build:ts

postvalidate:ts

tsc --noEmit --target es6 test/typescript-validate.ts

prebuild:browser

mkdirp dist/

update-endpoints

npm-run-all update-endpoints:*

start-fixtures-server

octokit-fixtures-server

generate-bundle-report

webpack-bundle-analyzer dist/bundle-stats.json --mode=static --no-open --report dist/bundle-report.html

build:browser:production

webpack --mode production --entry . --plugin=compression-webpack-plugin --output-library=Octokit --output-path=./dist --output-filename=octokit-rest.min.js --devtool source-map

build:browser:development

webpack --mode development --entry . --output-library=Octokit --output=./dist/octokit-rest.js --profile --json > dist/bundle-stats.json

update-endpoints:fetch-json

node scripts/update-endpoints/fetch-json

update-endpoints:typescript

node scripts/update-endpoints/typescript
npm i @octokit/[email protected]

Metadata

  • MIT
  • Whatever
  • Gregor Martynus
  • released 1/30/2020

Downloads