# Aspire.Hosting.JavaScript

- Module: `Aspire.Hosting.JavaScript`
- Version: `13.3.0`
- Source: [GitHub](https://github.com/microsoft/aspire)
- Functions: `16`
- Types: `4`

## Types

- [JavaScriptAppResource](/reference/api/typescript/aspire.hosting.javascript/javascriptappresource.md) -- `handle` - 10 members
- [NextJsAppResource](/reference/api/typescript/aspire.hosting.javascript/nextjsappresource.md) -- `handle` - 1 members
- [NodeAppResource](/reference/api/typescript/aspire.hosting.javascript/nodeappresource.md) -- `handle` - 0 members
- [ViteAppResource](/reference/api/typescript/aspire.hosting.javascript/viteappresource.md) -- `handle` - 1 members

## Functions

- [addJavaScriptApp](/reference/api/typescript/aspire.hosting.javascript/addjavascriptapp.md) -- `method` -- Adds a JavaScript application resource
- [addNextJsApp](/reference/api/typescript/aspire.hosting.javascript/addnextjsapp.md) -- `method` -- Adds a Next.js application resource
- [addNodeApp](/reference/api/typescript/aspire.hosting.javascript/addnodeapp.md) -- `method` -- Adds a Node.js application resource
- [addViteApp](/reference/api/typescript/aspire.hosting.javascript/addviteapp.md) -- `method` -- Adds a Vite application resource
- [disableBuildValidation](/reference/api/typescript/aspire.hosting.javascript/disablebuildvalidation.md) -- `method` -- Disables deploy-time build validation checks for the Next.js application.
- [publishAsNodeServer](/reference/api/typescript/aspire.hosting.javascript/publishasnodeserver.md) -- `method` -- Publishes the JavaScript application as a standalone Node.js server that runs a built artifact directly.
- [publishAsNpmScript](/reference/api/typescript/aspire.hosting.javascript/publishasnpmscript.md) -- `method` -- Publishes the JavaScript application as a Node.js server that uses a package manager script at runtime.
- [publishAsStaticWebsite](/reference/api/typescript/aspire.hosting.javascript/publishasstaticwebsite.md) -- `method` -- Publishes the JavaScript application as a standalone static website using YARP.
- [withBrowserDebugger](/reference/api/typescript/aspire.hosting.javascript/withbrowserdebugger.md) -- `method` -- Configures a browser debugger for the JavaScript application
- [withBuildScript](/reference/api/typescript/aspire.hosting.javascript/withbuildscript.md) -- `method` -- Specifies an npm script to run before starting the application
- [withBun](/reference/api/typescript/aspire.hosting.javascript/withbun.md) -- `method` -- Configures Bun as the package manager
- [withNpm](/reference/api/typescript/aspire.hosting.javascript/withnpm.md) -- `method` -- Configures npm as the package manager
- [withPnpm](/reference/api/typescript/aspire.hosting.javascript/withpnpm.md) -- `method` -- Configures pnpm as the package manager
- [withRunScript](/reference/api/typescript/aspire.hosting.javascript/withrunscript.md) -- `method` -- Specifies an npm script to run during development
- [withViteConfig](/reference/api/typescript/aspire.hosting.javascript/withviteconfig.md) -- `method` -- Configures a custom Vite configuration file
- [withYarn](/reference/api/typescript/aspire.hosting.javascript/withyarn.md) -- `method` -- Configures yarn as the package manager
