Skip to content

Commit b63bfd6

Browse files
authored
JSTS update for React, Angular, Vue (#8457)
* F1 keyword edits * tweak * tweak * tweak * unit testing updates * freshness checks * freshness checks * Updated freshness * Visualizer updates * minor edits * link fix * Angular project * Angular updates * Vue.js project * edits * edits * fixed blocking issues
1 parent ff6bdae commit b63bfd6

18 files changed

+206
-6
lines changed

docs/javascript/TOC.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,12 @@
1414
href: ../ide/quickstart-nodejs.md?toc=%252fvisualstudio%252fjavascript%252ftoc.json
1515
- name: Create a Vue.js project
1616
href: quickstart-vuejs-with-nodejs.md
17+
- name: Create a React app
18+
href: tutorial-create-react-app.md
19+
- name: Create an Angular app
20+
href: tutorial-create-angular-app.md
21+
- name: Create a Vue.js app
22+
href: tutorial-create-vue-app.md
1723
- name: Tutorials
1824
items:
1925
- name: Create a Node.js app with Express

docs/javascript/create-application-with-vuejs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dev_langs:
1212
- JavaScript
1313
ms.workload:
1414
- "nodejs"
15+
monikerRange: '<= vs-2019'
1516
---
1617

1718
# Create a Vue.js application using Node.js Tools for Visual Studio
Loading
Loading
Loading
Loading
Loading
Loading

docs/javascript/quickstart-vuejs-with-nodejs.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ dev_langs:
1212
- JavaScript
1313
ms.workload:
1414
- "nodejs"
15+
monikerRange: '<= vs-2019'
1516
---
1617
# Quickstart: Use Visual Studio to create your first Vue.js app
1718

docs/javascript/tutorial-asp-net-core-with-angular.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ Make sure to have the following installed:
3636

3737
1. In the New Project Dialog, select **Create a new project**.
3838

39-
:::image type="content" source="media/vs-2022/asp-net-core-create-new-project.png" alt-text="Create a new project":::
39+
:::image type="content" source="media/vs-2022/create-new-project.png" alt-text="Create a new project":::
4040

4141
1. Search for Angular in the search bar at the top and then select **Standalone Angular Template**.
4242

43-
:::image type="content" source="media/vs-2022/asp-net-core-with-angular-choose-template.png" alt-text="Choose a template":::
43+
:::image type="content" source="media/vs-2022/angular-choose-template.png" alt-text="Choose a template":::
4444

4545
1. Give your project and solution a name. When you get to the **Additional information** window, be sure to check the **Add integration for Empty ASP.NET Web API Project** option. This option adds files to your Angular template so that it can be hooked up later with the ASP.NET Core project.
4646

docs/javascript/tutorial-asp-net-core-with-react.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Currently, Visual Studio includes ASP.NET Core Single Page Application (SPA) tem
2222
Starting in Visual Studio 2022 Preview 2, you can use the method described in this article to create ASP.NET Core Single Page Applications that:
2323

2424
- Put the client app in a separate project, outside from the ASP.NET Core project
25-
- Create the client project based on the framework cli installed on your computer
25+
- Create the client project based on the framework CLI installed on your computer
2626

2727
## Prerequisites
2828

@@ -35,11 +35,11 @@ Make sure to have the following installed:
3535

3636
1. In the New Project Dialog, select **Create a new project**.
3737

38-
:::image type="content" source="media/vs-2022/asp-net-core-create-new-project.png" alt-text="Create a new project":::
38+
:::image type="content" source="media/vs-2022/create-new-project.png" alt-text="Create a new project":::
3939

4040
1. Search for React in the search bar at the top and then select **Standalone JavaScript React Template**. (The standalone TypeScript React Template is not currently supported in this tutorial.)
4141

42-
:::image type="content" source="media/vs-2022/asp-net-core-with-react-choose-template.png" alt-text="Choose a template":::
42+
:::image type="content" source="media/vs-2022/react-choose-template.png" alt-text="Choose a template":::
4343

4444
1. Give your project and solution a name. When you get to the **Additional information** window, be sure to check the **Add integration for Empty ASP.NET Web API Project** option. This option adds files to your React template so that it can be hooked up later with the ASP.NET Core project.
4545

docs/javascript/tutorial-aspnet-with-typescript.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,16 @@ dev_langs:
1111
- JavaScript
1212
ms.workload:
1313
- "nodejs"
14-
monikerRange: '<= vs-2019'
1514
---
1615
# Tutorial: Create an ASP.NET Core app with TypeScript in Visual Studio
1716

1817
In this tutorial for Visual Studio development ASP.NET Core and TypeScript, you create a simple web application, add some TypeScript code, and then run the app.
1918

19+
::: moniker range=">=vs-2022"
20+
21+
Starting in Visual Studio 2022, see [Create an ASP.NET Core app with Angular in Visual Studio](../javascript/tutorial-asp-net-core-with-angular.md) to create an ASP.NET Core app with Angular and TypeScript.
22+
::: moniker-end
23+
2024
::: moniker range="vs-2017"
2125

2226
If you haven't already installed Visual Studio, go to the [Visual Studio downloads](https://visualstudio.microsoft.com/vs/older-downloads/?utm_medium=microsoft&utm_source=docs.microsoft.com&utm_campaign=vs+2017+download) page to install it for free.
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
title: "Create an Angular app"
3+
description: In this tutorial, learn how to create a simple Angular application in Visual Studio.
4+
ms.date: 07/30/2021
5+
ms.custom: vs-acquisition
6+
ms.topic: tutorial
7+
ms.devlang: javascript
8+
author: mikejo5000
9+
ms.author: mikejo
10+
manager: jmartens
11+
dev_langs:
12+
- JavaScript
13+
ms.workload:
14+
- "nodejs"
15+
monikerRange: '>= vs-2022'
16+
---
17+
# Create an Angular app
18+
19+
In this 5-10 minute introduction to the Visual Studio integrated development environment (IDE), you create and run a simple Angular frontend web application.
20+
21+
## Prerequisites
22+
23+
Make sure to have the following installed:
24+
25+
- npm ([https://www.npmjs.com/](https://www.npmjs.com/))
26+
- Angular CLI ([https://angular.io/cli](https://angular.io/cli))
27+
This can be the version of your choice
28+
29+
## Create your app
30+
31+
1. In the New Project Dialog, select **Create a new project**.
32+
33+
:::image type="content" source="media/vs-2022/create-new-project.png" alt-text="Create a new project":::
34+
35+
1. Search for Angular in the search bar at the top and then select **Standalone Angular Template**.
36+
37+
:::image type="content" source="media/vs-2022/angular-choose-template.png" alt-text="Choose a template":::
38+
39+
1. Give your project and solution a name.
40+
41+
When you get to the Additional information window be sure NOT to check the **Add integration for Empty ASP.NET Web API Project** option. This option adds files to your Angular template so that it can be hooked up with the ASP.NET Core project, if an ASP.NET Core project is added.
42+
43+
:::image type="content" source="media/vs-2022/angular-additional-info.png" alt-text="Additional information":::
44+
45+
## Set the project properties
46+
47+
1. In Solution Explorer, right-click the Angular project, select **Properties**, and then go the **Debugging** section.
48+
49+
1. Change the Debugger to launch to the **launch.json** option.
50+
51+
:::image type="content" source="media/vs-2022/angular-choose-debugger.png" alt-text="Choose the debugger (launch.json)":::
52+
53+
## Build Your Project
54+
55+
Choose **Build** > **Build Solution** to build the project.
56+
57+
Note, the initial build may take a while, as the Angular CLI will run the npm install command.
58+
59+
## Start Your Project
60+
61+
Press **F5** or select the **Start** button at the top of the window. You see a command prompt appear:
62+
63+
- The Angular CLI running the ng start command
64+
65+
Next, you should see the base Angular app appear!
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---
2+
title: "Create a React app"
3+
description: In this tutorial, learn how to create a simple React application in Visual Studio.
4+
ms.date: 07/30/2021
5+
ms.custom: vs-acquisition
6+
ms.topic: tutorial
7+
ms.devlang: javascript
8+
author: mikejo5000
9+
ms.author: mikejo
10+
manager: jmartens
11+
dev_langs:
12+
- JavaScript
13+
ms.workload:
14+
- "nodejs"
15+
monikerRange: '>= vs-2022'
16+
---
17+
# Create a React app
18+
19+
In this 5-10 minute introduction to the Visual Studio integrated development environment (IDE), you create and run a simple React frontend web application.
20+
21+
## Prerequisites
22+
23+
Make sure to have the following installed:
24+
25+
- npm ([https://www.npmjs.com/](https://www.npmjs.com/))
26+
- npx ([https://www.npmjs.com/package/npx](https://www.npmjs.com/package/npx))
27+
28+
## Create your app
29+
30+
1. In the New Project Dialog, select **Create a new project**.
31+
32+
:::image type="content" source="media/vs-2022/create-new-project.png" alt-text="Create a new project":::
33+
34+
1. Search for React in the search bar at the top and then select **Standalone JavaScript React Template** or **Standalone TypeScript React Template**, based on your preference.
35+
36+
:::image type="content" source="media/vs-2022/react-choose-template.png" alt-text="Choose a template":::
37+
38+
1. Give your project and solution a name.
39+
40+
If you previously selected Standalone JavaScript React Template, when you get to the Additional information window be sure NOT to check the **Add integration for Empty ASP.NET Web API Project** option. This option adds files to your React template so that it can be hooked up with the ASP.NET Core project, if an ASP.NET Core project is added.
41+
42+
:::image type="content" source="media/vs-2022/react-additional-info.png" alt-text="Additional information":::
43+
44+
Please note that creation of the React project takes a moment because the create-react-app command that runs at this time also runs the npm install command
45+
46+
## Set the project properties
47+
48+
1. In Solution Explorer, right-click the React project, select **Properties**, and then go the **Debugging** section.
49+
50+
1. Change the Debugger to launch to the **launch.json** option.
51+
52+
:::image type="content" source="media/vs-2022/react-choose-debugger.png" alt-text="Choose the debugger (launch.json)":::
53+
54+
## Build Your Project
55+
56+
Choose **Build** > **Build Solution** to build the project.
57+
58+
## Start Your Project
59+
60+
Press **F5** or select the **Start** button at the top of the window. You see a command prompt appear:
61+
62+
- npm running the react-scripts start command
63+
64+
Next, you should see the base React app appear!
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
---
2+
title: "Create a Vue.js app"
3+
description: In this tutorial, learn how to create a simple Vue.js application in Visual Studio.
4+
ms.date: 07/30/2021
5+
ms.custom: vs-acquisition
6+
ms.topic: tutorial
7+
ms.devlang: javascript
8+
author: mikejo5000
9+
ms.author: mikejo
10+
manager: jmartens
11+
dev_langs:
12+
- JavaScript
13+
ms.workload:
14+
- "nodejs"
15+
monikerRange: '>= vs-2022'
16+
---
17+
# Create a Vue.js app
18+
19+
In this 5-10 minute introduction to the Visual Studio integrated development environment (IDE), you create and run a simple Vue.js frontend web application.
20+
21+
## Prerequisites
22+
23+
Make sure to have the following installed:
24+
25+
- npm ([https://www.npmjs.com/](https://www.npmjs.com/))
26+
- Vue.js ([Installation | Vue.js (vuejs.org)](https://v3.vuejs.org/guide/installation.html#npm))
27+
- Vue.js CLI ([(Installation | Vue.js (vuejs.org)](https://v3.vuejs.org/guide/installation.html#cli))
28+
29+
## Create your app
30+
31+
1. In the New Project Dialog, select **Create a new project**.
32+
33+
:::image type="content" source="media/vs-2022/create-new-project.png" alt-text="Create a new project":::
34+
35+
1. Search for Vue in the search bar at the top and then select **Standalone JavaScript Vue Template** or **Standalone TypeScript Vue Template**, based on your preference.
36+
37+
:::image type="content" source="media/vs-2022/vue-choose-template.png" alt-text="Choose a template":::
38+
39+
1. Give your project and solution a name.
40+
41+
## Set the project properties
42+
43+
1. In Solution Explorer, right-click the Vue.js project, select **Properties**, and then go the **Debugging** section.
44+
45+
1. Change the Debugger to launch to the **launch.json** option.
46+
47+
:::image type="content" source="media/vs-2022/vue-choose-debugger.png" alt-text="Choose the debugger (launch.json)":::
48+
49+
## Build Your Project
50+
51+
Choose **Build** > **Build Solution** to build the project.
52+
53+
## Start Your Project
54+
55+
Press **F5** or select the **Start** button at the top of the window. You see a command prompt appear:
56+
57+
- npm running the vue-cli-service start command
58+
59+
Next, you should see the base Vue.js app appear!

0 commit comments

Comments
 (0)