Coder Social home page Coder Social logo

nx-shops's Introduction

NxCloud CI example repo

This repo is based on the Nx Examples repo but setup in a way to illustrate some of the benefits of using Nx and NxCloud together to setup CI.

The e2e targets are setup to serve the app statically from dist:

this is how the apps are served statically:

    "serve-static": {
      "executor": "@nrwl/web:file-server",
      "options": {
        "buildTarget": "cart:build"
      }
    },

This then results in this project graph:

The DTE solution can then be explained as such: https://youtu.be/NZF0ZJpgaJM?si=gLpTnTdygB1gx7wI&t=516

Here is an example DTE config that is applicable to most CI providers.

In the above yaml, if you remove the line that activate DTE:

# - run: npx nx-cloud start-ci-run --stop-agents-after="e2e"

it will go from finishing in 3 minutes, to finishing in 9 minutes. That is because we can now parallelise the tasks across machines. So it also illustrates the CI time savings we get from DTE.

You can also use the non-DTE CI config:

  • without NxCloud
  • with NxCloud

and you should notice a difference of 8-9 minutes down to 1-2 minutes because of caching. So it can also be used to explain the caching benefits.

nx-shops's People

Contributors

yonet avatar frozenpandaz avatar isaacplmann avatar brandonroberts avatar irgmedeiros avatar juristr avatar rarmatei avatar gozeon avatar nmcdnld avatar gerhardboer avatar vsavkin avatar seangwright avatar marcuzy avatar meeroslav avatar klaascuvelier avatar kirjs avatar mandarini avatar jaysoo avatar izifortune avatar agentender avatar angular-cli avatar

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.