Skip to content
Snippets Groups Projects
Commit 95673b01 authored by David Sehnal's avatar David Sehnal
Browse files

do not build browserTests in production build, added build-viewer task

- reduced the production build time by several minutes
  (it took 30+s for each "subproject" and webpack was building them linearly)
parent 01181368
No related branches found
No related tags found
No related merge requests found
...@@ -15,9 +15,11 @@ ...@@ -15,9 +15,11 @@
"lint-fix": "eslint ./**/*.{ts,tsx} --fix", "lint-fix": "eslint ./**/*.{ts,tsx} --fix",
"test": "npm run lint && jest", "test": "npm run lint && jest",
"build": "npm run build-tsc && npm run build-extra && npm run build-webpack", "build": "npm run build-tsc && npm run build-extra && npm run build-webpack",
"build-viewer": "npm run build-tsc && npm run build-extra && npm run build-webpack-viewer",
"build-tsc": "tsc --incremental && tsc --build src/servers --incremental", "build-tsc": "tsc --incremental && tsc --build src/servers --incremental",
"build-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/", "build-extra": "cpx \"src/**/*.{scss,html,ico}\" lib/",
"build-webpack": "webpack --mode production", "build-webpack": "webpack --mode production --config ./webpack.config.production.js",
"build-webpack-viewer": "webpack --mode production --config ./webpack.config.viewer.js",
"watch": "concurrently -c \"green,green,gray,gray\" --names \"tsc,srv,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-servers\" \"npm:watch-extra\" \"npm:watch-webpack\"", "watch": "concurrently -c \"green,green,gray,gray\" --names \"tsc,srv,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-servers\" \"npm:watch-extra\" \"npm:watch-webpack\"",
"watch-viewer": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer\"", "watch-viewer": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer\"",
"watch-viewer-debug": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer-debug\"", "watch-viewer-debug": "concurrently -c \"green,gray,gray\" --names \"tsc,ext,wpc\" --kill-others \"npm:watch-tsc\" \"npm:watch-extra\" \"npm:watch-webpack-viewer-debug\"",
......
const { createApp, createExample } = require('./webpack.config.common.js');
const apps = ['viewer'];
const examples = ['proteopedia-wrapper', 'basic-wrapper', 'lighting'];
module.exports = [
...apps.map(createApp),
...examples.map(createExample)
]
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment