Commit Graph

124 Commits

Author SHA1 Message Date
SteveSandersonMS
5d14f11b1b Update all the project templates to .NET Core 1.1.0 2016-11-29 16:36:05 +00:00
SteveSandersonMS
9cfea61f1e Make Angular2Spa able to do prerendering without node_modules at runtime 2016-11-28 17:30:04 +00:00
SteveSandersonMS
157b74a0cd Update Angular2Spa and ReactReduxSpa to use aspnet-prerendering 2.0.0 2016-11-28 16:56:02 +00:00
SteveSandersonMS
dd97ae7316 Specify publicPath in all vendor build configs (otherwise, file-loader won't generate correct URLs to any static resources from the vendor bundle) 2016-11-28 16:55:53 +00:00
SteveSandersonMS
ea2cfc277c Fix Angular2Spa "template parse errors" in production builds (was caused by html-loader's HTML minification feature) 2016-11-28 16:09:08 +00:00
SteveSandersonMS
fadb2b3127 Remove README.md files from templates, as much of the content is irrelevant or outdated. Fixes #463. 2016-11-25 10:19:55 +00:00
SteveSandersonMS
8401bbf33a Add global.json to templates specifying SDK preview 2 (otherwise, preview 3 breaks it). Will need to exclude/modify this file when emitting csproj projects. 2016-11-25 09:56:53 +00:00
Scott Addie
3a4936dbf7 Add '-loader' suffix to all Webpack loader references 2016-11-21 10:14:37 +00:00
SteveSandersonMS
a734a31745 Add Karma/Jasmine/Chai test starting point to Angular2Spa 2016-11-09 13:10:43 -08:00
SteveSandersonMS
11c45321aa In Angular2Spa, use angular2-template loader as a step towards AoT compilation. Implements #356 2016-11-07 13:45:29 -08:00
SteveSandersonMS
f9145a43f6 In Angular2Spa server-side rendering, only render the <app> element, not an entire <html> doc 2016-10-31 11:46:00 +00:00
SteveSandersonMS
54f222e88f Update templates for Yarn compatibility 2016-10-28 17:36:55 +01:00
SteveSandersonMS
a427d5f0f0 Fix source map generation in projects that also use ExtractTextPlugin 2016-10-21 13:53:34 +01:00
SteveSandersonMS
0615578d9a Switch from inline to external source maps. This avoids several problems with inline source maps in VS 2015 (at least as of Update 3). 2016-10-21 10:10:20 +01:00
Mike Mazmanyan
3760d3724d removing usage of deprecated httpPlatformHandler
httpPlatformHandler is changed with aspNetCore handler in IIS
2016-10-17 11:51:01 +01:00
SteveSandersonMS
418255e148 Exclude node_modules from .NET compilation. Fixes #378. 2016-10-17 11:51:01 +01:00
Mark Pieszak
f6d7321243 Update remaining templates to TypeScript 2 / @types / etc. 2016-10-17 11:50:31 +01:00
SteveSandersonMS
f26068b62b Temporarily disable use of SourceMapDevToolPlugin wrapper as it might be possible to remove it shortly 2016-10-11 19:04:17 +01:00
SteveSandersonMS
0289f73a96 Fix the deployment issue caused by incorrectly referencing 'webpack-externals-plugin' when it should be 'webpack-node-externals' 2016-10-11 16:58:38 +01:00
SteveSandersonMS
6a9b7accce Update Dockerfiles to use Node 4.x (was using 0.x). Fixes #373 2016-10-11 16:50:03 +01:00
SteveSandersonMS
30a694450c Make source maps compatible with VS/VSCode debugging (fix file paths, and strip out the "charset=utf-8;" segments from inline sourceMappingURLs) 2016-10-11 16:11:12 +01:00
SteveSandersonMS
3568476cca aspnet-webpack auto-loads 'event-source-polyfill' on client when HMR is enabled. This requires 'event-source-polyfill' to be included in the client-side bundle, so it's also now added to all the templates' vendor bundles. Fixes #365. 2016-10-10 12:24:07 +01:00
Korneel
a0ebab1f28 Update Dockerfile
The app doesn't run in Docker on base image `microsoft/dotnet:latest` because Microsoft.NETCore.App 1.0.1 isn't installed. Only 1.0.0 is installed. The app runs fine on base image `microsoft/dotnet:1.0.0-preview2-onbuild`.
2016-10-05 12:18:58 +01:00
SteveSandersonMS
6126c4d480 In Angular2Spa, move tsconfig.json back to root. Fixes #346. 2016-10-04 11:11:58 +01:00
SteveSandersonMS
53889c0fc1 Template updates as per Eilon's comments 2016-09-29 12:05:29 +01:00
SteveSandersonMS
09b4135217 Further workarounds for https://github.com/dotnet/cli/issues/1396 2016-09-28 13:12:59 +01:00
SteveSandersonMS
9bd9444485 In Angular2Spa, put all NPM dependencies under "dependencies", not "devDependencies" (otherwise, if someone tries to publish while NODE_ENV=production, the build will fail) 2016-09-28 12:46:30 +01:00
SteveSandersonMS
e87aa1f088 Change Angular2Spa template to build server (prerendering) bundle explicitly. This simplifies deployment, fixes various compatibility issues (like #306) and makes debugging much easier for developers using the template. 2016-09-28 10:55:45 +01:00
SteveSandersonMS
30dfe5e8b5 In Angular2Spa webpack config, use "--env.prod" arg to trigger prod builds instead of ASPNETCORE_ENVIRONMENT env var. This is to guarantee production mode when publishing. 2016-09-28 10:04:16 +01:00
SteveSandersonMS
f79936c104 In Angular2Spa webpack config, allow html/css files from node_modules to be loaded via Webpack. 2016-09-27 10:03:54 +01:00
SteveSandersonMS
5214a553a7 In Angular2Spa, server-side rendering now reports all errors 2016-09-21 09:29:13 +01:00
SteveSandersonMS
2ba5a0ac93 As per #325, reference module.hot directly instead of via a local var, because Webpack does static analysis that looks for this 2016-09-20 16:51:50 +01:00
SteveSandersonMS
925f47fece In Angular2Spa, use css-loader so you can reference external images from CSS files, etc. 2016-09-20 16:13:25 +01:00
SteveSandersonMS
19684f2b7d In Angular2Spa template, use per-component scoped styles. Fixes common config issues like #234. 2016-09-20 10:06:23 +01:00
SteveSandersonMS
cd18489f00 Fix HMR again following previous change 2016-09-19 17:40:17 +01:00
SteveSandersonMS
41f1f6fe82 Delay Angular 2 bootstrapping until DOMContentLoaded 2016-09-19 16:56:50 +01:00
SteveSandersonMS
ca99a2304c Remove style-loader from Angular2Spa vendor bundle as it's not used at all. Is used by other templates though. 2016-09-19 16:53:20 +01:00
SteveSandersonMS
83cfb59c2d Add comment about UniversalModule 2016-09-19 16:10:57 +01:00
SteveSandersonMS
494c7b585c Fix trailing whitespace 2016-09-19 16:05:22 +01:00
SteveSandersonMS
49a8536679 Update angular2-universal dependencies (cherry-pick 62dd13b3b) 2016-09-19 15:51:18 +01:00
SteveSandersonMS
358ee2261e Make indentation consistent 2016-09-19 15:43:58 +01:00
SteveSandersonMS
07a9c1685f Remove unnecessary NPM dependencies 2016-09-19 14:15:13 +01:00
SteveSandersonMS
4ea7eb195e Simplify webpack config. Eliminate dev/prod override files. 2016-09-19 14:13:20 +01:00
SteveSandersonMS
85dfdd9b50 Move tsconfig into ClientApp dir, since it's not needed at root 2016-09-19 14:04:00 +01:00
SteveSandersonMS
a91b6a6b5c Make HMR work again 2016-09-19 13:50:26 +01:00
SteveSandersonMS
a1c1bdb1e6 Simplify imports in boot-client.ts 2016-09-19 13:18:44 +01:00
SteveSandersonMS
297b4dbd92 Move more modules to vendor bundle. Remove explicit reflect-metadata reference (no longer needed). 2016-09-19 13:09:12 +01:00
SteveSandersonMS
8f550c5706 Simplify Angular 2 template where possible 2016-09-19 12:44:25 +01:00
SteveSandersonMS
243a9b4ef6 Add @types/node to avoid intellisense errors for "require" statements 2016-09-19 11:05:44 +01:00
SteveSandersonMS
1e08548aa0 Remove now-redundant 'typings' dir and custom-typings.d.ts 2016-09-19 10:33:02 +01:00