8000 Update ReactSpa to latest versions of dependencies, and pin to exact … · aspnet/JavaScriptServices@c9d235d · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit c9d235d

Browse files
Update ReactSpa to latest versions of dependencies, and pin to exact versions. Simplify some instructions.
1 parent 48b923f commit c9d235d

File tree

3 files changed

+24
-25
10000 lines changed

3 files changed

+24
-25
lines changed

templates/ReactSpa/ClientApp/components/FetchData.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ export class FetchData extends React.Component<{}, FetchDataExampleState> {
2727
<h1>Weather forecast</h1>
2828
<p>This component demonstrates fetching data from the server.</p>
2929
{ contents }
30-
<p>For more sophisticated applications, consider an architecture such as Redux or Flux for managing state. You can generate an ASP.NET Core application with React and Redux using <code>dotnet new aspnet/spa/reactredux</code> instead of using this template.</p>
3130
</div>;
3231
}
3332

templates/ReactSpa/ClientApp/components/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class Home extends React.Component<{}, {}> {
2121
<h4>Going further</h4>
2222
<p>
2323
For larger applications, or for server-side prerendering (i.e., for <em>isomorphic</em> or <em>universal</em> applications), you should consider using a Flux/Redux-like architecture.
24-
You can generate an ASP.NET Core application with React and Redux using <code>dotnet new aspnet/spa/reactredux</code> instead of using this template.
24+
You can generate an ASP.NET Core application with React and Redux using <code>dotnet new reactredux</code> instead of using this template.
2525
</p>
2626
</div>;
2727
}

templates/ReactSpa/package.json

-23Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,30 @@
22
"name": "WebApplicationBasic",
33
"version": "0.0.0",
44
"devDependencies": {
5-
"@types/history": "^2.0.39",
6-
"@types/react": "^0.14.38",
7-
"@types/react-dom": "^0.14.17",
8-
"@types/react-router": "^2.0.38",
9-
"@types/webpack-env": "^1.13.0",
10-
"aspnet-webpack": "^1.0.27",
5+
"@types/history": "4.5.1",
6+
"@types/react": "15.0.24",
7+
"@types/react-dom": "15.5.0",
8+
"@types/react-router": "4.0.9",
9+
"@types/webpack-env": "1.13.0",
10+
"aspnet-webpack": "^1.0.29",
1111
"aspnet-webpack-react": "^2.0.0",
12-
"awesome-typescript-loader": "^3.0.0",
13-
"bootstrap": "^3.3.6",
14-
"css-loader": "^0.25.0",
15-
"event-source-polyfill": "^0.0.7",
16-
"extract-text-webpack-plugin": "^2.0.0-rc",
17-
"file-loader": "^0.9.0",
18-
"isomorphic-fetch": "^2.2.1",
19-
"jquery": "^2.2.1",
20-
"json-loader": "^0.5.4",
21-
"react": "~15.4.0",
22-
"react-dom": "~15.4.0",
12+
"awesome-typescript-loader": "3.1.3",
13+
"bootstrap": "3.3.7",
14+
"css-loader": "0.28.1",
15+
"event-source-polyfill": "0.0.9",
16+
"extract-text-webpack-plugin": "2.1.0",
17+
"file-loader": "0.11.1",
18+
"isomorphic-fetch": "2.2.1",
19+
"jquery": "3.2.1",
20+
"json-loader": "0.5.4",
21+
"react": "15.5.4",
22+
"react-dom": "15.5.4",
2323
"react-hot-loader": "3.0.0-beta.7",
24-
"react-router-dom": "^4.0.0",
25-
"style-loader": "^0.13.1",
26-
"typescript": "^2.2.1",
27-
"url-loader": "^0.5.7",
28-
"webpack": "^2.2.0",
29-
"webpack-hot-middleware": "^2.12.2"
24+
"react-router-dom": "4.1.1",
25+
"style-loader": "0.17.0",
26+
"typescript": "2.3.2",
27+
"url-loader": "0.5.8",
28+
"webpack": "2.5.1",
29+
"webpack-hot-middleware": "2.18.0"
3030
}
3131
}

0 commit comments

Comments
 (0)
0