Skip to content

Commit a8651a2

Browse files
authored
fix(dependencies): update dependencies (#76)
1 parent bf96b9b commit a8651a2

10 files changed

Lines changed: 13101 additions & 11017 deletions

File tree

.babelrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
[
66
"@babel/env",
77
{ "modules": false },
8-
"minify"
98
]
109
]
1110
}

.huskyrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"hooks": {
3+
"pre-commit": "npm run lint",
4+
"commit-msg": "npm run commitmsg",
5+
"pre-push": "npm run test"
6+
}
7+
}

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12.14.1

.travis.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,7 @@ language: node_js
22
cache:
33
directories:
44
- ~/.npm
5-
notifications:
6-
email: true
7-
node_js:
8-
- '8'
9-
install: npm install
105
before_install:
11-
- npm install -g npm@5
126
- npm install -g greenkeeper-lockfile@1
137
jobs:
148
include:

jest.config.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module.exports = {
2+
collectCoverage: true,
3+
testEnvironment: 'node',
4+
testPathIgnorePatterns: [
5+
'<rootDir>/build/',
6+
'<rootDir>/node_modules/',
7+
],
8+
};

package-lock.json

Lines changed: 13033 additions & 10950 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 45 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@
88
},
99
"global": true,
1010
"scripts": {
11-
"build:production": "BABEL_ENV=production ./node_modules/.bin/rollup -c",
12-
"codecov": "codecov",
13-
"commitmsg": "commitlint -e $GIT_PARAMS",
14-
"lint": "eslint --ext .js .",
15-
"test": "jest --coverage --passWithNoTests",
11+
"build:production": "BABEL_ENV=production npx rollup -c",
12+
"codecov": "npx codecov",
13+
"commitmsg": "npx commitlint -e $GIT_PARAMS",
14+
"lint": "npx eslint --ext .js .",
15+
"test": "npx jest --passWithNoTests",
1616
"prepublishOnly": "npm run build:production",
17-
"semantic-commit": "commit",
18-
"semantic-release": "semantic-release",
19-
"travis-deploy-once": "travis-deploy-once"
17+
"semantic-commit": "npx commit",
18+
"semantic-release": "npx semantic-release",
19+
"travis-deploy-once": "npx travis-deploy-once"
2020
},
2121
"license": "MIT",
2222
"repository": {
@@ -35,53 +35,47 @@
3535
"url": "https://github.com/jaebradley/github-languages-cli/issues"
3636
},
3737
"homepage": "https://github.com/jaebradley/github-languages-cli#readme",
38-
"jest": {
39-
"testEnvironment": "node"
40-
},
4138
"dependencies": {
42-
"@babel/runtime": "^7.0.0-beta.44",
43-
"chalk": "^2.3.2",
44-
"commander": "^2.15.1",
45-
"github-languages-client": "^1.0.16",
46-
"inquirer": "^6.0.0",
47-
"inquirer-autocomplete-prompt": "^1.0.0"
39+
"@babel/runtime": "^7.8.4",
40+
"chalk": "^3.0.0",
41+
"commander": "^4.1.1",
42+
"github-languages-client": "^1.0.74",
43+
"inquirer": "^6.5.2",
44+
"inquirer-autocomplete-prompt": "^1.0.2"
4845
},
4946
"devDependencies": {
50-
"@babel/cli": "^7.0.0-beta.44",
51-
"@babel/core": "^7.0.0-beta.44",
52-
"@babel/plugin-external-helpers": "^7.0.0-beta.54",
53-
"@babel/plugin-transform-async-to-generator": "^7.0.0-beta.44",
54-
"@babel/plugin-transform-runtime": "^7.0.0-beta.44",
55-
"@babel/preset-env": "^7.0.0-beta.44",
56-
"@commitlint/cli": "^7.0.0",
57-
"@commitlint/config-angular": "^7.0.1",
58-
"@commitlint/prompt": "^7.0.0",
59-
"@commitlint/prompt-cli": "^7.0.0",
60-
"babel-core": "^7.0.0-bridge.0",
61-
"babel-jest": "^23.0.0",
62-
"babel-plugin-add-module-exports": "^1.0.0",
63-
"babel-preset-minify": "^0.4.0",
64-
"codecov": "^3.0.2",
65-
"eslint": "^5.0.1",
66-
"eslint-config-airbnb-base": "^13.0.0",
67-
"eslint-plugin-import": "^2.13.0",
68-
"husky": "^0.14.3",
69-
"jest": "^22.4.3",
70-
"rollup": "^0.64.0",
71-
"rollup-plugin-analyzer": "^2.1.0",
72-
"rollup-plugin-babel": "^4.0.0-beta.7",
73-
"rollup-plugin-babel-minify": "^6.0.0",
74-
"rollup-plugin-cleaner": "^0.2.0",
75-
"rollup-plugin-commonjs": "^9.1.3",
76-
"rollup-plugin-filesize": "^5.0.0",
47+
"@babel/cli": "^7.8.4",
48+
"@babel/core": "^7.8.4",
49+
"@babel/plugin-external-helpers": "^7.8.3",
50+
"@babel/plugin-transform-async-to-generator": "^7.8.3",
51+
"@babel/plugin-transform-runtime": "^7.8.3",
52+
"@babel/preset-env": "^7.8.4",
53+
"@commitlint/cli": "^8.3.5",
54+
"@commitlint/config-angular": "^8.3.4",
55+
"@commitlint/prompt": "^8.3.5",
56+
"@commitlint/prompt-cli": "^8.3.5",
57+
"@rollup/plugin-commonjs": "^11.0.2",
58+
"@rollup/plugin-node-resolve": "^7.1.1",
59+
"babel-jest": "^25.1.0",
60+
"babel-plugin-add-module-exports": "^1.0.2",
61+
"babel-preset-minify": "^0.5.1",
62+
"codecov": "^3.6.5",
63+
"eslint": "^6.8.0",
64+
"eslint-config-airbnb-base": "^14.0.0",
65+
"eslint-plugin-import": "^2.20.1",
66+
"husky": "^4.2.3",
67+
"jest": "^25.1.0",
68+
"rollup": "^1.31.1",
69+
"rollup-plugin-analyzer": "^3.2.2",
70+
"rollup-plugin-babel": "^4.3.3",
71+
"rollup-plugin-babel-minify": "^9.1.1",
72+
"rollup-plugin-cleaner": "^1.0.0",
73+
"rollup-plugin-filesize": "^6.2.1",
74+
"rollup-plugin-hashbang": "^2.2.2",
7775
"rollup-plugin-includepaths": "^0.2.3",
78-
"rollup-plugin-json": "^3.0.0",
76+
"rollup-plugin-json": "^4.0.0",
7977
"rollup-plugin-local-resolve": "^1.0.7",
80-
"rollup-plugin-node-resolve": "^3.3.0",
81-
"rollup-plugin-preserve-shebang": "^0.1.6",
82-
"rollup-plugin-shebang": "^0.1.5",
83-
"rollup-plugin-terser": "^3.0.0",
84-
"semantic-release": "^15.1.5",
85-
"travis-deploy-once": "^5.0.0"
78+
"semantic-release": "^17.0.3",
79+
"travis-deploy-once": "^5.0.11"
8680
}
8781
}

rollup.config.js

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
11
import babel from 'rollup-plugin-babel';
2-
import resolve from 'rollup-plugin-node-resolve';
2+
import resolve from '@rollup/plugin-node-resolve';
33
import localResolve from 'rollup-plugin-local-resolve';
44
import filesize from 'rollup-plugin-filesize';
5-
import minify from 'rollup-plugin-babel-minify';
6-
import { terser } from 'rollup-plugin-terser';
7-
import shebang from 'rollup-plugin-shebang';
5+
import hashbang from 'rollup-plugin-hashbang';
86
import includePaths from 'rollup-plugin-includepaths';
97
import cleaner from 'rollup-plugin-cleaner';
108
import { plugin as analyze } from 'rollup-plugin-analyzer';
11-
import commonjs from 'rollup-plugin-commonjs';
9+
import commonjs from '@rollup/plugin-commonjs';
1210
import json from 'rollup-plugin-json';
1311

1412
import pkg from './package.json';
@@ -61,6 +59,7 @@ const config = {
6159
preferConst: true,
6260
indent: ' ',
6361
}),
62+
hashbang(),
6463
babel({
6564
exclude: 'node_modules/**',
6665
runtimeHelpers: true,
@@ -74,10 +73,7 @@ const config = {
7473
browser: true,
7574
modulesOnly: true,
7675
}),
77-
minify(),
78-
terser(),
7976
commonjs(),
80-
shebang(),
8177
filesize(),
8278
analyze(),
8379
],

src/index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env node
2+
13
import program from 'commander';
24
import search from './search';
35

src/search.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const search = async () => (
1313
type: 'autocomplete',
1414
name: 'gitHubLanguage',
1515
message: 'Search for GitHub language',
16-
source: async (answersSoFar, searchTerm) => client.search(searchTerm || '').map(result => formatLanguageDetails(result)),
16+
source: async (answersSoFar, searchTerm) => client.search(searchTerm || '').map((result) => formatLanguageDetails(result)),
1717
},
1818
])
1919
);

0 commit comments

Comments
 (0)