Skip to content

Commit

Permalink
Add prettier for package.json (#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
kpman authored Nov 30, 2017
1 parent c5feddc commit 104a158
Show file tree
Hide file tree
Showing 2 changed files with 76 additions and 23 deletions.
49 changes: 27 additions & 22 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
{
"name": "newsroom-cli",
"version": "0.1.7",
"description": "A modern CLI to get your favorite news.",
"author": "kpman",
"license": "MIT",
"homepage": "https://github.com/kpman/newsroom/#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/kpman/newsroom.git"
},
"bugs": {
"url": "https://github.com/kpman/newsroom/issues"
},
"version": "0.1.7",
"main": "bin/cli.js",
"bin": {
"newsroom": "bin/cli.js",
Expand All @@ -15,27 +25,15 @@
"build": "npm run clean && babel src -d lib --copy-files --ignore '**/*.spec.js'",
"clean": "rimraf lib",
"precommit": "lint-staged",
"prepublishOnly": "npm run lint && npm run build",
"lint": "eslint src",
"lint:fix": "npm run lint -- --fix",
"prepublishOnly": "npm run lint && npm run build",
"test": "npm run lint && jest",
"testonly": "jest",
"testonly:cov": "jest --coverage --runInBand --forceExit",
"testonly:watch": "jest --watch",
"version": "rimraf package-lock.json && git add -A"
},
"engines": {
"node": ">=4"
},
"keywords": [
"newsletter"
],
"author": "kpman",
"license": "MIT",
"bugs": {
"url": "https://github.com/kpman/newsroom/issues"
},
"homepage": "https://github.com/kpman/newsroom/#readme",
"dependencies": {
"babel-runtime": "^6.26.0",
"chalk": "^2.3.0",
Expand Down Expand Up @@ -68,13 +66,14 @@
"jest": "^21.2.1",
"lint-staged": "^4.3.0",
"prettier": "^1.7.4",
"prettier-package-json": "^1.4.0",
"rimraf": "^2.6.2"
},
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
]
"keywords": [
"newsletter"
],
"engines": {
"node": ">=4"
},
"jest": {
"testEnvironment": "node",
Expand All @@ -83,8 +82,14 @@
],
"coverageDirectory": "./coverage/"
},
"repository": {
"type": "git",
"url": "git+https://github.com/kpman/newsroom.git"
"lint-staged": {
"*.js": [
"eslint --fix",
"git add"
],
"package.json": [
"prettier-package-json --write",
"git add"
]
}
}
50 changes: 49 additions & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,10 @@ asynckit@^0.4.0:
version "0.4.0"
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"

author-regex@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/author-regex/-/author-regex-1.0.0.tgz#d08885be6b9bbf9439fe087c76287245f0a81450"

aws-sign2@~0.6.0:
version "0.6.0"
resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f"
Expand Down Expand Up @@ -1670,6 +1674,14 @@ form-data@~2.3.1:
combined-stream "^1.0.5"
mime-types "^2.1.12"

fs-extra@^3.0.1:
version "3.0.1"
resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-3.0.1.tgz#3794f378c58b342ea7dbbb23095109c4b3b62291"
dependencies:
graceful-fs "^4.1.2"
jsonfile "^3.0.0"
universalify "^0.1.0"

fs.realpath@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f"
Expand Down Expand Up @@ -1810,7 +1822,7 @@ got@^6.7.1:
unzip-response "^2.0.1"
url-parse-lax "^1.0.0"

graceful-fs@^4.1.11, graceful-fs@^4.1.2:
graceful-fs@^4.1.11, graceful-fs@^4.1.2, graceful-fs@^4.1.6:
version "4.1.11"
resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658"

Expand Down Expand Up @@ -2590,6 +2602,12 @@ json5@^0.5.1:
version "0.5.1"
resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821"

jsonfile@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-3.0.1.tgz#a5ecc6f65f53f662c4415c7675a0331d0992ec66"
optionalDependencies:
graceful-fs "^4.1.6"

jsonify@~0.0.0:
version "0.0.0"
resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73"
Expand Down Expand Up @@ -3101,6 +3119,12 @@ package-json@^4.0.0:
registry-url "^3.0.3"
semver "^5.1.0"

parse-author@^2.0.0:
version "2.0.0"
resolved "https://registry.yarnpkg.com/parse-author/-/parse-author-2.0.0.tgz#d3460bf1ddd0dfaeed42da754242e65fb684a81f"
dependencies:
author-regex "^1.0.0"

parse-glob@^3.0.4:
version "3.0.4"
resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c"
Expand Down Expand Up @@ -3214,6 +3238,18 @@ preserve@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"

prettier-package-json@^1.4.0:
version "1.4.0"
resolved "https://registry.yarnpkg.com/prettier-package-json/-/prettier-package-json-1.4.0.tgz#ecf2ed04c5bf9cb6926900be6260f0f9a485e2f3"
dependencies:
commander "^2.9.0"
fs-extra "^3.0.1"
glob "^7.1.2"
minimatch "^3.0.4"
parse-author "^2.0.0"
sort-object-keys "^1.1.2"
sort-order "^1.0.1"

prettier@^1.7.4:
version "1.7.4"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.7.4.tgz#5e8624ae9363c80f95ec644584ecdf55d74f93fa"
Expand Down Expand Up @@ -3609,6 +3645,14 @@ sntp@2.x.x:
dependencies:
hoek "4.x.x"

sort-object-keys@^1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/sort-object-keys/-/sort-object-keys-1.1.2.tgz#d3a6c48dc2ac97e6bc94367696e03f6d09d37952"

sort-order@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/sort-order/-/sort-order-1.0.1.tgz#d822b8cdb90ea6a9df968c4bd45987cf548199e6"

source-map-support@^0.4.15:
version "0.4.18"
resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f"
Expand Down Expand Up @@ -3916,6 +3960,10 @@ unique-string@^1.0.0:
dependencies:
crypto-random-string "^1.0.0"

universalify@^0.1.0:
version "0.1.1"
resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.1.tgz#fa71badd4437af4c148841e3b3b165f9e9e590b7"

unzip-response@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/unzip-response/-/unzip-response-2.0.1.tgz#d2f0f737d16b0615e72a6935ed04214572d56f97"
Expand Down

0 comments on commit 104a158

Please sign in to comment.