Commit Graph

350 Commits

Author SHA1 Message Date
SteveSandersonMS 57265509f7 Rebuild entrypoint-socket.js 2016-09-27 10:47:14 +01:00
SteveSandersonMS 7e88903bcc Fix Node event chaining in VirtualConnectionServer to work with latest NPM libraries. Fixes #331. 2016-09-27 10:28:50 +01:00
SteveSandersonMS e8594287db In aspnet-webpack, make sure that webpack-externals-plugin doesn't treat non-JS files as external. Fixes #332. 2016-09-27 09:59:51 +01:00
SteveSandersonMS b55e444a55 Also print CWD in node 'require' error reports 2016-09-21 11:43:12 +01:00
SteveSandersonMS f9807c546d In SpaServices NuGet package, pass through error stack when NPM modules fail to load 2016-09-21 11:11:24 +01:00
SteveSandersonMS 232e908ce8 Pass through error stack when NPM module loading failed in aspnet-webpack and aspnet-prerendering to make debugging easier 2016-09-21 11:08:04 +01:00
SteveSandersonMS 80343e9f17 In aspnet-webpack, replace ExternalsPlugin with webpack-node-externals because of #132 2016-09-20 15:41:06 +01:00
SteveSandersonMS f7ef36bc74 Remove redundant section of docs 2016-09-20 11:00:48 +01:00
SteveSandersonMS 50be444440 Update docs to describe using LESS with Angular 2 component styling 2016-09-20 10:57:17 +01:00
SteveSandersonMS 2ee0078cfd Fix HttpNodeInstanceEntryPoint to match latest NPM modules 2016-09-15 14:15:03 +01:00
SteveSandersonMS d76b013a56 WebpackDevMiddleware now uses ProjectPath option consistently. Fixes #307 2016-09-14 12:04:15 +01:00
SteveSandersonMS 7c316d5c74 Update to ASP.NET Core 1.0.1. Fixes #309 2016-09-14 11:36:53 +01:00
SteveSandersonMS 80f740a9ed Revert "Webpack HMR EventSource requests are now proxied (rather than redirected) to the local HMR server" because of 'ECANCELED'/'EPIPE broken pipe' issues. Awaiting feedback from Kestrel team. 2016-09-13 12:51:23 +01:00
SteveSandersonMS f071590fce Webpack HMR EventSource requests are now proxied (rather than redirected) to the local HMR server. Fixes #271. 2016-09-09 16:31:15 +01:00
SteveSandersonMS bc2de2ad59 In aspnet-webpack HMR, don't rely on assumption that entry point is called 'main'. Fixes #289. 2016-09-09 13:21:31 +01:00
SteveSandersonMS 605090e909 Publish updated version of aspnet-webpack as 1.0.10 2016-09-09 11:37:57 +01:00
Erik Medina 67f7e7450f Adding tsd to dev dependencies in aspnet-webpack.
Adding tsd to aspnet-webpack's dev dependencies to allow the package's npm prepublish script to succeed without a global tsd install.
2016-09-09 11:34:43 +01:00
Erik Medina da662c55fa Make webpack dev dependency a peer dependency in aspnet-webpack.
Moving webpack from a dev dependency to a peer dependency makes the dependency soft and allows the webpack-dev-middleware to pickup the version of webpack being used by the consumer of the package.
2016-09-09 11:34:43 +01:00
SteveSandersonMS 1be9102aea Prerendering server-side code can now issue redirections. Fixes #280 2016-09-09 11:09:44 +01:00
SteveSandersonMS c2c45b04df In preparation for supporting redirections, aspnet-prerendering now passes through all boot func resolution props to .NET code 2016-09-09 11:06:36 +01:00
SteveSandersonMS 1f2168949d Publish updated aspnet-prerendering NPM package 2016-09-08 12:56:46 +01:00
SteveSandersonMS 4ca1669db1 Prerendering imposes its own (overridable) timeout with descriptive error 2016-09-08 12:56:05 +01:00
SteveSandersonMS 411100478a Fix double-encoding typo 2016-09-08 12:14:45 +01:00
SteveSandersonMS 041d173f56 All NodeServices invocations now have a default timeout, plus a descriptive exception if that happens 2016-09-08 12:08:42 +01:00
SteveSandersonMS 2799861296 Support cancellation of NodeServices invocations 2016-09-08 10:56:50 +01:00
SteveSandersonMS f358d8e2b2 In HttpNodeInstance, correctly report response serialisation errors back to .NET (previously, it just timed out) 2016-09-07 17:59:13 +01:00
SteveSandersonMS 465d0c8d15 Design review: Explicitly disable TypeNameHandling in all Json.NET usage 2016-09-07 17:12:01 +01:00
SteveSandersonMS 03dcae2407 Simplify docs 2016-09-01 17:52:26 +01:00
SteveSandersonMS f0d954b2a6 Design review: Change AddNodeServices to take an Action<NodeServicesOptions> like other aspects of MVC DI config 2016-09-01 17:46:59 +01:00
SteveSandersonMS f04fb8c421 Design review: Always instantiate via DI 2016-09-01 15:51:53 +01:00
SteveSandersonMS 4effd630a4 Fix typos 2016-09-01 12:42:12 +01:00
SteveSandersonMS 7f5810a622 Add docs about configuring Webpack to build LESS/SASS 2016-09-01 12:36:47 +01:00
SteveSandersonMS eed4d8c211 Child Node processes poll and exit when parent has exited. Fixes #270 2016-08-19 16:38:39 -07:00
SteveSandersonMS a4e3360e65 Bump aspnet-webpack-react package version 2016-08-18 14:07:11 -07:00
Geir Sagberg 0ad0483935 Update aspnet-webpack-react to React 15
^15.0.0 is enough

Update ReactGrid example to work with newest Griddle version

Several fixes to stop build.sh from failing
2016-08-18 13:50:22 -07:00
SteveSandersonMS 6d8767d141 Tweak WebpackDevMiddleware.cs to avoid unnecessary Task.Yield() 2016-08-18 13:49:20 -07:00
SteveSandersonMS 098159998d Add ability to configure environment variables for Node instances, plus auto-populate NODE_ENV based on IHostingEnvironment when possible. Fixes #230 2016-08-16 16:26:07 -07:00
SteveSandersonMS 56cb898bde Rename PrimeCache to PrimeCacheAsync (keeping older name as obsolete overload). Fixes #246. 2016-08-16 13:57:37 -07:00
SteveSandersonMS c53bd8f8f6 Prerenderer now passes original (unescaped) URL to Node - fixes #250 2016-08-16 11:44:55 -07:00
SteveSandersonMS 0d0d25b032 In WebpackDevMiddleware, allow configuration of ProjectPath (implements #262) 2016-08-15 14:40:38 -07:00
Aaron Powell 2a6465b27a FIxing path separator to address #247 (#248)
* Correcting path separator to ;

* Using the proper API from System.IO to get path separator
2016-08-08 10:54:22 +10:00
SteveSandersonMS 3403eb7548 Make aspnet-webpack compatible with older versions of the NodeServices package 2016-07-27 13:29:18 +01:00
SteveSandersonMS de960d80aa Allow explicit configuration of port number for webpack dev middleware server. Fixes #223. 2016-07-27 11:13:09 +01:00
SteveSandersonMS 14337e32ab WebpackDevMiddleware now preserves client's view of hostname when doing 302 to /__webpack_hmr 2016-07-27 11:03:04 +01:00
SteveSandersonMS c892f7da35 Support debugging when on IPv6 network (Node's "Debugger listening" message is phrased differently there) 2016-07-27 09:50:43 +01:00
SteveSandersonMS f2f67fe880 Support new config options to launch the Node process with a debug listener. This is compatible with node-inspector. 2016-07-26 18:33:27 +01:00
SteveSandersonMS 79872c1bde Amend aspnet-webpack for better node-inspector support 2016-07-26 16:38:46 +01:00
SteveSandersonMS fae0a886af Transfer multiline log messages from Node to .NET without treating each line as a separate log entry 2016-07-18 16:34:36 +01:00
SteveSandersonMS f4efcacd40 Switch to native .NET logging APIs 2016-07-18 15:56:45 +01:00
Paul Knopf 27ffa72e0d Adding support for capturing the output of a node instance for custom logging implementations. 2016-07-18 15:07:09 +01:00
SteveSandersonMS a14d9ba2df Change onBeforeStartExternalProcess to a virtual method, so as to avoid expanding the set of constructor params in all hosting models 2016-07-18 14:39:36 +01:00
thunder7553 7119815d04 Added OnBeforeStartExternalProcess callback which to NodeServicesOptions (and OutOfProcessNodeInstance, SocketNodeInstance and HttpNodeInstance) to configure environment of the node.exe process to be started, and the path to the node executable itself. Fixes #20 2016-07-18 14:24:07 +01:00
SteveSandersonMS 057efb43c8 aspnet-webpack module now preserves 'path' and 'publicPath' config settings when invoking Webpack compiler. Fixes #176. 2016-07-18 13:55:26 +01:00
SteveSandersonMS fc897475f3 Update domain-task package to version 2.0.1 (major bump because breaking change) and modify 'fetch' behaviour so it no longer tries to register the task with domain-task automatically. See code comments for reasons. 2016-07-11 12:16:29 +01:00
SteveSandersonMS 8b5136825c Update remaining doc references to Invoke<T> and InvokeExport<T> 2016-07-07 14:59:59 +01:00
SteveSandersonMS b0bc80b4d6 Update docs around custom node instances to match latest API changes 2016-07-07 14:58:25 +01:00
SteveSandersonMS 3bc35aea21 Simplify docs around receiving an INodeServices instance from DI 2016-07-07 14:50:24 +01:00
SteveSandersonMS 920f1c8bf3 Replace references to Invoke and InvokeExport with InvokeAsync and InvokeExportAsync throughout docs 2016-07-07 14:47:36 +01:00
SteveSandersonMS 4b38519001 Change all links in docs to point to new main branch ('dev') 2016-07-07 14:43:14 +01:00
SteveSandersonMS eec370e938 Move file-watching logic into .NET to avoid Node's fs.watch issues on Windows (#128) 2016-07-07 14:25:54 +01:00
SteveSandersonMS ce127f0d70 Implement connection draining feature 2016-07-07 13:18:48 +01:00
SteveSandersonMS be13f0b7bf Centralise the child-process-terminating logic in NodeServicesImpl - don't also do it in OutOfProcessNodeInstance. This works towards connection draining. 2016-07-07 12:52:15 +01:00
SteveSandersonMS 26e8bd823c Instead of the Node process exiting instantly on file change, send a signal to .NET that it should restart. This is working towards the connection-draining feature. 2016-07-07 12:01:28 +01:00
SteveSandersonMS a19e37f3c0 Move logic for restarting Node child process into NodeServicesImpl. Tidy up lots. 2016-07-07 11:35:25 +01:00
SteveSandersonMS 4fb3b18868 Create new top-level DefaultNodeInstance concept that will soon hold the "connection draining" logic 2016-07-06 18:23:25 +01:00
SteveSandersonMS 4ee09cbe82 Make Http hosting model able to report exceptions that happened while locating the function to invoke 2016-07-06 15:47:06 +01:00
SteveSandersonMS 00b598176c Minor style tweaks 2016-07-06 10:44:21 +01:00
Tobias Rundbom f8981185d9 Makes it possible to use absolute paths for publicPath in weback.config (#161)
- Parses publicPath as an URL and returns the path of that URL to be able to cope with absolute URLs
2016-07-06 10:28:11 +01:00
Steve Sanderson 9215ee3d7d Update README.md 2016-07-06 10:28:11 +01:00
SteveSandersonMS 260a0d6bcb Migrate entrypoint-http.js to TypeScript. Source is now HttpNodeInstanceEntryPoint.ts. 2016-07-01 11:49:22 +01:00
SteveSandersonMS 393e156b47 Better reporting of Webpack compilation errors to fix #159 2016-07-01 10:30:59 +01:00
SteveSandersonMS b82e70e192 Fix for prerendering hanging if webpack compilation fails 2016-06-30 16:57:14 +01:00
Steve Sanderson 44bd5f195e Update readme regarding default transport 2016-06-28 18:06:13 +01:00
SteveSandersonMS eebf509846 Update 'src' project dependencies for .NET Core 1.0 RTM 2016-06-28 10:58:05 +01:00
SteveSandersonMS 9fabfd5c40 Fix typo 2016-06-21 15:48:07 +01:00
SteveSandersonMS ea0a32a15b Implement and document asp-prerender-data 2016-06-21 15:46:52 +01:00
SteveSandersonMS 1a53411046 Fix some whitespace issues 2016-06-21 15:44:38 +01:00
SteveSandersonMS a881ca5b96 Correctly set NODE_PATH when starting OutOfProcessNodeInstance 2016-06-14 10:43:03 +01:00
SteveSandersonMS 3fc19ea77b Add missing lock to ensure thread-safe mutations of _activeInnerStreams in VirtualConnectionClient.cs 2016-06-14 10:16:40 +01:00
SteveSandersonMS dab67c817c Copy edit SpaServices README.md 2016-06-13 16:01:53 +01:00
SteveSandersonMS b4fd30dee7 Add links and syntax highlighting to SpaServices README.md 2016-06-13 14:57:13 +01:00
SteveSandersonMS 266ea8815b Add SpaServices README.md 2016-06-13 14:52:37 +01:00
SteveSandersonMS 44c8b9985b Add language type annotations and fix links in NodeServices readme 2016-06-08 16:59:02 +01:00
SteveSandersonMS f0ec89bbd9 Add NodeServices docs 2016-06-08 16:53:21 +01:00
SteveSandersonMS b19d0dff92 Support streamed response from SocketNodeInstance 2016-06-07 17:16:01 +01:00
SteveSandersonMS 967edd2b2a Support streamed response from HttpNodeInstance 2016-06-07 16:49:40 +01:00
SteveSandersonMS c8859abeb7 Fix #110 - enable asynchronous mode for Stream transport on Windows 2016-06-07 11:36:38 +01:00
SteveSandersonMS 311733b113 Fix references to socket APIs, and target the lowest net standard versions possible 2016-06-01 18:04:40 +01:00
Rasmus Melchior Jacobsen 931ba118e1 net451 support and changed netcoreapp1.0->netstandard1.5 for libraries 2016-06-01 17:10:11 +01:00
SteveSandersonMS f2e89fd3bc Remove obsolete InputOutputStream transport, now that the Stream transport is implemented 2016-06-01 17:03:05 +01:00
pauldotknopf 50ee405656 Workaround for a bug in .NET Core. This issue is referenced by #92. It is has been reported to the dotnet corefx team here: dotnet/corefx#8809 The issue won't be resolved in 1.0.0, so @stephentoub recommended that we reuse the HttpClient. 2016-06-01 16:49:40 +01:00
SteveSandersonMS 341cd4f1cb Implement SocketNodeInstance 2016-06-01 16:16:10 +01:00
SteveSandersonMS 32ebaecdd8 Define DefaultNodeHostingModel in one common place so it can be changed easily 2016-06-01 16:15:34 +01:00
SteveSandersonMS cb289fd387 Further stylistic tweaks 2016-05-31 22:29:27 +01:00
Andrei Tserakhau 5bb92d02dd refactor: prime cache formatter beautify 2016-05-25 16:11:53 +03:00
Andrei Tserakhau b141419b14 refactor(angular-services): beutify base uri creation
bug: remove redundant closing brackets
2016-05-25 16:09:20 +03:00
Andrei Tserakhau 95cba7f5dd refactor: apply default vs transform to xproj
refactor(spa-services): clean code

refactor(node-services): clean code, extract classes nto separate files

refactor(angular-services): prime cache cleanup
2016-05-25 16:08:49 +03:00
SteveSandersonMS 60e4e3a3f3 Rename NodeServices.sln to JavaScriptServices.sln 2016-05-18 23:12:34 +01:00
SteveSandersonMS 70c084b344 Simplify project.json/global.json files where possible 2016-05-18 13:59:25 +01:00
SteveSandersonMS 22deb2ad28 Add LatencyTest project 2016-05-18 11:51:47 +01:00
SteveSandersonMS 352108be35 Update all projects for final .NET Core RC2 2016-05-17 11:56:06 +01:00
SteveSandersonMS d1964f087d Change from netstandardapp1.5 to netcoreapp1.0 everywhere 2016-05-04 15:26:14 -07:00
SteveSandersonMS 13beb7cf27 Add local pack script. Remove dnx451 framework references. May add back later if needed. 2016-05-02 13:13:49 -07:00
SteveSandersonMS 25c728f885 Change all Microsoft.AspNet.* namespaces and references to Microsoft.AspNetCore.* 2016-05-02 13:13:49 -07:00
SteveSandersonMS 4a0e4bdf1a Rename Microsoft.AspNet.* packages folders to Microsoft.AspNetCore.* 2016-05-02 13:13:49 -07:00
SteveSandersonMS d19c0d7c16 Fix frameworks/dependencies in src projects 2016-05-02 13:13:47 -07:00
SteveSandersonMS 1cb4dd920c Partial migration to ASP.NET Core 1.0 RC2 (done the core packages, plus the ES2015/Webpack samples, and the Angular2Spa template). Only verified it builds/runs on .NET Core - not checked on net451. 2016-05-02 13:13:47 -07:00
SteveSandersonMS 992060b908 Further attempt to make the build pass 2016-05-02 12:47:58 -07:00
SteveSandersonMS 323711fc24 Hopefully make the build work on Windows 2016-05-02 12:28:04 -07:00
SteveSandersonMS 7d193108df Build using local 'tsc' tool instead of hoping the globally-installed one exists and is the right version 2016-05-02 12:18:52 -07:00
SteveSandersonMS f798f308f3 Update redux-typed to match latest third-party .d.ts files for React and Redux 2016-05-02 11:17:26 -07:00
Steve Sanderson e315bd2c28 Merge pull request #57 from laskoviymishka/unshift-issue
Fix issue: entry.main.unshift is not a function Closes #56
2016-05-02 10:54:54 -07:00
Andrei Tserakhau 754e32b604 Fix Webpack default entry issue: webpackConfig.entry.main.unshift is not a function
Closes #56
2016-04-29 14:05:50 +03:00
Steve Sanderson cf9d109876 Merge pull request #50 from tzachov/patch-2
Use "nameof" instead of string
2016-04-28 11:14:46 +01:00
SteveSandersonMS 7b53e4aa55 Update Angular 2 Music Store sample to latest Angular2/angular-universal and make HTTP requests work during server-side prerendering 2016-04-21 11:59:01 +01:00
SteveSandersonMS a0c47252ca Update to latest Angular2/angular-universal and use relative URLs in template's HTTP request 2016-04-21 11:36:27 +01:00
tzachov 5a18287009 Use "nameof" instead of string 2016-04-18 00:04:09 +03:00
SteveSandersonMS fa2b56fafd Remove deprecated Angular/React-specific prerendering code, since both are now handled by 'asp-pretender-module' in SpaServices 2016-04-08 14:01:15 +01:00
SteveSandersonMS 532da3de9f Update to latest Angular 2 and bump version to 0.0.5 2016-04-08 13:30:09 +01:00
SteveSandersonMS dcfdbc8f04 Simplify aspnet-webpack - remove 'express' dependency and use 'connect' directly instead 2016-03-31 15:53:11 +01:00
SteveSandersonMS f1fa20afeb Fix UseWebpackDevMiddleware with no options 2016-03-24 11:39:38 +00:00
SteveSandersonMS b28296f801 Fix aspnet-webpack-react, and simplify ReactSpa template to use it 2016-03-11 01:08:41 +00:00
SteveSandersonMS 5e7e75cc0b More fixes for aspnet-webpack 2016-03-11 01:01:22 +00:00
SteveSandersonMS d5fbe4b3b6 Fix aspnet-webpack package 2016-03-11 00:34:57 +00:00
SteveSandersonMS 590574a8a9 Reduce SpaServices's built-in JS to simply invoke exports from the corresponding new NPM packages 2016-03-10 23:36:22 +00:00
SteveSandersonMS ec9544c644 Add aspnet-prerendering NPM package 2016-03-10 23:22:29 +00:00
SteveSandersonMS e5a6a05c97 Add aspnet-webpack-react NPM package 2016-03-10 23:21:16 +00:00
SteveSandersonMS 2747aad66f Add aspnet-webpack NPM package 2016-03-10 23:20:24 +00:00
SteveSandersonMS b95cd1bc85 In domain-task, ensure completion callback always fires asynchronously 2016-03-07 15:27:56 +00:00
SteveSandersonMS 8a5dbf7a05 Re-add server-side prerendering to Angular2 template 2016-03-01 15:41:07 +00:00
SteveSandersonMS 444475ef16 Make prerenderer code not rely on a specific process.cwd() 2016-03-01 15:28:06 +00:00
SteveSandersonMS 8a5e58aa2c Make WebpackDevMiddleware able to pass the request through to other middleware for files not served by Webpack 2016-03-01 12:48:33 +00:00
SteveSandersonMS 74cac774f8 Normalise trailing whitespace and line endings everywhere 2016-03-01 01:10:43 +00:00
SteveSandersonMS bfc993af50 Support loading prerenderer boot module via Webpack config; use this in Angular 2 template 2016-03-01 00:04:51 +00:00
SteveSandersonMS 47ba251923 Add server-side prerendering for Angular 2 template 2016-02-29 19:29:04 +00:00
Pranav K 9dab5ae5ff Change project.json to let CI manage build quality 2016-02-12 15:07:54 -08:00
Pranav K 9b245c032b Use build versions in project.json 2016-02-12 10:37:08 -08:00
SteveSandersonMS ac23afc723 Fix some build issues 2016-02-10 13:30:16 -08:00
SteveSandersonMS 71cb3abc13 Update ReactGrid sample to use newer server-side rendering APIs 2016-02-10 12:13:24 -08:00
SteveSandersonMS 558aa31542 Fix compiler warning 2016-02-10 09:25:39 -08:00
SteveSandersonMS 2e9a43d1dc WebpackDevMiddleware should run in a separate Node instance that doesn't restart when files change (otherwise there's no point in running it at all) 2016-02-09 17:26:04 -08:00
SteveSandersonMS 6c903f33ae Move React server-side rendering into more general SpaServices package 2016-02-09 16:42:42 -08:00
SteveSandersonMS b8224d2bef Move TypedRedux out into a new NPM package called 'redux-typed' 2016-02-09 11:17:41 -08:00
SteveSandersonMS 047d14a6cd Merge domain-task repo into this one 2016-02-09 10:39:48 -08:00
SteveSandersonMS 5811c98230 Beginning React+Redux "Music Store" sample 2016-02-05 23:28:13 +00:00
SteveSandersonMS 8ef9ab31a7 Enable Webpack dev middleware and React hot module replacement 2016-02-02 15:26:15 +00:00
Charalampos Karypidis 225dfdd168 #31 Ugrade to Babel 6 and update the ReactGrid sample 2016-02-02 15:11:22 +00:00
SteveSandersonMS 73e218de4e Add strong naming and fix DB path on IIS Express 2016-02-02 15:10:15 +00:00
SteveSandersonMS 44fd9dd6ab Publish update angular2-aspnet NPM module so it takes dependency on correct version of Angular 2016-01-26 15:21:50 +00:00
SteveSandersonMS 47c956cc4d Move packages under top-level 'src' folder 2016-01-26 15:06:36 +00:00