Code Monkey home page Code Monkey logo

nx-dotnet-core's Introduction

Nx Plugin for .NET Core

npm semantic-release CI

Nx Plugin to generate, run, build and test .NET Core projects inside your Nx workspace.

๐Ÿ”Ž Powerful, Extensible Dev Tools

Prerequisite

If you have not already:

Getting Started

Install Plugin

npm install @bbaia/nx-dotnet-core --save-dev

Generate a project

Run nx g @bbaia/nx-dotnet-core:new to generate a project using the dotnet new command.

You will be prompted for entering:

  • The type of project (application or library)
  • The .NET Core template to use (Use dotnet new --list --type=Project to list all installed project templates)
  • The name of your project

You can skip the interactive prompt or customize all non-prompted options from the command line:

nx g @bbaia/nx-dotnet-core:new <app|lib> <.NET Core template> <your-project-name> --optionName optionValue
Option Value Description
tags string Add tags to the project (used for linting).
directory string A directory where the project is placed.
unitTestTemplate string The .NET Core template to use for unit tests (ex: 'mstest', 'nunit', 'xunit').

Use Nx Console to spend less time looking up command line arguments!

Exemple to generate an ASP.NET Core Web API project with an NUnit test project :

nx g @bbaia/nx-dotnet-core:new app webapi api --unitTestTemplate nunit

Manage a project

  • Run nx restore api to restore the dependencies and tools of the project.
  • Run nx serve api to serve the app. The app will automatically reload if you change any of the source files.
  • Run nx build api to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
  • Run nx test api to execute the unit tests via nunit. Use the --watch flag to watch files for changes and rerun tests.

You will find more information on the generated README.md file.

Updating @bbaia/nx-dotnet-core

This plugin supports nx migrate

nx migrate @bbaia/nx-dotnet-core

Further help

Visit the Nx Documentation to learn more.

โ˜ Nx Cloud

Computation Memoization in the Cloud

Nx Cloud pairs with Nx in order to enable you to build and test code more rapidly, by up to 10 times. Even teams that are new to Nx can connect to Nx Cloud and start saving time instantly.

Teams using Nx gain the advantage of building full-stack applications with their preferred framework alongside Nxโ€™s advanced code generation and project dependency graph, plus a unified experience for both frontend and backend developers.

Visit Nx Cloud to learn more.

nx-dotnet-core's People

Contributors

bbaia avatar semantic-release-bot avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

elgammalqa

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.