Skip to content
This repository was archived by the owner on Nov 24, 2018. It is now read-only.

Commit

Permalink
chore: adds np, lint-stages, prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
adieuadieu committed Aug 2, 2017
1 parent e33bfb6 commit 091e613
Show file tree
Hide file tree
Showing 3 changed files with 413 additions and 13 deletions.
17 changes: 15 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@
},
"scripts": {
"watch": "tsc -w",
"build": "rimraf dist; tsc -d",
"prepublishOnly": "npm test; npm run build",
"build": "npm run clean && tsc -d",
"clean": "rimraf dist",
"precommit": "lint-staged",
"prepublishOnly": "npm test && npm run build",
"prettier": "prettier --single-quote --trailing-comma all --write \"src/**/*.ts\"",
"release": "np",
"test": "npm run tslint",
"tslint": "tslint -c tslint.json -p tsconfig.json --exclude node_modules/**"
},
Expand All @@ -41,7 +45,16 @@
"@types/cuid": "^1.3.0",
"@types/node": "^8.0.15",
"ava": "^0.21.0",
"lint-staged": "^4.0.2",
"np": "^2.16.0",
"prettier": "^1.5.3",
"tslint": "^5.5.0",
"typescript": "^2.4.2"
},
"lint-staged": {
"*.ts": [
"prettier --single-quote --trailing-comma all --write",
"git add"
]
}
}
8 changes: 8 additions & 0 deletions serverless/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@
version "2.0.40"
resolved "https://registry.yarnpkg.com/@types/async/-/async-2.0.40.tgz#ac02de68e66c004a61b7cb16df8b1db3a254cca9"

"@types/cuid@^1.3.0":
version "1.3.0"
resolved "https://registry.yarnpkg.com/@types/cuid/-/cuid-1.3.0.tgz#20b0e00ca555df564866bc52d2e251bf90c88db7"

"@types/graphql@^0.9.0":
version "0.9.4"
resolved "https://registry.yarnpkg.com/@types/graphql/-/graphql-0.9.4.tgz#cdeb6bcbef9b6c584374b81aa7f48ecf3da404fa"
Expand All @@ -20,6 +24,10 @@
version "0.0.34"
resolved "https://registry.yarnpkg.com/@types/isomorphic-fetch/-/isomorphic-fetch-0.0.34.tgz#3c3483e606c041378438e951464f00e4e60706d6"

"@types/node@^8.0.15":
version "8.0.19"
resolved "https://registry.yarnpkg.com/@types/node/-/node-8.0.19.tgz#e46e2b0243de7d03f15b26b45c59ebb84f657a4e"

[email protected]:
version "2.1.4"
resolved "https://registry.yarnpkg.com/accept/-/accept-2.1.4.tgz#887af54ceee5c7f4430461971ec400c61d09acbb"
Expand Down
Loading

0 comments on commit 091e613

Please sign in to comment.