Giter VIP home page Giter VIP logo

Comments (7)

Fish1 avatar Fish1 commented on August 14, 2024

Some sort of integrity error with @typescript-eslint/typescript-estree also happens with @typescript-eslint/visitor-keys

from webapps-deploy.

NoCopy avatar NoCopy commented on August 14, 2024

@Fish1 Take a look at npm/npm#16861

from webapps-deploy.

Fish1 avatar Fish1 commented on August 14, 2024

@Fish1 Take a look at npm/npm#16861

Will probably be able to take a deeper look on Monday. But if the solution is to upgrade npm, wouldnt that be in the control of this azure deployment script?

from webapps-deploy.

NoCopy avatar NoCopy commented on August 14, 2024

@Fish1 Oh, interesting. Looks like the Oryx Build is reusing the NPM cache. That looks like a bug in the Oryx build not this.

You can get around this by doing the build yourself before deploy

    steps:
      - uses: actions/checkout@master
      - name: Use Node.js ${{ vars.NODE_VERSION }}
        uses: actions/setup-node@v3
        with:
          node-version: ${{ vars.NODE_VERSION }}
      - name: npm install, build, and test
        run: |
          npm prune --production
          npm install
          npm run build:${{ github.ref_name }} --if-present
      - name: 'Deploy to Azure WebApp'
        uses: azure/webapps-deploy@v2
        with:
          app-name: ${{ secrets.AZURE_WEBAPP_NAME }}
          publish-profile: ${{ secrets.AZURE_WEBAPP_PUBLISH_PROFILE }}
          package: ${{ vars.PACKAGE_PATH }}

replace npm run build:${{ github.ref_name }} --if-present with whatever your build script is (I use the repo branch name) and replace ${{ vars.PACKAGE_PATH }} with whatever your ultimate ./dist folder is.

from webapps-deploy.

Fish1 avatar Fish1 commented on August 14, 2024

So the issue with doing this is that we now have to upload about 138M of data to the deployment script. Now I compile typescript, then move the node_modules into the dist folder.

image

from webapps-deploy.

NoCopy avatar NoCopy commented on August 14, 2024

So the issue with doing this is that we now have to upload about 138M of data to the deployment script. Now I compile typescript, then move the node_modules into the dist folder.

@Fish1 As I pointed out in a different reply you should never be deploying node_modules to production. You can easily fix this by setting up a webpack build. Your deployment should drop from 138M to about 2M. There are 100s of articles on webpack with TS but this is the first one I found https://blog.logrocket.com/using-webpack-typescript/

Realistically, all you need is webpack in your package json and a webpack config file for TS.

from webapps-deploy.

Fish1 avatar Fish1 commented on August 14, 2024

Thanks for the help! Everything is working now. I just had to manually go into the server and delete all the files, because my disk was full. I suppose this issue should be closed, as it's more of an Onyx issue?

from webapps-deploy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.