From 2fcfd73500348767e161e4cb65c93a2c0e2cf96b Mon Sep 17 00:00:00 2001 From: Jerome Simeon Date: Tue, 4 Aug 2020 10:13:55 -0400 Subject: [PATCH] chore(build) Enable source map on all packages for easier development Signed-off-by: Jerome Simeon --- .travis.yml | 2 +- packages/ui-components/package.json | 3 ++- packages/ui-concerto/package.json | 3 ++- packages/ui-contract-editor/package.json | 3 ++- packages/ui-markdown-editor/package.json | 3 ++- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/.travis.yml b/.travis.yml index 23c491c2..72c0b918 100644 --- a/.travis.yml +++ b/.travis.yml @@ -13,7 +13,7 @@ install: | npm install -g lerna@^3.15.0 lerna bootstrap 2>&1 date -script: lerna run build +script: lerna run build:prod deploy: provider: script script: 'if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then bash ./.travis/deploy.sh; fi' diff --git a/packages/ui-components/package.json b/packages/ui-components/package.json index 5aabb674..ff1b2cb9 100644 --- a/packages/ui-components/package.json +++ b/packages/ui-components/package.json @@ -15,7 +15,8 @@ "build:app": "react-scripts build", "test": "react-scripts test --env=jest-environment-jsdom-sixteen", "eject": "react-scripts eject", - "build": "npx rollup -c", + "build": "npx rollup -c --sourcemap", + "build:prod": "npx rollup -c", "fix:js": "npx eslint --fix ./src/", "lint:js": "npx eslint ./src/", "lint:style": "npx stylelint ./src/", diff --git a/packages/ui-concerto/package.json b/packages/ui-concerto/package.json index 4987b317..a0a02ba5 100644 --- a/packages/ui-concerto/package.json +++ b/packages/ui-concerto/package.json @@ -20,7 +20,8 @@ "build:app": "react-scripts build", "test": "react-scripts test --env=jest-environment-jsdom-sixteen", "eject": "react-scripts eject", - "build": "npx rollup -c", + "build": "npx rollup -c --sourcemap", + "build:prod": "npx rollup -c", "fix:js": "npx eslint --fix ./src/", "lint:js": "npx eslint ./src/", "lint:style": "npx stylelint ./src/", diff --git a/packages/ui-contract-editor/package.json b/packages/ui-contract-editor/package.json index 156b8a9e..c84d08bd 100644 --- a/packages/ui-contract-editor/package.json +++ b/packages/ui-contract-editor/package.json @@ -19,7 +19,8 @@ "build:app": "react-scripts build", "test": "react-scripts test --env=jest-environment-jsdom-sixteen", "eject": "react-scripts eject", - "build": "npx rollup -c", + "build": "npx rollup -c --sourcemap", + "build:prod": "npx rollup -c", "fix:js": "npx eslint --fix ./src/", "lint:js": "npx eslint ./src/", "lint:style": "npx stylelint ./src/", diff --git a/packages/ui-markdown-editor/package.json b/packages/ui-markdown-editor/package.json index 395b6cf2..b203b75d 100644 --- a/packages/ui-markdown-editor/package.json +++ b/packages/ui-markdown-editor/package.json @@ -17,7 +17,8 @@ "build:app": "react-scripts build", "test": "react-scripts test --env=jest-environment-jsdom-sixteen", "eject": "react-scripts eject", - "build": "npx rollup -c", + "build": "npx rollup -c --sourcemap", + "build:prod": "npx rollup -c", "fix:js": "npx eslint --fix ./src/", "lint:js": "npx eslint ./src/", "lint:style": "npx stylelint ./src/",