Skip to content

Commit 04c9dfd

Browse files
author
Dimitri Kopriwa
committed
feat(greenkeeper): added greenkeeper and updated all dependencies
1 parent 52c5a1b commit 04c9dfd

22 files changed

+139
-113
lines changed

.babelrc

Lines changed: 0 additions & 34 deletions
This file was deleted.

.npmignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,15 @@ sonar-project.properties
33
.gitlab-ci.yml
44
internals
55
.babelrc
6+
babel.ext.json
7+
babel.config.json
68
.editorconfig
79
.eslintignore
810
bundle-stats.html
911
CODE_OF_CONDUCT.md
12+
CHANGELOG.md
13+
README.md
14+
CONTRIBUTING.md
1015
declination.json
1116
rollup.config.js
1217
/styleguide.config.js

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# navigation-bar
22

33
[![Build Status](https://travis-ci.org/bootstrap-styled/navigation-bar.svg?branch=master)](https://travis-ci.org/bootstrap-styled/navigation-bar) [![npm Version](https://img.shields.io/npm/v/@bootstrap-styled/navigation-bar.svg?style=flat)](https://www.npmjs.com/package/@bootstrap-styled/navigation-bar) [![License](https://img.shields.io/npm/l/@bootstrap-styled/navigation-bar.svg?style=flat)](https://www.npmjs.com/package/@bootstrap-styled/navigation-bar) [![NPM monthly downloads](https://img.shields.io/npm/dm/@bootstrap-styled/navigation-bar.svg?style=flat)](https://npmjs.org/package/@bootstrap-styled/navigation-bar) [![NPM total downloads](https://img.shields.io/npm/dt/@bootstrap-styled/navigation-bar.svg?style=flat)](https://npmjs.org/package/@bootstrap-styled/navigation-bar) [![npm Version](https://img.shields.io/node/v/@bootstrap-styled/navigation-bar.svg?style=flat)](https://www.npmjs.com/package/@bootstrap-styled/navigation-bar) [![Module formats](https://img.shields.io/badge/module%20formats-umd%2C%20cjs%2C%20esm-green.svg?style=flat)](https://www.npmjs.com/package/@bootstrap-styled/navigation-bar)
4-
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.bootstrap-styled.navigation-bar&metric=coverage)](https://sonarcloud.io/dashboard?id=com.github.bootstrap-styled.navigation-bar) [![Quality gate status](https://sonarcloud.io/api/project_badges/measure?project=com.github.bootstrap-styled.navigation-bar&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.github.bootstrap-styled.navigation-bar) [![Greenkeeper badge](https://badges.greenkeeper.io/bootstrap-styled/navigation-bar.svg)](https://greenkeeper.io/)
4+
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.bootstrap-styled.navigation-bar&metric=coverage)](https://sonarcloud.io/dashboard?id=com.github.bootstrap-styled.navigation-bar) [![Quality gate status](https://sonarcloud.io/api/project_badges/measure?project=com.github.bootstrap-styled.navigation-bar&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.github.bootstrap-styled.navigation-bar)
5+
[![gitter](https://badges.gitter.im/bootstrap-styled/bootstrap-styled.svg)](https://gitter.im/bootstrap-styled)
6+
[![Greenkeeper badge](https://badges.greenkeeper.io/bootstrap-styled/navigation-bar.svg)](https://greenkeeper.io/)
57

68
navigation-bar is a set of navigation for browser made with and for bootstrap-styled
79

babel.config.js

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
module.exports = {
2+
only: [
3+
'src',
4+
],
5+
presets: [
6+
[
7+
'@babel/preset-env',
8+
{
9+
modules: false,
10+
},
11+
],
12+
'@babel/preset-react',
13+
],
14+
plugins: [
15+
'array-includes',
16+
'styled-components',
17+
'@babel/plugin-syntax-dynamic-import',
18+
'@babel/plugin-syntax-import-meta',
19+
'@babel/plugin-proposal-class-properties',
20+
'@babel/plugin-proposal-json-strings',
21+
[
22+
'@babel/plugin-proposal-decorators',
23+
{
24+
legacy: true,
25+
},
26+
],
27+
],
28+
env: {
29+
production: {
30+
plugins: [
31+
'add-module-exports',
32+
'@babel/plugin-transform-modules-commonjs',
33+
],
34+
},
35+
test: {
36+
plugins: [
37+
'@babel/plugin-transform-modules-commonjs',
38+
'dynamic-import-node',
39+
],
40+
},
41+
},
42+
};

package.json

Lines changed: 56 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"jsnext:main": "dist/@bootstrap-styled/navigation-bar.esm.js",
77
"module": "dist/@bootstrap-styled/navigation-bar.esm.js",
88
"homepage": "https://bootstrap-styled.github.io/navigation-bar",
9+
"engines": {
10+
"node": ">=8"
11+
},
912
"browserslist": [
1013
"IE >= 9",
1114
"last 2 versions"
@@ -22,7 +25,7 @@
2225
"build:dist:watch": "rollup -c --watch",
2326
"build:lib:watch": "npm run build:lib -- --watch",
2427
"test": "npm run lint && npm run test:web",
25-
"test:web": "NODE_ENV=test TEST_REPORT_PATH=reports jest --coverage",
28+
"test:web": "NODE_ENV=test jest --coverage",
2629
"test:clean": "rimraf ./coverage",
2730
"test:watch": "npm run test -- --watch",
2831
"lint": "eslint src",
@@ -93,7 +96,7 @@
9396
"require-yield": 0,
9497
"jsx-a11y/aria-props": 2,
9598
"jsx-a11y/heading-has-content": 0,
96-
"jsx-a11y/href-no-hash": 2,
99+
"jsx-a11y/href-no-hash": 0,
97100
"jsx-a11y/label-has-for": 2,
98101
"jsx-a11y/mouse-events-have-key-events": 2,
99102
"jsx-a11y/role-has-required-aria-props": 2,
@@ -110,75 +113,78 @@
110113
}
111114
},
112115
"devDependencies": {
116+
"@babel/cli": "^7.2.0",
117+
"@babel/core": "^7.2.2",
118+
"@babel/plugin-external-helpers": "^7.2.0",
119+
"@babel/plugin-proposal-class-properties": "^7.2.1",
120+
"@babel/plugin-proposal-decorators": "^7.2.2",
121+
"@babel/plugin-proposal-json-strings": "^7.2.0",
122+
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
123+
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
124+
"@babel/plugin-syntax-import-meta": "^7.2.0",
125+
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
126+
"@babel/plugin-transform-react-constant-elements": "^7.2.0",
127+
"@babel/plugin-transform-react-inline-elements": "^7.2.0",
128+
"@babel/preset-env": "^7.2.0",
129+
"@babel/preset-react": "^7.0.0",
130+
"@bootstrap-styled/documentation": "^1.1.1",
131+
"@rollup-umd/documentation": "^1.2.0",
113132
"@semantic-release/changelog": "^3.0.1",
114133
"@semantic-release/git": "^7.0.5",
115-
"@semantic-release/github": "^5.0.5",
134+
"@semantic-release/github": "^5.2.6",
116135
"@semantic-release/npm": "^5.1.2",
117-
"@yeutech-lab/rollup-umd-documentation": "^2.4.3",
118-
"babel-cli": "^6.26.0",
119-
"babel-core": "^6.26.0",
136+
"babel-core": "^7.0.0-bridge.0",
120137
"babel-eslint": "^10.0.1",
121138
"babel-jest": "^23.6.0",
122139
"babel-loader": "^8.0.4",
123140
"babel-plugin-add-module-exports": "^1.0.0",
124141
"babel-plugin-array-includes": "^2.0.3",
125142
"babel-plugin-dynamic-import-node": "^2.2.0",
126-
"babel-plugin-external-helpers": "^6.22.0",
127143
"babel-plugin-react-intl": "^3.0.1",
128144
"babel-plugin-react-transform": "^3.0.0",
129-
"babel-plugin-styled-components": "^1.5.1",
130-
"babel-plugin-transform-class-properties": "^6.24.1",
131-
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
132-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
133-
"babel-plugin-transform-react-constant-elements": "^6.23.0",
134-
"babel-plugin-transform-react-inline-elements": "^6.22.0",
135-
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
136-
"babel-preset-env": "^1.6.0",
137-
"babel-preset-es2015": "^6.24.1",
138-
"babel-preset-react": "^6.24.1",
145+
"babel-plugin-styled-components": "^1.9.4",
146+
"babel-plugin-transform-react-remove-prop-types": "^0.4.21",
139147
"babel-preset-react-hmre": "^1.1.1",
140-
"babel-preset-stage-2": "^6.24.1",
141-
"babel-preset-stage-3": "^6.24.1",
142148
"cz-conventional-changelog": "^2.1.0",
143-
"enzyme": "^3.0.0",
144-
"enzyme-adapter-react-16": "^1.0.0",
149+
"enzyme": "^3.8.0",
150+
"enzyme-adapter-react-16": "^1.7.1",
145151
"eslint": "^5.10.0",
146152
"eslint-config-airbnb": "^17.1.0",
147-
"eslint-plugin-import": "^2.12.0",
153+
"eslint-plugin-import": "^2.14.0",
148154
"eslint-plugin-jsx-a11y": "^6.1.2",
149-
"eslint-plugin-react": "^7.3.0",
155+
"eslint-plugin-react": "^7.11.1",
150156
"exports-loader": "^0.7.0",
151-
"istanbul-api": "2.0.6",
152-
"istanbul-reports": "2.0.1",
157+
"istanbul-api": "^2.0.6",
158+
"istanbul-reports": "^2.0.1",
153159
"jest-cli": "^23.6.0",
154160
"jest-sonar-reporter": "^2.0.0",
155161
"lint-staged": "^8.1.0",
156162
"pre-commit": "^1.2.2",
157-
"raf": "^3.3.2",
163+
"raf": "^3.4.1",
158164
"react": "^16.6.3",
159165
"react-addons-test-utils": "^15.6.2",
160166
"react-dom": "^16.6.3",
161-
"react-styleguidist": "^8.0.3",
162-
"react-test-renderer": "^16.0.0",
163-
"request": "^2.87.0",
164-
"rimraf": "^2.6.1",
167+
"react-styleguidist": "^8.0.6",
168+
"react-test-renderer": "^16.6.3",
169+
"request": "^2.88.0",
170+
"rimraf": "^2.6.2",
165171
"rollup": "^0.68.0",
166172
"rollup-plugin-babel": "^4.1.0",
167173
"rollup-plugin-cleanup": "^3.0.0",
168-
"rollup-plugin-commonjs": "^9.1.0",
169-
"rollup-plugin-inject": "^2.0.0",
174+
"rollup-plugin-commonjs": "^9.2.0",
175+
"rollup-plugin-inject": "^2.2.0",
170176
"rollup-plugin-json": "^3.1.0",
171177
"rollup-plugin-node-builtins": "^2.1.2",
172178
"rollup-plugin-node-resolve": "^4.0.0",
173-
"rollup-plugin-replace": "^2.0.0",
174-
"rollup-plugin-uglify": "^6.0.0",
179+
"rollup-plugin-replace": "^2.1.0",
180+
"rollup-plugin-terser": "^3.0.0",
175181
"rollup-plugin-visualizer": "^0.9.2",
176182
"rollup-watch": "^4.3.1",
177-
"semantic-release": "^15.5.2",
183+
"semantic-release": "^15.13.0",
178184
"sinon": "^7.2.2",
179-
"styled-components": "^4.1.1",
185+
"styled-components": "^4.1.2",
180186
"toctoc": "^0.3.2",
181-
"webpack": "^4.16.1"
187+
"webpack": "^4.27.1"
182188
},
183189
"jest": {
184190
"testURL": "http://localhost",
@@ -212,6 +218,11 @@
212218
"testRegex": "tests/.*\\.test\\.js$",
213219
"testResultsProcessor": "jest-sonar-reporter"
214220
},
221+
"jestSonar": {
222+
"reportPath": "reports",
223+
"reportFile": "test-report.xml",
224+
"indent": 2
225+
},
215226
"lint-staged": {
216227
"*.js": [
217228
"eslint --fix",
@@ -223,21 +234,21 @@
223234
"lint-staged"
224235
],
225236
"dependencies": {
226-
"bootstrap-styled": "^2.1.0",
227-
"@bootstrap-styled/v4": "^1.2.6",
228-
"@bootstrap-styled/css-mixins": "^1.1.0",
229-
"@bootstrap-styled/css-utils": "^1.1.0",
230-
"@bootstrap-styled/provider": "^1.3.0",
231-
"@bootstrap-styled/utils": "1.6.4",
237+
"@bootstrap-styled/css-mixins": "^1.3.0",
238+
"@bootstrap-styled/css-utils": "^1.2.0",
239+
"@bootstrap-styled/provider": "^1.4.0",
240+
"@bootstrap-styled/utils": "1.7.0",
241+
"@bootstrap-styled/v4": "^1.3.0",
242+
"bootstrap-styled": "^2.3.0",
232243
"classnames": "^2.2.5",
233244
"lodash.omit": "^4.5.0",
234245
"map-to-css-modules": "^1.0.6",
235-
"prop-types": "^15.6.1"
246+
"prop-types": "^15.6.2"
236247
},
237248
"peerDependencies": {
238249
"react": "^16.6.3",
239250
"react-dom": "^16.6.3",
240-
"styled-components": "^4.1.1"
251+
"styled-components": "^4.1.2"
241252
},
242253
"publishConfig": {
243254
"registry": "https://registry.npmjs.org",

rollup.config.js

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import commonjs from 'rollup-plugin-commonjs';
55
import inject from 'rollup-plugin-inject';
66
import babel from 'rollup-plugin-babel';
77
import json from 'rollup-plugin-json';
8-
import uglify from 'rollup-plugin-uglify';
8+
import { terser } from 'rollup-plugin-terser';
99
import cleanup from 'rollup-plugin-cleanup';
1010
import visualizer from 'rollup-plugin-visualizer';
1111
import builtins from 'rollup-plugin-node-builtins';
@@ -67,17 +67,15 @@ const plugins = [
6767
}),
6868
json(),
6969
babel({
70-
plugins: ['external-helpers'],
70+
babelrc: false,
7171
exclude: 'node_modules/**',
7272
}),
7373
cleanup(),
7474
];
7575

76-
if (prod) plugins.push(uglify(), visualizer({ filename: './bundle-stats.html' }));
77-
78-
export default {
76+
export default output.map((o) => ({
7977
input: 'src/index.js',
8078
external,
81-
output,
82-
plugins,
83-
};
79+
output: o,
80+
plugins: prod ? plugins.concat([terser(), visualizer({ filename: './bundle-stats.html' })]) : plugins,
81+
}));

0 commit comments

Comments
 (0)