From f591340411df91916966351c7eda4d59b6a4524a Mon Sep 17 00:00:00 2001 From: ziajka Date: Wed, 27 Mar 2019 08:35:59 +0100 Subject: [PATCH] Try to build production with sourcemaps --- .travis.yml | 45 +++++++++++++++++++++++++-------------------- angular.json | 4 ++-- tsconfig.json | 2 ++ 3 files changed, 29 insertions(+), 22 deletions(-) diff --git a/.travis.yml b/.travis.yml index d7ed4f75..909d706b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,26 +46,31 @@ after_success: after_script: # greenkeeper-lockfile support - - greenkeeper-lockfile-upload + # - greenkeeper-lockfile-upload + # publish on gns3.github.io - - yarn buildforgithub --base-href /${TRAVIS_BRANCH}/ - - export GIT_LAST_LOG="$(git log -1 --pretty=%B)" - - git clone https://${GITHUB_CREDENTIALS}@github.com/GNS3/gns3.github.io.git github-pages - - mkdir -p github-pages/${TRAVIS_BRANCH} - - rsync -r --delete dist/ github-pages/${TRAVIS_BRANCH} - - cd github-pages/${TRAVIS_BRANCH} - - git config user.email "developers@gns3.net" - - git config user.name "GNS3 Build" - - git add -A - - git commit -m "Deploy - $GIT_LAST_LOG" - - git push origin master - - cd $TRAVIS_BUILD_DIR + # - yarn buildforgithub --base-href /${TRAVIS_BRANCH}/ + # - export GIT_LAST_LOG="$(git log -1 --pretty=%B)" + # - git clone https://${GITHUB_CREDENTIALS}@github.com/GNS3/gns3.github.io.git github-pages + # - mkdir -p github-pages/${TRAVIS_BRANCH} + # - rsync -r --delete dist/ github-pages/${TRAVIS_BRANCH} + # - cd github-pages/${TRAVIS_BRANCH} + # - git config user.email "developers@gns3.net" + # - git config user.name "GNS3 Build" + # - git add -A + # - git commit -m "Deploy - $GIT_LAST_LOG" + # - git push origin master + # - cd $TRAVIS_BUILD_DIR + # publish - - yarn buildforelectron - - | - python3 -m pip install -r scripts/requirements.txt - python3 scripts/build.py download - python3 scripts/build.py build_exe -b dist/exe.gns3server -s - python3 scripts/build.py validate -b dist - - yarn electron-builder --linux --x64 --publish always + # - yarn buildforelectron + # - | + # python3 -m pip install -r scripts/requirements.txt + # python3 scripts/build.py download + # python3 scripts/build.py build_exe -b dist/exe.gns3server -s + # python3 scripts/build.py validate -b dist + # - yarn electron-builder --linux --x64 --publish always + +# build production zip for gns3server + - yarn ng build --configuration=production --base-href /static/web-ui/ diff --git a/angular.json b/angular.json index 08e6c2f8..7975846b 100644 --- a/angular.json +++ b/angular.json @@ -32,7 +32,7 @@ "production": { "optimization": true, "outputHashing": "all", - "sourceMap": false, + "sourceMap": true, "extractCss": true, "namedChunks": false, "aot": true, @@ -49,7 +49,7 @@ "electronProd": { "optimization": true, "outputHashing": "all", - "sourceMap": false, + "sourceMap": true, "extractCss": true, "namedChunks": false, "aot": true, diff --git a/tsconfig.json b/tsconfig.json index 90f316b6..22e6e864 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,6 +4,8 @@ "baseUrl": "./", "outDir": "./dist/out-tsc", "sourceMap": true, + "inlineSources": true, + "sourceRoot": "/", "declaration": false, "module": "es2015", "moduleResolution": "node",