Skip to content

Commit a5fae00

Browse files
author
Dimitri Kopriwa
committed
feat(greenkeeper): added greenkeeper"
1 parent 105086f commit a5fae00

8 files changed

+98
-99
lines changed

Diff for: .babelrc

-36
This file was deleted.

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
organization: $(echo $TRAVIS_REPO_SLUG | awk -F '/' '{print $1}')
5454
script:
5555
- npm run test
56-
- sonar-scanner -Dsonar.projectVersion=${SONAR_VERSION}
56+
- if [[ "$TRAVIS_BRANCH" != greenkeeper* ]]; then sonar-scanner -Dsonar.projectVersion=${SONAR_VERSION}; fi
5757

5858
# Job: Release
5959
- stage: release

Diff for: README.md

+12-4
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,17 @@
11
# documentation-cli
22

3-
[![Build Status](https://travis-ci.org/rollup-umd/documentation-cli.svg?branch=master)](https://travis-ci.org/rollup-umd/documentation-cli) [![npm Version](https://img.shields.io/npm/v/@rollup-umd/documentation-cli.svg?style=flat)](https://www.npmjs.com/package/@rollup-umd/documentation-cli) [![License](https://img.shields.io/npm/l/@rollup-umd/documentation-cli.svg?style=flat)](https://www.npmjs.com/package/@rollup-umd/documentation-cli) [![NPM monthly downloads](https://img.shields.io/npm/dm/@rollup-umd/documentation-cli.svg?style=flat)](https://npmjs.org/package/@rollup-umd/documentation-cli) [![NPM total downloads](https://img.shields.io/npm/dt/@rollup-umd/documentation-cli.svg?style=flat)](https://npmjs.org/package/@rollup-umd/documentation-cli) [![npm Version](https://img.shields.io/node/v/@rollup-umd/documentation-cli.svg?style=flat)](https://www.npmjs.com/package/@rollup-umd/documentation-cli) [![Module formats](https://img.shields.io/badge/module%20formats-umd%2C%20cjs%2C%20esm-green.svg?style=flat)](https://www.npmjs.com/package/@rollup-umd/documentation-cli)
4-
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.rollup-umd.documentation-cli&metric=coverage)](https://sonarcloud.io/dashboard?id=com.github.rollup-umd.documentation-cli) [![Quality gate status](https://sonarcloud.io/api/project_badges/measure?project=com.github.rollup-umd.documentation-cli&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.github.rollup-umd.documentation-cli) [![Greenkeeper badge](https://badges.greenkeeper.io/rollup-umd/documentation-cli.svg)](https://greenkeeper.io/)
5-
6-
the adaptive module boilerplate
3+
[![Build Status](https://travis-ci.org/rollup-umd/documentation-cli.svg?branch=master)](https://travis-ci.org/rollup-umd/documentation-cli)
4+
[![npm Version](https://img.shields.io/npm/v/@rollup-umd/documentation-cli.svg?style=flat)](https://www.npmjs.com/package/@rollup-umd/documentation-cli)
5+
[![License](https://img.shields.io/npm/l/@rollup-umd/documentation-cli.svg?style=flat)](https://www.npmjs.com/package/@rollup-umd/documentation-cli)
6+
[![NPM monthly downloads](https://img.shields.io/npm/dm/@rollup-umd/documentation-cli.svg?style=flat)](https://npmjs.org/package/@rollup-umd/documentation-cli)
7+
[![NPM total downloads](https://img.shields.io/npm/dt/@rollup-umd/documentation-cli.svg?style=flat)](https://npmjs.org/package/@rollup-umd/documentation-cli)
8+
[![npm Version](https://img.shields.io/node/v/@rollup-umd/documentation-cli.svg?style=flat)](https://www.npmjs.com/package/@rollup-umd/documentation-cli)
9+
[![Module formats](https://img.shields.io/badge/module%20formats-umd%2C%20cjs%2C%20esm-green.svg?style=flat)](https://www.npmjs.com/package/@rollup-umd/documentation-cli)
10+
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=com.github.rollup-umd.documentation-cli&metric=coverage)](https://sonarcloud.io/dashboard?id=com.github.rollup-umd.documentation-cli)
11+
[![Quality gate status](https://sonarcloud.io/api/project_badges/measure?project=com.github.rollup-umd.documentation-cli&metric=alert_status)](https://sonarcloud.io/dashboard?id=com.github.rollup-umd.documentation-cli)
12+
[![Greenkeeper badge](https://badges.greenkeeper.io/rollup-umd/documentation-cli.svg)](https://greenkeeper.io/)
13+
14+
CLI utilities for maintaining the documentation of any Rollup UMD projects.
715

816

917
## Table of Contents

Diff for: babel.config.js

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

Diff for: package.json

+37-39
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"build:readme": "toctoc README.md -w",
2222
"build:lib:watch": "npm run build:lib -- --watch",
2323
"test": "npm run lint && npm run test:web",
24-
"test:web": "NODE_ENV=test TEST_REPORT_PATH=reports jest --coverage",
24+
"test:web": "NODE_ENV=test jest --coverage",
2525
"test:clean": "rimraf ./coverage",
2626
"test:watch": "npm run test -- --watch",
2727
"lint": "eslint src",
@@ -140,6 +140,11 @@
140140
"testRegex": "tests/.*\\.test\\.js$",
141141
"testResultsProcessor": "jest-sonar-reporter"
142142
},
143+
"jestSonar": {
144+
"reportPath": "reports",
145+
"reportFile": "test-report.xml",
146+
"indent": 2
147+
},
143148
"lint-staged": {
144149
"*.js": [
145150
"eslint --fix",
@@ -151,71 +156,64 @@
151156
"lint-staged"
152157
],
153158
"devDependencies": {
154-
"@semantic-release/changelog": "^3.0.0",
159+
"@babel/cli": "^7.2.0",
160+
"@babel/core": "^7.2.2",
161+
"@babel/node": "^7.2.2",
162+
"@babel/plugin-external-helpers": "^7.2.0",
163+
"@babel/plugin-proposal-class-properties": "^7.2.1",
164+
"@babel/plugin-proposal-decorators": "^7.2.2",
165+
"@babel/plugin-proposal-json-strings": "^7.2.0",
166+
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
167+
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
168+
"@babel/plugin-syntax-import-meta": "^7.2.0",
169+
"@babel/plugin-transform-async-to-generator": "^7.2.0",
170+
"@babel/plugin-transform-modules-commonjs": "^7.2.0",
171+
"@babel/plugin-transform-react-constant-elements": "^7.2.0",
172+
"@babel/plugin-transform-react-inline-elements": "^7.2.0",
173+
"@babel/plugin-transform-runtime": "^7.2.0",
174+
"@babel/preset-env": "^7.2.0",
175+
"@babel/preset-react": "^7.0.0",
176+
"@semantic-release/changelog": "^3.0.1",
155177
"@semantic-release/git": "^7.0.5",
156-
"@semantic-release/github": "^5.2.1",
178+
"@semantic-release/github": "^5.2.6",
157179
"@semantic-release/npm": "^5.1.2",
158-
"@yeutech-lab/rollup-umd-documentation": "^2.4.5",
159-
"babel-cli": "^6.26.0",
180+
"@rollup-umd/documentation": "^1.3.1",
181+
"@yeutech-lab/documentation": "^1.0.8",
182+
"babel-core": "^7.0.0-bridge.0",
160183
"babel-eslint": "^10.0.1",
161184
"babel-jest": "^23.6.0",
162185
"babel-loader": "^8.0.4",
163186
"babel-plugin-add-module-exports": "^1.0.0",
164187
"babel-plugin-array-includes": "^2.0.3",
165188
"babel-plugin-dynamic-import-node": "^2.2.0",
166-
"babel-plugin-external-helpers": "^6.22.0",
167189
"babel-plugin-react-transform": "^3.0.0",
168-
"babel-plugin-transform-async-to-generator": "^6.24.1",
169-
"babel-plugin-transform-class-properties": "^6.24.1",
170-
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.0",
171-
"babel-plugin-transform-object-rest-spread": "^6.26.0",
172-
"babel-plugin-transform-react-constant-elements": "^6.23.0",
173-
"babel-plugin-transform-react-inline-elements": "^6.22.0",
174-
"babel-plugin-transform-react-remove-prop-types": "^0.4.13",
175-
"babel-plugin-transform-runtime": "^6.23.0",
176-
"babel-preset-env": "^1.6.1",
177-
"babel-preset-es2015": "^6.24.1",
178-
"babel-preset-react": "^6.24.1",
179-
"babel-preset-stage-2": "^6.24.1",
180-
"babel-preset-stage-3": "^6.24.1",
190+
"babel-plugin-transform-react-remove-prop-types": "^0.4.21",
181191
"cz-conventional-changelog": "^2.1.0",
182192
"eslint": "^5.10.0",
183193
"eslint-config-airbnb-base": "^13.1.0",
184-
"eslint-plugin-import": "^2.12.0",
194+
"eslint-plugin-import": "^2.14.0",
185195
"exports-loader": "^0.7.0",
186-
"istanbul-api": "2.0.6",
187-
"istanbul-reports": "2.0.1",
196+
"istanbul-api": "^2.0.6",
197+
"istanbul-reports": "^2.0.1",
188198
"jest-cli": "^23.6.0",
189199
"jest-sonar-reporter": "^2.0.0",
190200
"lint-staged": "^8.1.0",
191201
"pre-commit": "^1.2.2",
192-
"react-styleguidist": "^8.0.4",
202+
"react-styleguidist": "^8.0.6",
193203
"rimraf": "^2.6.2",
194-
"rollup": "^0.68.0",
195-
"rollup-plugin-babel": "^4.1.0",
196-
"rollup-plugin-cleanup": "^3.0.0",
197-
"rollup-plugin-commonjs": "^9.1.0",
198-
"rollup-plugin-inject": "^2.0.0",
199-
"rollup-plugin-json": "^3.1.0",
200-
"rollup-plugin-node-builtins": "^2.1.2",
201-
"rollup-plugin-node-resolve": "^4.0.0",
202-
"rollup-plugin-replace": "^2.0.0",
203-
"rollup-plugin-uglify": "^6.0.0",
204-
"rollup-plugin-visualizer": "^0.9.2",
205-
"rollup-watch": "^4.3.1",
206-
"semantic-release": "^15.9.1",
204+
"semantic-release": "^15.13.0",
207205
"sinon": "^7.2.2",
208206
"toctoc": "^0.3.2",
209-
"webpack": "^4.20.2"
207+
"webpack": "^4.27.1"
210208
},
211209
"dependencies": {
210+
"@babel/runtime": "^7.2.0",
212211
"async": "^2.6.1",
213-
"babel-runtime": "^6.26.0",
214212
"debug": "^4.1.0",
215213
"execa": "^1.0.0",
216214
"glob": "^7.1.3",
217215
"shelljs": "^0.8.3",
218-
"yargs": "^12.0.2"
216+
"yargs": "^12.0.5"
219217
},
220218
"peerDependencies": {},
221219
"publishConfig": {

Diff for: src/cli/documentation.js

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
exports.command = ['documentation <command>', 'doc'];
22
exports.desc = 'Initialize documentation.';
33
exports.builder = (yargs) => yargs.commandDir('documentation_cmds');
4-

Diff for: src/cli/utils.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@ const spawn = (command, cb) => {
1414
const outputList = [];
1515
child.stdout.setEncoding('utf8');
1616
child.stderr.setEncoding('utf8');
17-
child.stdout.on('data', (data) => outputList.push(data) && console.log(data.replace(/\n$/, '')));
18-
child.stderr.on('data', (data) => outputList.push(data) && console.log(data.replace(/\n$/, '')));
17+
child.stdout.on('data', (data) => outputList.push(data) && console.log(data.replace(/\n$/, ''))); // eslint-disable-line no-console
18+
child.stderr.on('data', (data) => outputList.push(data) && console.log(data.replace(/\n$/, ''))); // eslint-disable-line no-console
1919
child.on('close', (code) => code === 1 ? cb(new Error(`child process exited with code ${code}`, [outputList.join('')])) : cb(null, [outputList.join('')]));
2020
};
2121

Diff for: styleguide.config.js

+2-16
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
const { default: createConfig } = require('@yeutech-lab/rollup-umd-documentation/lib/styleguide.config');
1+
const { createConfig } = require('@rollup-umd/documentation');
22

3-
module.exports = {
4-
...createConfig(undefined, {
5-
favicon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAC\n' +
6-
'HUlEQVQ4jXWRP0jVcRTFP/f+vu+9fNrDpEjBqCVoEGsocWmJ/iKZEDWEU38QEocwWsSWmmpyrIjG\n' +
7-
'sL9QgxThUA0O1aKDJIWYmv/ylT7z/ft9b4OK+nrvwF3uOZx7LkcogcFjJxSRFhP5VP+mb6yUTksR\n' +
8-
'mO0BekSkY7DpdEldUWLwyFGHWSdmtcBF4EApA3m+tzm6u/J3RSziPSKgCs7Vo/oa1QTOgeoznGvH\n' +
9-
'uSzOgXP8nI34mV9BymXzGp9Y2Pp017bF7ZHAdDV+FZBYPyMtQB2QDz1+ZlL96Ljciye474amdy6E\n' +
10-
'xsuR5N+euuo5X51YdsH/SZ0h+5YW1H8fjfgfU24s6+XFzZEHPviQ+2yNkYbhZCZ2fHi+qnY+U5ZP\n' +
11-
'lOV8PBqqqGCi5LKBnxyLhd++RiW5EIg3uWbIQH/ui8naiY5Y+8mMad+yBYiD/TVJf6gm6UkJs1Mx\n' +
12-
'XUw7TVtA2oL3eZOm66lHKQAH0Fl2VbOe6JrZUs7xbrRaJ6bLORyb1ZzfVJYrUqPFVay78PF0XpX1\n' +
13-
'kCtKaAyRltvllxVAu+JtGmAXBA4WGhhSuAJQb9LtV1tSsLhil4CZDZMCWPKb0s6v8QaV3jjfFW9T\n' +
14-
'B5IGzmxUhiYNQK+HLQCCvRW4AmQ3pEuvcEXQHNyIZkwf7ggyrWcrxlN59NS5ZO/Hov8UW74K72RD\n' +
15-
'5K5icwpPBAaK6aCgkgIMRcXfWvSuv/XP43wp0T84kNcr9/KNuQAAAABJRU5ErkJggg==',
16-
})
17-
};
3+
module.exports = createConfig();

0 commit comments

Comments
 (0)