From 4326d18961c5858e9b03e176847fe2e5412d7284 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?G=C3=A9ry=20Debongnie?= Date: Thu, 21 Mar 2019 14:51:54 +0100 Subject: [PATCH] imp: update build scripts --- package.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d0fb0329..b7a846bd 100644 --- a/package.json +++ b/package.json @@ -4,9 +4,11 @@ "description": "Core Utils for Odoo Web Client", "main": "src/index.ts", "scripts": { - "prebuild": "tsc --lib es2017,dom --target esnext --outDir dist/core src/*", - "build": "rollup -c", - "postbuild": "uglifyjs dist/core.js -o dist/core.min.js --compress --mangle", + "build:js": "tsc --lib es2017,dom --target esnext --outDir dist/core src/*", + "build:bundle": "rollup -c", + "build": "npm run build:js && npm run build:bundle", + "minify": "uglifyjs dist/core.js -o dist/core.min.js --compress --mangle", + "dev": "npm-run-all --parallel \"build:* -- --watch\"", "test": "jest", "test:watch": "jest --watch", "example:web:build": "cpx \"examples/web/**/*.{html,js,css,ttf,woff,woff2}\" dist/examples/web && npm-run-all --parallel example:web:build:*",