From e0f16081b09e00515e2a23e9ce2bb82b78a4c51c Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Mon, 13 Sep 2021 20:28:43 +0700 Subject: [PATCH] Updated husky and install for prettier --- .husky/pre-commit | 2 +- README.md | 35 ++++++++++++++++++++++------------- package.json | 3 ++- 3 files changed, 25 insertions(+), 15 deletions(-) diff --git a/.husky/pre-commit b/.husky/pre-commit index c37466e..36af219 100755 --- a/.husky/pre-commit +++ b/.husky/pre-commit @@ -1,4 +1,4 @@ #!/bin/sh . "$(dirname "$0")/_/husky.sh" -npx lint-staged \ No newline at end of file +npx lint-staged diff --git a/README.md b/README.md index 2d15dbc..ee121d3 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,30 @@ # Express Nodejs App -- Nodejs -- Express -- TypeScript -- Prettier -- ESLint -- Docker -- DroneCI -- Lerna Support -# Quick Start -- Start +- Nodejs +- Express +- TypeScript +- Prettier +- ESLint +- Docker +- DroneCI +- Lerna Support + +# Quickstart + +- Start + ```shell yarn start ``` -- Navigate + +- Navigate + ```shell curl http://localhost:3000 ``` -- Response + +- Response + ```json { "startedAt": "2021-09-13T13:21:04.184Z", @@ -25,5 +32,7 @@ curl http://localhost:3000 "status": "OK" } ``` + ### Contributors -- Sambo Chea \ No newline at end of file + +- Sambo Chea diff --git a/package.json b/package.json index 2377096..82e59ee 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,8 @@ "build": "rm -rf dist && tsc", "serve": "yarn run build && node dist/app.js", "bootstrap": "lerna bootstrap", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "echo \"Error: no test specified\" && exit 1", + "prepare": "husky install" }, "repository": { "type": "git",