From a4595db88120d832a7291a23ea49c9befac310ec Mon Sep 17 00:00:00 2001 From: Yarmo Mackenbach Date: Fri, 14 Aug 2020 19:55:57 +0200 Subject: [PATCH] Change NPM script calls --- README.md | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e3d9bf9..2552158 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,6 @@ To run Keyoxide locally on your machine for development: - install NodeJS - directly from their [website](https://nodejs.org/en/), or - using [nvm](https://github.com/nvm-sh/nvm): `nvm install --lts; nvm use --lts` -- run the server with `node index.js` +- run the server with `npm run dev` Keyoxide will now be available at [https://localhost:3000](https://localhost:3000) diff --git a/package.json b/package.json index 2fe19a3..54eb2cf 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,8 @@ "license-check-and-add": "^3.0.4" }, "scripts": { - "main": "node index.js", + "start": "NODE_ENV=production node index.js", + "dev": "node index.js", "license:check": "./node_modules/license-check-and-add/dist/src/cli.js check", "license:add": "./node_modules/license-check-and-add/dist/src/cli.js add", "license:remove": "./node_modules/license-check-and-add/dist/src/cli.js remove",