Skip to content

Commit 7b38319

Browse files
wolfy1339gr2m
authored andcommitted
feat: options.request.hook (#45)
BREAKING CHANGE: `const request = require("@octokit/request")` is now `const { request } = require("@octokit/rest")` or `import { request } from "@octokit/request"`
1 parent 8e46427 commit 7b38319

23 files changed

+6106
-6973
lines changed

.gitignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.nyc_output/
21
coverage/
3-
cypress/
4-
dist/
52
node_modules/
3+
pkg/

.travis.yml

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
language: node_js
2-
cache:
3-
directories:
4-
- ~/.npm
5-
- node_modules/cypress/dist
2+
cache: npm
63

74
# Trigger a push build on master and greenkeeper branches + PRs build on every branches
85
# Avoid double build on PRs (See https://github.com/travis-ci/travis-ci/issues/1147)
@@ -23,25 +20,13 @@ jobs:
2320
node_js: 8
2421
script: npm run test
2522
- node_js: 10
26-
env: Node 10, coverage upload
27-
script:
28-
- npm run test
29-
- npm run coverage:upload
30-
- node_js: lts/*
31-
sudo: required
32-
addons:
33-
chrome: stable
34-
env: browser tests
35-
script:
36-
- npm run test:browser
23+
script: npm run test
3724
- node_js: lts/*
38-
sudo: required
39-
addons:
40-
chrome: stable
4125
env: bundle size
4226
script:
4327
- npm run build
44-
- npx bundlesize
28+
- npx terser pkg/dist-web/index.bundled.js --output pkg/dist-web/index.bundled.min.js --compress --mangle
29+
- npx bundlesize --files pkg/dist-web/index.bundled.min.js --max-size 5KB
4530

4631
# release stage: run semantic release & update the docs
4732
- stage: release

0 commit comments

Comments
 (0)