diff --git a/.gitignore b/.gitignore
index 8c619b6002..6e02278d4c 100644
--- a/.gitignore
+++ b/.gitignore
@@ -35,7 +35,7 @@ node_modules/
*.nuget.props
*.nuget.targets
autobahnreports/
-signalr-client.js
site.min.css
.idea/
.vscode/
+signalr-client/
diff --git a/package.json b/package.json
index 3c8882edd8..c1d2027be3 100644
--- a/package.json
+++ b/package.json
@@ -6,19 +6,27 @@
"directories": {
"test": "test"
},
- "scripts": {},
+ "scripts": {
+ "gulp": "gulp"
+ },
"repository": {
"type": "git",
"url": "git+https://github.com/aspnet/SignalR.git"
},
"author": "Microsoft",
- "license": "MIT",
+ "license": "Apache-2.0",
"bugs": {
"url": "https://github.com/aspnet/SignalR/issues"
},
"homepage": "https://github.com/aspnet/SignalR#readme",
"devDependencies": {
+ "browserify": "^13.1.1",
+ "del": "^2.2.2",
"gulp": "^3.9.1",
- "jasmine": "^2.5.2"
+ "gulp-typescript": "^3.1.3",
+ "jasmine": "^2.5.2",
+ "typescript": "^2.0.10",
+ "vinyl-source-stream": "^1.1.0",
+ "yargs": "^6.4.0"
}
}
diff --git a/samples/ChatSample/Views/Home/Index.cshtml b/samples/ChatSample/Views/Home/Index.cshtml
index bac461c7c3..02716de06a 100644
--- a/samples/ChatSample/Views/Home/Index.cshtml
+++ b/samples/ChatSample/Views/Home/Index.cshtml
@@ -2,34 +2,6 @@
ViewData["Title"] = "Chat";
}
-
-
-
\ No newline at end of file
+
+
+
\ No newline at end of file
diff --git a/samples/ChatSample/project.json b/samples/ChatSample/project.json
index f7c4e6a098..5c219731cb 100644
--- a/samples/ChatSample/project.json
+++ b/samples/ChatSample/project.json
@@ -91,7 +91,9 @@
},
"scripts": {
- "precompile": [ "dotnet bundle", "tsc --project ../../src/Microsoft.AspNetCore.SignalR.Client.TS/ --out wwwroot/js/signalr-client.js" ],
+ "precompile": [ "dotnet bundle",
+ "npm install",
+ "npm run gulp -- --gulpfile %project:Directory%/../../src/Microsoft.AspNetCore.SignalR.Client.TS/gulpfile.js bundle-client --bundleOutDir %project:Directory%/wwwroot/lib/signalr-client/" ],
"prepublish": [ "bower install" ],
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
}
diff --git a/samples/ChatSample/wwwroot/_references.js b/samples/ChatSample/wwwroot/_references.js
index 843092d673..b6fe9d6264 100644
--- a/samples/ChatSample/wwwroot/_references.js
+++ b/samples/ChatSample/wwwroot/_references.js
@@ -1,5 +1,4 @@
///
-///
///
///
///
diff --git a/samples/SocketsSample/project.json b/samples/SocketsSample/project.json
index fa7c932ad7..285b15fb63 100644
--- a/samples/SocketsSample/project.json
+++ b/samples/SocketsSample/project.json
@@ -44,7 +44,9 @@
},
"scripts": {
- "precompile": [ "tsc --project ../../src/Microsoft.AspNetCore.SignalR.Client.TS/ --out wwwroot/js/signalr-client.js" ],
+ "precompile": [
+ "npm install",
+ "npm run gulp -- --gulpfile %project:Directory%/../../src/Microsoft.AspNetCore.SignalR.Client.TS/gulpfile.js bundle-client --bundleOutDir %project:Directory%/wwwroot/lib/signalr-client/" ],
"postpublish": [ "dotnet publish-iis --publish-folder %publish:OutputPath% --framework %publish:FullTargetFramework%" ]
}
}
diff --git a/samples/SocketsSample/wwwroot/.gitignore b/samples/SocketsSample/wwwroot/.gitignore
deleted file mode 100644
index 0b2fbe69c1..0000000000
--- a/samples/SocketsSample/wwwroot/.gitignore
+++ /dev/null
@@ -1 +0,0 @@
-js/
\ No newline at end of file
diff --git a/samples/SocketsSample/wwwroot/hubs.html b/samples/SocketsSample/wwwroot/hubs.html
index 44d97bc93b..68a0cbb13d 100644
--- a/samples/SocketsSample/wwwroot/hubs.html
+++ b/samples/SocketsSample/wwwroot/hubs.html
@@ -3,116 +3,6 @@
-
-
@@ -160,4 +50,113 @@
-