From 8d249dd70c60a189aa5a3dd3f6f7272e573023f0 Mon Sep 17 00:00:00 2001 From: "a.bouhuolia" Date: Mon, 20 Sep 2021 13:23:05 +0200 Subject: [PATCH] feat: install script to automate the task. --- server/package.json | 4 ++-- server/scripts/install.sh | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 server/scripts/install.sh diff --git a/server/package.json b/server/package.json index 0b62f8911..e7429d084 100644 --- a/server/package.json +++ b/server/package.json @@ -6,11 +6,11 @@ "scripts": { "start": "cross-env NODE_PATH=./src nodemon", "inspect": "cross-env NODE_PATH=./src nodemon src/server.ts", - "copy-18n": "cpy --cwd=src/locales --parents '**/*.json' ../../build/locales", + "copy-i18n": "cpy --cwd=src/locales --parents '**/*.json' ../../build/locales", "clear": "rimraf build", "build:ts": "tsc -p tsconfig.json", "build:resources": "gulp --gulpfile=scripts/gulpfile.js styles styles-rtl", - "build": "npm-run-all clear build:ts copy-18n" + "build": "npm-run-all clear build:ts copy-i18n" }, "author": "Ahmed Bouhuolia, ", "license": "ISC", diff --git a/server/scripts/install.sh b/server/scripts/install.sh new file mode 100644 index 000000000..ad899bf99 --- /dev/null +++ b/server/scripts/install.sh @@ -0,0 +1,4 @@ + +npm install +npm run build +npm run copy-i18n \ No newline at end of file