Skip to content

Commit 4f26ee2

Browse files
author
Dimitri Kopriwa
committed
fix(dependencies): update all dependencies
1 parent d0ec7a7 commit 4f26ee2

File tree

4 files changed

+59
-138
lines changed

4 files changed

+59
-138
lines changed

.ncurc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
const { createConfig } = require('@rollup-umd/ncu');
2+
3+
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: 53 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -113,78 +113,68 @@
113113
}
114114
},
115115
"devDependencies": {
116-
"@babel/cli": "^7.2.0",
117-
"@babel/core": "^7.2.2",
116+
"@babel/cli": "^7.4.4",
117+
"@babel/core": "^7.4.5",
118118
"@babel/plugin-external-helpers": "^7.2.0",
119-
"@babel/plugin-proposal-class-properties": "^7.2.1",
120-
"@babel/plugin-proposal-decorators": "^7.2.2",
119+
"@babel/plugin-proposal-class-properties": "^7.4.4",
120+
"@babel/plugin-proposal-decorators": "^7.4.4",
121121
"@babel/plugin-proposal-json-strings": "^7.2.0",
122-
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
122+
"@babel/plugin-proposal-object-rest-spread": "^7.4.4",
123123
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
124124
"@babel/plugin-syntax-import-meta": "^7.2.0",
125-
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
125+
"@babel/plugin-transform-modules-commonjs": "^7.4.4",
126126
"@babel/plugin-transform-react-constant-elements": "^7.2.0",
127127
"@babel/plugin-transform-react-inline-elements": "^7.2.0",
128-
"@babel/preset-env": "^7.2.0",
128+
"@babel/preset-env": "^7.4.5",
129129
"@babel/preset-react": "^7.0.0",
130-
"@bootstrap-styled/documentation": "^1.1.1",
131-
"@rollup-umd/documentation": "^1.2.0",
132-
"@semantic-release/changelog": "^3.0.1",
133-
"@semantic-release/git": "^7.0.5",
134-
"@semantic-release/github": "^5.2.6",
135-
"@semantic-release/npm": "^5.1.2",
130+
"@bootstrap-styled/documentation": "^2.0.0",
131+
"@rollup-umd/documentation": "^2.0.5",
132+
"@rollup-umd/ncu": "^1.0.9",
133+
"@rollup-umd/rollup": "^1.0.13",
134+
"@semantic-release/changelog": "^3.0.2",
135+
"@semantic-release/git": "^7.0.8",
136+
"@semantic-release/github": "^5.2.10",
137+
"@semantic-release/npm": "^5.1.7",
136138
"babel-core": "^7.0.0-bridge.0",
137139
"babel-eslint": "^10.0.1",
138-
"babel-jest": "^23.6.0",
139-
"babel-loader": "^8.0.4",
140-
"babel-plugin-add-module-exports": "^1.0.0",
140+
"babel-jest": "^24.8.0",
141+
"babel-loader": "^8.0.6",
142+
"babel-plugin-add-module-exports": "^1.0.2",
141143
"babel-plugin-array-includes": "^2.0.3",
142144
"babel-plugin-dynamic-import-node": "^2.2.0",
143145
"babel-plugin-react-intl": "^3.0.1",
144146
"babel-plugin-react-transform": "^3.0.0",
145-
"babel-plugin-styled-components": "^1.9.4",
146-
"babel-plugin-transform-react-remove-prop-types": "^0.4.21",
147+
"babel-plugin-styled-components": "^1.10.0",
148+
"babel-plugin-transform-react-remove-prop-types": "^0.4.24",
147149
"babel-preset-react-hmre": "^1.1.1",
148150
"cz-conventional-changelog": "^2.1.0",
149-
"enzyme": "^3.8.0",
150-
"enzyme-adapter-react-16": "^1.7.1",
151-
"eslint": "^5.10.0",
151+
"enzyme": "^3.9.0",
152+
"enzyme-adapter-react-16": "^1.13.1",
153+
"eslint": "^5.16.0",
152154
"eslint-config-airbnb": "^17.1.0",
153-
"eslint-plugin-import": "^2.14.0",
154-
"eslint-plugin-jsx-a11y": "^6.1.2",
155-
"eslint-plugin-react": "^7.11.1",
155+
"eslint-plugin-import": "^2.17.2",
156+
"eslint-plugin-jsx-a11y": "^6.2.1",
157+
"eslint-plugin-react": "^7.13.0",
156158
"exports-loader": "^0.7.0",
157-
"istanbul-api": "^2.0.6",
158-
"istanbul-reports": "^2.0.1",
159-
"jest-cli": "^23.6.0",
159+
"istanbul-api": "^3.0.0",
160+
"istanbul-reports": "^2.2.6",
161+
"jest-cli": "^24.8.0",
160162
"jest-sonar-reporter": "^2.0.0",
161-
"lint-staged": "^8.1.0",
163+
"lint-staged": "^8.1.7",
162164
"pre-commit": "^1.2.2",
163165
"raf": "^3.4.1",
164166
"react": "^16.6.3",
165167
"react-addons-test-utils": "^15.6.2",
166168
"react-dom": "^16.6.3",
167-
"react-styleguidist": "^8.0.6",
168-
"react-test-renderer": "^16.6.3",
169+
"react-styleguidist": "^9.1.2",
170+
"react-test-renderer": "^16.8.6",
169171
"request": "^2.88.0",
170-
"rimraf": "^2.6.2",
171-
"rollup": "^1.0.0",
172-
"rollup-plugin-babel": "^4.1.0",
173-
"rollup-plugin-cleanup": "^3.0.0",
174-
"rollup-plugin-commonjs": "^9.2.0",
175-
"rollup-plugin-inject": "^2.2.0",
176-
"rollup-plugin-json": "^3.1.0",
177-
"rollup-plugin-node-builtins": "^2.1.2",
178-
"rollup-plugin-node-resolve": "^4.0.0",
179-
"rollup-plugin-replace": "^2.1.0",
180-
"rollup-plugin-terser": "^3.0.0",
181-
"rollup-plugin-visualizer": "^0.9.2",
182-
"rollup-watch": "^4.3.1",
183-
"semantic-release": "^15.13.0",
184-
"sinon": "^7.2.2",
172+
"rimraf": "^2.6.3",
173+
"rollup": "^1.12.3",
174+
"semantic-release": "^15.13.12",
185175
"styled-components": "^4.1.2",
186176
"toctoc": "^0.3.2",
187-
"webpack": "^4.27.1"
177+
"webpack": "^4.32.2"
188178
},
189179
"jest": {
190180
"testURL": "http://localhost",
@@ -194,7 +184,9 @@
194184
"setupFiles": [
195185
"raf/polyfill"
196186
],
197-
"setupTestFrameworkScriptFile": "<rootDir>/internals/testing/test-bundler.js",
187+
"setupFilesAfterEnv": [
188+
"<rootDir>/internals/testing/test-bundler.js"
189+
],
198190
"testPathIgnorePatterns": [
199191
"<rootDir>/dist/",
200192
"<rootDir>/lib/"
@@ -211,6 +203,10 @@
211203
"lines": 93
212204
}
213205
},
206+
"transformIgnorePatterns": [
207+
"<rootDir>/node_modules",
208+
"<rootDir>/internals"
209+
],
214210
"moduleDirectories": [
215211
"node_modules",
216212
"src"
@@ -234,22 +230,21 @@
234230
"lint-staged"
235231
],
236232
"dependencies": {
237-
"@bootstrap-styled/css-mixins": "^1.3.0",
238-
"@bootstrap-styled/css-utils": "^1.2.0",
239-
"@bootstrap-styled/provider": "^1.4.0",
233+
"@bootstrap-styled/css-mixins": "^2.0.6",
234+
"@bootstrap-styled/css-utils": "^1.2.6",
235+
"@bootstrap-styled/provider": "^1.4.2",
240236
"@bootstrap-styled/utils": "1.7.1",
241-
"@bootstrap-styled/utils": "1.7.0",
242-
"@bootstrap-styled/v4": "^2.0.0",
243-
"bootstrap-styled": "^2.3.0",
244-
"classnames": "^2.2.5",
237+
"@bootstrap-styled/v4": "^3.0.15",
238+
"bootstrap-styled": "^2.4.13",
239+
"classnames": "^2.2.6",
245240
"lodash.omit": "^4.5.0",
246241
"map-to-css-modules": "^1.0.6",
247-
"prop-types": "^15.6.2"
242+
"prop-types": "^15.7.2"
248243
},
249244
"peerDependencies": {
250-
"react": "^16.6.3",
251-
"react-dom": "^16.6.3",
252-
"styled-components": "^4.1.2"
245+
"react": "^16.0.0",
246+
"react-dom": "^16.0,0",
247+
"styled-components": "^4.0.0"
253248
},
254249
"publishConfig": {
255250
"registry": "https://registry.npmjs.org",

rollup.config.js

Lines changed: 2 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,3 @@
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 builtins from 'rollup-plugin-node-builtins';
12-
import pkg from './package.json';
13-
import declination from './declination.json';
14-
const processShim = '\0process-shim';
15-
const prod = process.env.PRODUCTION;
16-
const mode = prod ? 'production' : 'development';
17-
const { globals, external } = declination;
1+
const { createConfig } = require('@rollup-umd/rollup');
182

19-
console.log(`Creating ${mode} bundle...`);
20-
21-
const output = prod ? [
22-
{
23-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.min.js`, format: 'umd', sourcemap: true,
24-
},
25-
{
26-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.cjs.min.js`, format: 'cjs', sourcemap: true,
27-
},
28-
{
29-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.esm.js`, format: 'es', sourcemap: true,
30-
},
31-
] : [
32-
{
33-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.js`, format: 'umd', sourcemap: true,
34-
},
35-
{
36-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.cjs.js`, format: 'cjs', sourcemap: true,
37-
},
38-
{
39-
name: pkg.name, exports: 'named', globals, file: `dist/${pkg.name}.esm.js`, format: 'es', sourcemap: true,
40-
},
41-
];
42-
43-
const plugins = [
44-
// Unlike Webpack and Browserify, Rollup doesn't automatically shim Node
45-
// builtins like `process`. This ad-hoc plugin creates a 'virtual module'
46-
// which includes a shim containing just the parts the bundle needs.
47-
{
48-
resolveId(importee) {
49-
if (importee === processShim) return importee;
50-
return null;
51-
},
52-
load(id) {
53-
if (id === processShim) return 'export default { argv: [], env: {} }';
54-
return null;
55-
},
56-
},
57-
builtins(),
58-
nodeResolve(),
59-
commonjs({
60-
include: 'node_modules/**',
61-
}),
62-
replace({
63-
'process.env.NODE_ENV': JSON.stringify(prod ? 'production' : 'development'),
64-
}),
65-
inject({
66-
process: processShim,
67-
}),
68-
json(),
69-
babel({
70-
babelrc: false,
71-
exclude: 'node_modules/**',
72-
}),
73-
cleanup(),
74-
];
75-
76-
export default output.map((o) => ({
77-
input: 'src/index.js',
78-
external,
79-
output: o,
80-
plugins: prod ? plugins.concat([terser(), visualizer({ filename: './bundle-stats.html' })]) : plugins,
81-
}));
3+
module.exports = createConfig();

0 commit comments

Comments
 (0)