Skip to content

Commit 133c824

Browse files
committed
Reduce devDependencies
1 parent e95ff14 commit 133c824

File tree

5 files changed

+17
-27
lines changed

5 files changed

+17
-27
lines changed

.babelrc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2-
"presets": ["es2015", "stage-2"],
3-
"plugins": ["transform-runtime"]
4-
}
2+
"plugins": [
3+
"transform-es2015-modules-commonjs",
4+
"transform-async-to-generator",
5+
"transform-object-rest-spread"
6+
]
7+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,5 +160,5 @@ JavaScript API, since plugin names have to be fully spelled out there.
160160

161161
## License
162162

163-
Copyright 2017 William Hilton <[email protected]>.
163+
Copyright 2017 William Hilton.
164164
Licensed under [The Unlicense](http://unlicense.org/).

package.json

Lines changed: 9 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,23 +2,14 @@
22
"name": "update-readme",
33
"version": "0.0.0",
44
"description": "Quickly generate or update your project's README.md",
5-
"main": "dist/lib/index.js",
5+
"main": "dist/index.js",
66
"bin": {
7-
"update-readme": "dist/bin/update-readme-cli.js"
7+
"update-readme": "dist/bin/update-readme.js"
88
},
99
"scripts": {
10-
"docs": "projectz && mos",
1110
"test": "node test/all-the-readmes.js",
12-
"dev": "npm-run-all --parallel watchify:*",
13-
"watchify:bin": "watchify -vd --node -e bin/update-readme.js -o dist/bin/update-readme.js",
14-
"watchify:lib": "watchify -vd --node -e lib/index.js -s updateReadme -o dist/lib/index.js",
15-
"build:bin": "browserify -vd --node -e bin/update-readme.js -o dist/bin/update-readme.js",
16-
"build:lib": "browserify -vd --node -e lib/index.js -s updateReadme -o dist/lib/index.js"
17-
},
18-
"browserify": {
19-
"transform": [
20-
"babelify"
21-
]
11+
"watch": "babel src --out-dir dist --watch",
12+
"build": "babel src --out-dir dist"
2213
},
2314
"keywords": [],
2415
"author": "William Hilton <[email protected]>",
@@ -37,23 +28,19 @@
3728
},
3829
"homepage": "https://github.com/update-readme/update-readme#readme",
3930
"dependencies": {
40-
"babel-plugin-transform-runtime": "^6.23.0",
41-
"babel-runtime": "^6.23.0",
4231
"mz": "^2.6.0",
4332
"spdx-license-list": "^3.0.1",
4433
"subarg": "^1.0.0"
4534
},
4635
"devDependencies": {
4736
"ava": "^0.18.2",
48-
"babel-core": "^6.24.0",
49-
"babel-preset-es2015": "^6.24.0",
50-
"babel-preset-stage-2": "^6.22.0",
51-
"babelify": "^7.3.0",
52-
"browserify": "^14.1.0",
37+
"babel-cli": "^6.24.0",
38+
"babel-plugin-transform-async-to-generator": "^6.22.0",
39+
"babel-plugin-transform-es2015-modules-commonjs": "^6.24.0",
40+
"babel-plugin-transform-object-rest-spread": "^6.23.0",
5341
"chalk": "^1.1.3",
5442
"diff": "^3.2.0",
5543
"npm-run-all": "^4.0.2",
56-
"package-stream": "^3.0.0",
57-
"watchify": "^3.9.0"
44+
"package-stream": "^3.0.0"
5845
}
5946
}

bin/update-readme.js renamed to src/bin/update-readme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
try {
55
const fs = require('mz/fs')
66
const subarg = require('subarg')
7-
const updateReadme = require('../lib/index')
7+
const updateReadme = require('..')
88

99
const argv = subarg(process.argv.slice(2), {
1010
alias: {
File renamed without changes.

0 commit comments

Comments
 (0)