Skip to content

Commit 3ca3600

Browse files
author
Dimitri Kopriwa
committed
fix(dependencies): upgrade all dependencies
1 parent 1866c99 commit 3ca3600

File tree

4 files changed

+47
-127
lines changed

4 files changed

+47
-127
lines changed

.ncurc.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const { createConfig } = require('@rollup-umd/ncu');
2+
module.exports = createConfig();

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ coverage/
2121
docs/
2222
reports/
2323
/styleguide
24+
.ncurc.js

package.json

Lines changed: 42 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -115,64 +115,53 @@
115115
}
116116
},
117117
"devDependencies": {
118-
"@babel/cli": "^7.2.3",
119-
"@babel/core": "^7.2.2",
118+
"@babel/cli": "^7.4.4",
119+
"@babel/core": "^7.4.5",
120120
"@babel/plugin-external-helpers": "^7.2.0",
121-
"@babel/plugin-proposal-class-properties": "^7.2.3",
122-
"@babel/plugin-proposal-decorators": "^7.2.3",
121+
"@babel/plugin-proposal-class-properties": "^7.4.4",
122+
"@babel/plugin-proposal-decorators": "^7.4.4",
123123
"@babel/plugin-proposal-json-strings": "^7.2.0",
124-
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
124+
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
125125
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
126126
"@babel/plugin-syntax-import-meta": "^7.2.0",
127-
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
128-
"@babel/preset-env": "^7.2.3",
129-
"@bootstrap-styled/documentation": "^1.2.0",
130-
"@rollup-umd/documentation": "^1.3.1",
131-
"@semantic-release/changelog": "^3.0.1",
132-
"@semantic-release/git": "^7.0.6",
133-
"@semantic-release/github": "^5.2.7",
134-
"@semantic-release/npm": "^5.1.2",
135-
"babel-core": "^7.0.0-bridge.0",
136-
"babel-eslint": "^10.0.1",
137-
"babel-jest": "^23.6.0",
138-
"babel-loader": "^8.0.4",
139-
"babel-plugin-add-module-exports": "^1.0.0",
127+
"@babel/plugin-transform-modules-commonjs": "^7.4.4",
128+
"@babel/preset-env": "^7.4.5",
129+
"@bootstrap-styled/documentation": "^2.0.0",
130+
"@rollup-umd/documentation": "^2.0.5",
131+
"@rollup-umd/ncu": "^1.0.9",
132+
"@rollup-umd/rollup": "^1.0.13",
133+
"@semantic-release/changelog": "^3.0.4",
134+
"@semantic-release/git": "^7.0.12",
135+
"@semantic-release/github": "^5.4.0",
136+
"@semantic-release/npm": "^5.1.9",
137+
"babel-eslint": "^10.0.2",
138+
"babel-jest": "^24.8.0",
139+
"babel-loader": "^8.0.6",
140+
"babel-plugin-add-module-exports": "^1.0.2",
140141
"babel-plugin-array-includes": "^2.0.3",
141142
"babel-plugin-dynamic-import-node": "^2.2.0",
142143
"cz-conventional-changelog": "^2.1.0",
143-
"enzyme": "^3.8.0",
144-
"enzyme-adapter-react-16": "^1.7.1",
145-
"eslint": "^5.10.0",
144+
"enzyme": "^3.10.0",
145+
"enzyme-adapter-react-16": "^1.14.0",
146+
"eslint": "^5.16.0",
146147
"eslint-config-airbnb": "^17.1.0",
147148
"eslint-config-airbnb-base": "^13.1.0",
148-
"eslint-plugin-import": "^2.14.0",
149-
"eslint-plugin-jsx-a11y": "^6.1.2",
150-
"eslint-plugin-react": "^7.11.1",
149+
"eslint-plugin-import": "^2.17.3",
150+
"eslint-plugin-jsx-a11y": "^6.2.1",
151+
"eslint-plugin-react": "^7.13.0",
151152
"immutable": "^4.0.0-rc.12",
152-
"jest-cli": "^23.6.0",
153+
"jest-cli": "^24.8.0",
153154
"jest-sonar-reporter": "^2.0.0",
154-
"lint-staged": "^8.1.0",
155+
"lint-staged": "^8.2.1",
155156
"pre-commit": "^1.2.2",
156-
"react": "^16.7.0",
157-
"react-dom": "^16.7.0",
158-
"react-styleguidist": "^8.0.6",
159-
"rimraf": "^2.6.2",
160-
"rollup": "^0.68.1",
161-
"rollup-plugin-babel": "^4.1.0",
162-
"rollup-plugin-cleanup": "^3.0.0",
163-
"rollup-plugin-commonjs": "^9.2.0",
164-
"rollup-plugin-inject": "^2.2.0",
165-
"rollup-plugin-json": "^3.1.0",
166-
"rollup-plugin-node-builtins": "^2.1.2",
167-
"rollup-plugin-node-resolve": "^4.0.0",
168-
"rollup-plugin-replace": "^2.1.0",
169-
"rollup-plugin-terser": "^3.0.0",
170-
"rollup-plugin-visualizer": "^0.9.2",
171-
"rollup-watch": "^4.3.1",
172-
"semantic-release": "^15.13.1",
173-
"sinon": "^7.2.2",
157+
"react": "^16.8.6",
158+
"react-dom": "^16.8.6",
159+
"react-styleguidist": "^9.1.7",
160+
"rimraf": "^2.6.3",
161+
"rollup": "^1.15.6",
162+
"semantic-release": "^15.13.16",
174163
"toctoc": "^0.3.2",
175-
"webpack": "^4.28.1"
164+
"webpack": "^4.34.0"
176165
},
177166
"jest": {
178167
"roots": [
@@ -182,7 +171,13 @@
182171
"raf/polyfill"
183172
],
184173
"testURL": "http://localhost/",
185-
"setupTestFrameworkScriptFile": "<rootDir>/internals/testing/test-bundler.js",
174+
"setupFilesAfterEnv": [
175+
"<rootDir>/internals/testing/test-bundler.js"
176+
],
177+
"transformIgnorePatterns": [
178+
"<rootDir>/node_modules",
179+
"<rootDir>/internals"
180+
],
186181
"testPathIgnorePatterns": [
187182
"<rootDir>/dist/",
188183
"<rootDir>/lib/"
@@ -221,7 +216,7 @@
221216
"build:readme"
222217
],
223218
"dependencies": {
224-
"@bootstrap-styled/css-mixins": "^2.0.3",
219+
"@bootstrap-styled/css-mixins": "^2.0.6",
225220
"@bootstrap-styled/utils": "^1.7.1"
226221
},
227222
"publishConfig": {

rollup.config.js

Lines changed: 2 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,80 +1,2 @@
1-
/* eslint-disable flowtype-errors/show-errors, no-console, import/extensions */
2-
import nodeResolve from 'rollup-plugin-node-resolve';
3-
import replace from 'rollup-plugin-replace';
4-
import commonjs from 'rollup-plugin-commonjs';
5-
import inject from 'rollup-plugin-inject';
6-
import babel from 'rollup-plugin-babel';
7-
import json from 'rollup-plugin-json';
8-
import { terser } from 'rollup-plugin-terser';
9-
import cleanup from 'rollup-plugin-cleanup';
10-
import visualizer from 'rollup-plugin-visualizer';
11-
import pkg from './package.json';
12-
import declination from './declination.json';
13-
const processShim = '\0process-shim';
14-
const prod = process.env.PRODUCTION;
15-
const mode = prod ? 'production' : 'development';
16-
const { external, globals } = declination;
17-
18-
console.log(`Creating ${mode} bundle...`);
19-
20-
const output = prod ? [
21-
{
22-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.min.js`, format: 'umd', sourcemap: true,
23-
},
24-
{
25-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.cjs.min.js`, format: 'cjs', sourcemap: true,
26-
},
27-
{
28-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.esm.js`, format: 'es', sourcemap: true,
29-
},
30-
] : [
31-
{
32-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.js`, format: 'umd', sourcemap: true,
33-
},
34-
{
35-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.cjs.js`, format: 'cjs', sourcemap: true,
36-
},
37-
{
38-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.esm.js`, format: 'es', sourcemap: true,
39-
},
40-
];
41-
const plugins = [
42-
// Unlike Webpack and Browserify, Rollup doesn't automatically shim Node
43-
// builtins like `process`. This ad-hoc plugin creates a 'virtual module'
44-
// which includes a shim containing just the parts the bundle needs.
45-
{
46-
resolveId(importee) {
47-
if (importee === processShim) return importee;
48-
return null;
49-
},
50-
load(id) {
51-
if (id === processShim) return 'export default { argv: [], env: {} }';
52-
return null;
53-
},
54-
},
55-
nodeResolve({
56-
browser: true,
57-
}),
58-
commonjs({
59-
include: 'node_modules/**',
60-
}),
61-
replace({
62-
'process.env.NODE_ENV': JSON.stringify(prod ? 'production' : 'development'),
63-
}),
64-
inject({
65-
process: processShim,
66-
}),
67-
babel({
68-
babelrc: false,
69-
exclude: 'node_modules/**',
70-
}),
71-
json(),
72-
cleanup(),
73-
];
74-
75-
export default output.map((o) => ({
76-
input: 'src/index.js',
77-
external,
78-
output: o,
79-
plugins: prod ? plugins.concat([terser(), visualizer({ filename: './bundle-stats.html' })]) : plugins,
80-
}));
1+
const { createConfig } = require('@rollup-umd/rollup');
2+
module.exports = createConfig();

0 commit comments

Comments
 (0)