Skip to content

Commit

Permalink
Updated deployment scripts to use minimal build without source maps (#…
Browse files Browse the repository at this point in the history
…271)

* Changed build script to use mimimal (no source map) deployment

* Added TODOs based on comments
  • Loading branch information
nielsdejong authored Dec 16, 2022
1 parent d91f753 commit 6395948
Show file tree
Hide file tree
Showing 8 changed files with 325 additions and 277 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/develop-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- run: PRODUCTION=true && yarn run build
- run: yarn run build-minimal
- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/master-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
# node-version: ${{ matrix.node-version }}
# - run: rm -rf docs
# - run: yarn install
# - run: yarn run build
# - run: yarn run build-minimal
# - name: Set AWS credentials
# uses: aws-actions/configure-aws-credentials@v1
# with:
Expand Down Expand Up @@ -93,8 +93,8 @@ jobs:
# with:
# node-version: ${{ matrix.node-version }}
# - run: rm -rf docs
# - run: yarn install
# - run: yarn run build
# - run: yarn install-minimal
# - run: yarn run build-minimal
# - run: curl ${{ secrets.INDEX_HTML_DEPLOYMENT_URL }} > dist/index.html
# - run: npm pack
# - run: rm -rf target
Expand Down Expand Up @@ -129,7 +129,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: cd gallery && yarn install
- run: cd gallery && CI=false yarn run build
- run: cd gallery && yarn run build
- name: Set AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COPY ./package.json /usr/local/src/neodash/package.json

RUN yarn install
COPY ./ /usr/local/src/neodash
RUN PRODUCTION=true && yarn run build
RUN yarn run build-minimal

# production stage
FROM nginx:alpine AS neodash
Expand Down
29 changes: 17 additions & 12 deletions cypress/fixtures/cypher_queries.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6395948

Please sign in to comment.