From 3d392853ddf9e0a444fe277076172d6082b80277 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Calvi=C3=B1o=20S=C3=A1nchez?= Date: Fri, 12 Jul 2019 13:19:30 +0200 Subject: Make build system compatible with /compile bot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The /compile bot first installs the NPM packages with "npm init" and then performs the build with "npm run build", which executes the command defined in "scripts->build" in "package.json". Currently "npm init" does not install all the NPM packages needed by Talk; it is necessary to run it both in the root folder and in the "/vue" folder. Due to this "make npm-init" needs to be run from the build script to install all the needed packages before performing the actual build. Signed-off-by: Daniel Calviño Sánchez --- package.json | 3 +++ 1 file changed, 3 insertions(+) (limited to 'package.json') diff --git a/package.json b/package.json index 0dc108c4f..99751f87a 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,9 @@ }, "author": "", "license": "AGPL-3.0", + "scripts": { + "build": "make npm-init build-js-production bundle-simplewebrtc" + }, "devDependencies": { "@babel/core": "^7.5.0", "@babel/preset-env": "^7.5.0", -- cgit v1.2.3