Added NightAlert project for travel kit
This commit is contained in:
2
ThirdParty/SocketIoClientDotNet/grunt/.gitignore
vendored
Normal file
2
ThirdParty/SocketIoClientDotNet/grunt/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
node_modules
|
||||
test.xml
|
||||
16
ThirdParty/SocketIoClientDotNet/grunt/.jshintrc
vendored
Normal file
16
ThirdParty/SocketIoClientDotNet/grunt/.jshintrc
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
{
|
||||
"node": true,
|
||||
"devel": true,
|
||||
"indent": 2,
|
||||
"maxerr": 50,
|
||||
"newcap": true,
|
||||
"nomen": true,
|
||||
"plusplus": false,
|
||||
"regexp": true,
|
||||
"white": false,
|
||||
"curly": true,
|
||||
"eqnull": true,
|
||||
"eqeqeq": true,
|
||||
"undef": true
|
||||
|
||||
}
|
||||
80
ThirdParty/SocketIoClientDotNet/grunt/Gruntfile.js
vendored
Normal file
80
ThirdParty/SocketIoClientDotNet/grunt/Gruntfile.js
vendored
Normal file
@@ -0,0 +1,80 @@
|
||||
|
||||
module.exports = function (grunt) {
|
||||
var
|
||||
node_os = require('os'),
|
||||
config = require('./config.json'),
|
||||
util = require('util'),
|
||||
os = node_os.platform() === 'win32' ? 'win' : 'linux',
|
||||
nuget_builds = [
|
||||
{ "Name": "SocketIoClientDotNet.net35", "NuGetDir": "net35", "SourceDir": "net35", copyOnly: true },
|
||||
{ "Name": "SocketIoClientDotNet.net40", "NuGetDir": "net40", "SourceDir": "net40", copyOnly: true },
|
||||
{ "Name": "SocketIoClientDotNet.net45", "NuGetDir": "net45", "SourceDir": "net45", copyOnly: true },
|
||||
{ "Name": "SocketIoClientDotNet.netstandard1.3", "NuGetDir": "netstandard1.3", "SourceDir": "netstandard1.3", "SourceFileName": "SocketIoClientDotNet.netstandard1.3.dll", copyOnly: true },
|
||||
];
|
||||
|
||||
grunt.log.writeln(util.inspect(config));
|
||||
grunt.log.writeln( 'os = "%s"', os );
|
||||
|
||||
grunt.loadTasks('./tasks');
|
||||
|
||||
grunt.initConfig({
|
||||
os: os,
|
||||
config: config,
|
||||
//msbuild_configuration: 'Debug',
|
||||
msbuild_configuration: 'Release',
|
||||
nuget_builds: nuget_builds,
|
||||
release_path: './../Releases/<%= config.version %>/',
|
||||
working_path: './../Working/',
|
||||
server_path: '../TestServer/',
|
||||
shell: {
|
||||
exec: {
|
||||
options: {
|
||||
stdout: true,
|
||||
stderr: true
|
||||
}
|
||||
}
|
||||
},
|
||||
jshint: {
|
||||
options: {
|
||||
jshintrc: true,
|
||||
},
|
||||
target: ['Gruntfile.js', '<%= server_path %>server.js', 'tasks/**/*.js']
|
||||
},
|
||||
clean: {
|
||||
release: ['<%= release_path %>/*'],
|
||||
working: ['<%= working_path %>/*'],
|
||||
options: { force: true }
|
||||
},
|
||||
copy: {
|
||||
release: {
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: './../SocketIoClientDotNet/bin/Release',
|
||||
src: '*',
|
||||
dest: '<%= release_path %>/net45'
|
||||
}
|
||||
]
|
||||
},
|
||||
release_mono: {
|
||||
files: [
|
||||
{
|
||||
expand: true,
|
||||
cwd: './../SocketIoClientDotNet_Mono/bin/Release',
|
||||
src: '*',
|
||||
dest: '<%= release_path %>/mono'
|
||||
}
|
||||
]
|
||||
},
|
||||
}
|
||||
});
|
||||
|
||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||
grunt.loadNpmTasks('grunt-contrib-clean');
|
||||
grunt.loadNpmTasks('grunt-shell');
|
||||
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||||
grunt.registerTask('default', ['jshint', 'installNpm', 'nuget', 'buildClient', 'buildTest', 'startServer', 'testClient']);
|
||||
grunt.registerTask('test', ['jshint', 'buildClient', 'buildTest', 'testClient']);
|
||||
grunt.registerTask('makeNuget', ['jshint','clean:working','createNugetPackage']);
|
||||
grunt.registerTask('makeComponent', ['jshint','clean:working','createNugetPackage','createXamarinComponent']);
|
||||
};
|
||||
20
ThirdParty/SocketIoClientDotNet/grunt/config.json
vendored
Normal file
20
ThirdParty/SocketIoClientDotNet/grunt/config.json
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
{
|
||||
"version":"1.0.5",
|
||||
"server":{
|
||||
"port":80,
|
||||
"ssl_port":443,
|
||||
"hostname":"127.0.0.1"
|
||||
},
|
||||
"win":{
|
||||
"powershell":"C:/WINDOWS/System32/WindowsPowerShell/v1.0/powershell.exe",
|
||||
"msbuild":"C:/Windows/Microsoft.NET/Framework/v4.0.30319/msbuild.exe",
|
||||
"xunit_path":"C:/Development/quobject.visualstudio.com/EngineIoClientDotNet/Src/EngineIoClientDotNet.net45/packages/xunit.runner.console.2.0.0/tools",
|
||||
"nuget":"C:/ProgramData/chocolatey/bin/NuGet.exe",
|
||||
"xamarin_component":"xamarin-component.exe"
|
||||
},
|
||||
"linux":{
|
||||
"msbuild":"xbuild",
|
||||
"xunit_path":"/home/apollo/vendors/xunit",
|
||||
"xamarin_component":"xamarin-component"
|
||||
}
|
||||
}
|
||||
25
ThirdParty/SocketIoClientDotNet/grunt/package.json
vendored
Normal file
25
ThirdParty/SocketIoClientDotNet/grunt/package.json
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
{
|
||||
"name": "SocketIoClientDotNet",
|
||||
"version": "0.10.0",
|
||||
"author": "Matthias Ludwig",
|
||||
"description": "Socket.IO Client Library for .Net",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": ""
|
||||
},
|
||||
"readme": "This is the Socket.IO Client Library for C#, which is ported from the [JavaScript client](https://github.com/LearnBoost/engine.io-client).",
|
||||
"devDependencies": {
|
||||
"grunt": "^1.0.1",
|
||||
"grunt-shell": "^2.1.0",
|
||||
"grunt-contrib-jshint": "^1.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"string": "^3.3.3",
|
||||
"string-formatter": "^0.2.5",
|
||||
"grunt-contrib-clean": "^1.0.0",
|
||||
"grunt-contrib-copy": "^1.0.0",
|
||||
"rimraf": "^2.6.1",
|
||||
"express": "^4.15.2",
|
||||
"utf8": "^2.1.2"
|
||||
}
|
||||
}
|
||||
71
ThirdParty/SocketIoClientDotNet/grunt/tasks/build-client.js
vendored
Normal file
71
ThirdParty/SocketIoClientDotNet/grunt/tasks/build-client.js
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
module.exports = function (grunt) {
|
||||
|
||||
grunt.registerTask('buildClient',
|
||||
'build cs modules', function () {
|
||||
var
|
||||
fs = require('fs'),
|
||||
S = require('string'),
|
||||
string = require('string-formatter'),
|
||||
os = grunt.config('os'),
|
||||
config = grunt.config('config'),
|
||||
configuration = grunt.config('msbuild_configuration'),
|
||||
output_path_base = 'bin\\'+ configuration +'\\',
|
||||
nuget_builds = grunt.config('nuget_builds'),
|
||||
tasks = [],
|
||||
clean_format = os === 'win' ? '{0} start-process ' +
|
||||
'-NoNewWindow ' +
|
||||
//'-WindowStyle Normal ' + //-WindowStyle (Hidden | Normal) | -NoNewWindow
|
||||
'-FilePath {1} ' +
|
||||
'-ArgumentList \' {2} /t:clean;Rebuild /p:Configuration={3} /p:OutputPath={4} \' ' :
|
||||
'{0} {1} /t:Rebuild /p:Configuration={2} ',
|
||||
//build_format = os === 'win' ? '{0} start-process ' +
|
||||
// '-NoNewWindow ' +
|
||||
// //'-WindowStyle Normal ' + //-WindowStyle (Hidden | Normal) | -NoNewWindow
|
||||
// '-FilePath {1} ' +
|
||||
// '-ArgumentList \' {2} /p:Configuration={3} \' ' :
|
||||
// '{0} {1} /p:Configuration={2}',
|
||||
i;
|
||||
|
||||
function addBuildWithTitle(title, dir, copyOnly) {
|
||||
var
|
||||
dir_path = string.format('{0}/../../Src/{1}/', __dirname, title),
|
||||
csproj = string.format('{0}{1}.csproj', dir_path, title),
|
||||
output_path = output_path_base + dir +'\\',
|
||||
clean = os === 'win' ? string.format(clean_format, config.win.powershell, config.win.msbuild, csproj, configuration, output_path) :
|
||||
string.format(clean_format, config.linux.msbuild, csproj, configuration),
|
||||
//build = os === 'win' ? string.format(build_format, config.win.powershell, config.win.msbuild, csproj, configuration ):
|
||||
// string.format(build_format, config.linux.msbuild, csproj, configuration),
|
||||
template_file_content = fs.readFileSync('./templates/AssemblyInfo.cs');
|
||||
|
||||
//template_file_content = S(template_file_content).replaceAll('@TITLE@', title).s;
|
||||
template_file_content = S(template_file_content).replaceAll('@VERSION@', config.version).s;
|
||||
//grunt.log.writeln('template_file_content = "%s"', template_file_content);
|
||||
fs.writeFileSync(string.format('{0}Properties/AssemblyInfo.cs', dir_path), template_file_content);
|
||||
if (!copyOnly) {
|
||||
tasks.push(clean);
|
||||
//tasks.push(build);
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < nuget_builds.length; i++) {
|
||||
if (nuget_builds[i].Name !== 'SocketIoClientDotNet.netstandard1.3') {
|
||||
addBuildWithTitle(nuget_builds[i].Name, nuget_builds[i].NuGetDir, nuget_builds[i].copyOnly);
|
||||
}
|
||||
}
|
||||
|
||||
grunt.log.writeln('tasks = %s', JSON.stringify(tasks));
|
||||
grunt.config('shell.exec.command', tasks.join('&&'));
|
||||
grunt.task.run('shell');
|
||||
|
||||
if (configuration === 'Release') {
|
||||
grunt.task.run('clean:release');
|
||||
if (os === 'win') {
|
||||
grunt.task.run('copy:release');
|
||||
} else {
|
||||
grunt.task.run('copy:release_mono');
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
56
ThirdParty/SocketIoClientDotNet/grunt/tasks/build-test.js
vendored
Normal file
56
ThirdParty/SocketIoClientDotNet/grunt/tasks/build-test.js
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
module.exports = function (grunt) {
|
||||
|
||||
grunt.registerTask('buildTest',
|
||||
'test modules', function () {
|
||||
var
|
||||
fs = require('fs'),
|
||||
S = require('string'),
|
||||
string = require('string-formatter'),
|
||||
os = grunt.config('os'),
|
||||
config = grunt.config('config'),
|
||||
configuration = grunt.config('msbuild_configuration'),
|
||||
tasks = [],
|
||||
clean_format = os === 'win' ? '{0} start-process ' +
|
||||
'-NoNewWindow ' +
|
||||
//'-WindowStyle Normal ' + //-WindowStyle (Hidden | Normal) | -NoNewWindow
|
||||
'-FilePath {1} ' +
|
||||
'-ArgumentList \' {2} /t:clean /p:Configuration={3} \' ' :
|
||||
'{0} {1} /t:clean /p:Configuration={2}',
|
||||
build_format = os === 'win' ? '{0} start-process ' +
|
||||
'-NoNewWindow ' +
|
||||
//'-WindowStyle Normal ' + //-WindowStyle (Hidden | Normal) | -NoNewWindow
|
||||
'-FilePath {1} ' +
|
||||
'-ArgumentList \' {2} /p:Configuration={3} \' ' :
|
||||
'{0} {1} /p:Configuration={2}';
|
||||
|
||||
function addBuildWithTitle(title) {
|
||||
var
|
||||
dir_path = string.format('{0}/../../Src/{1}/', __dirname,title),
|
||||
csproj = string.format('{0}{1}.csproj', dir_path, title),
|
||||
clean = os === 'win' ? string.format(clean_format, config.win.powershell, config.win.msbuild, csproj, configuration ):
|
||||
string.format(clean_format, config.linux.msbuild, csproj, configuration),
|
||||
build = os === 'win' ? string.format(build_format, config.win.powershell, config.win.msbuild, csproj, configuration ):
|
||||
string.format(build_format, config.linux.msbuild, csproj, configuration),
|
||||
template_file_content = fs.readFileSync('./templates/AssemblyInfo.cs');
|
||||
|
||||
template_file_content = S(template_file_content).replaceAll('@VERSION@', config.version).s;
|
||||
//grunt.log.writeln('template_file_content = "%s"', template_file_content);
|
||||
fs.writeFileSync(string.format('{0}Properties/AssemblyInfo.cs', dir_path), template_file_content);
|
||||
|
||||
tasks.push(clean);
|
||||
tasks.push(build);
|
||||
}
|
||||
|
||||
if (os === 'win') {
|
||||
addBuildWithTitle('SocketIoClientDotNet.Tests.net45');
|
||||
} else {
|
||||
addBuildWithTitle('SocketIoClientDotNet.Tests.mono');
|
||||
}
|
||||
|
||||
grunt.log.writeln('tasks = %s', JSON.stringify(tasks));
|
||||
grunt.config('shell.exec.command', tasks.join('&&'));
|
||||
grunt.task.run('shell');
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
99
ThirdParty/SocketIoClientDotNet/grunt/tasks/createNugetPackage.js
vendored
Normal file
99
ThirdParty/SocketIoClientDotNet/grunt/tasks/createNugetPackage.js
vendored
Normal file
@@ -0,0 +1,99 @@
|
||||
module.exports = function (grunt) {
|
||||
|
||||
grunt.registerTask('createNugetPackage',
|
||||
'create package ', function () {
|
||||
var
|
||||
fs = require('fs'),
|
||||
S = require('string'),
|
||||
string = require('string-formatter'),
|
||||
os = grunt.config('os'),
|
||||
config = grunt.config('config'),
|
||||
working_path = grunt.config('working_path'),
|
||||
package_path = working_path + '/NuGet/',
|
||||
package_lib_path = working_path + '/NuGet/lib/',
|
||||
//configuration = grunt.config('msbuild_configuration'),
|
||||
configuration = grunt.config('msbuild_configuration'),
|
||||
output_path_base = 'bin\\' + configuration + '\\',
|
||||
nuget_builds = grunt.config('nuget_builds'),
|
||||
nuget_path = os === 'win' ?
|
||||
config.win.nuget : config.linux.nuget,
|
||||
dst_path,
|
||||
template_file_content,
|
||||
i,
|
||||
tasks = [];
|
||||
|
||||
//function createPackageWithTitle(title) {
|
||||
// var
|
||||
// dir_path = string.format('{0}/../../{1}/', __dirname, title),
|
||||
// csproj = string.format('{0}{1}.csproj', dir_path, title),
|
||||
// pack = string.format('{0} pack {1}', nuget_path, csproj);
|
||||
|
||||
// tasks.push(pack);
|
||||
//}
|
||||
|
||||
if (os !== 'win') {
|
||||
return;
|
||||
}
|
||||
if (configuration !== 'Release') {
|
||||
grunt.log.writeln('wrong configuration = ' + configuration);
|
||||
return;
|
||||
}
|
||||
|
||||
//createPackageWithTitle('SocketIoClientDotNet');
|
||||
|
||||
|
||||
if (! fs.existsSync(working_path)) {
|
||||
fs.mkdirSync(working_path);
|
||||
fs.mkdirSync(package_path);
|
||||
fs.mkdirSync(package_lib_path);
|
||||
}
|
||||
if (!fs.existsSync(package_path)) {
|
||||
fs.mkdirSync(package_path);
|
||||
fs.mkdirSync(package_lib_path);
|
||||
}
|
||||
if (!fs.existsSync(package_lib_path)) {
|
||||
fs.mkdirSync(package_lib_path);
|
||||
}
|
||||
|
||||
for (i = 0; i < nuget_builds.length; i++) {
|
||||
dst_path = package_lib_path + nuget_builds[i].NuGetDir + '/';
|
||||
//files = fs.readdirSync(dst_path);
|
||||
grunt.log.writeln(string.format('dst_path={0}', dst_path));
|
||||
fs.mkdirSync(dst_path);
|
||||
}
|
||||
|
||||
|
||||
template_file_content = fs.readFileSync('./templates/SocketIoClientDotNet.nuspec');
|
||||
template_file_content = S(template_file_content).replaceAll('@VERSION@', config.version).s;
|
||||
fs.writeFileSync(string.format('{0}SocketIoClientDotNet.nuspec', package_path), template_file_content);
|
||||
|
||||
|
||||
|
||||
function addBuildWithTitle(title, destsubdir, srcsubdir) {
|
||||
var
|
||||
src_path = string.format('{0}/../../Src/{1}/{2}{3}/', __dirname, title, output_path_base, srcsubdir),
|
||||
dst_path = package_lib_path + destsubdir + '/',
|
||||
//src_file = string.format('{0}SocketIoClientDotNet.dll', src_path),
|
||||
src_file = string.format('{0}SocketIoClientDotNet.dll', src_path),
|
||||
dst_file = string.format('{0}SocketIoClientDotNet.dll', dst_path);
|
||||
|
||||
grunt.log.writeln(string.format('src_file={0} dst_file={1}', src_file, dst_file));
|
||||
fs.writeFileSync(dst_file, fs.readFileSync(src_file));
|
||||
|
||||
//src_file = src_path + string.format('{0}.xml', title);
|
||||
//dst_file = string.format('{0}SocketIoClientDotNet.xml', dst_path);
|
||||
//grunt.log.writeln(string.format('src_file={0} dst_file={1}', src_file, dst_file));
|
||||
//fs.writeFileSync(dst_file, fs.readFileSync(src_file));
|
||||
}
|
||||
|
||||
for (i = 0; i < nuget_builds.length; i++) {
|
||||
addBuildWithTitle(nuget_builds[i].Name, nuget_builds[i].NuGetDir, nuget_builds[i].SourceDir);
|
||||
}
|
||||
tasks.push('C:/WINDOWS/System32/WindowsPowerShell/v1.0/powershell.exe pwd');
|
||||
tasks.push(string.format('{0} pack SocketIoClientDotNet.nuspec', config.win.nuget));
|
||||
grunt.log.writeln('tasks = %s', JSON.stringify(tasks));
|
||||
grunt.config('shell.exec.options.execOptions.cwd', package_path);
|
||||
grunt.config('shell.exec.command', tasks.join('&&'));
|
||||
grunt.task.run('shell');
|
||||
});
|
||||
};
|
||||
45
ThirdParty/SocketIoClientDotNet/grunt/tasks/createXamarinComponent.js
vendored
Normal file
45
ThirdParty/SocketIoClientDotNet/grunt/tasks/createXamarinComponent.js
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
module.exports = function (grunt) {
|
||||
|
||||
grunt.registerTask('createXamarinComponent',
|
||||
'create component ', function () {
|
||||
var
|
||||
fs = require('fs'),
|
||||
S = require('string'),
|
||||
string = require('string-formatter'),
|
||||
os = grunt.config('os'),
|
||||
config = grunt.config('config'),
|
||||
xamarin_component = os === 'win' ? config.win.xamarin_component : config.linux.xamarin_component,
|
||||
working_path = grunt.config('working_path'),
|
||||
package_path = working_path + '/Component/',
|
||||
configuration = grunt.config('msbuild_configuration'),
|
||||
template_file_content,
|
||||
tasks = [];
|
||||
|
||||
if (configuration !== 'Release') {
|
||||
grunt.log.writeln('wrong configuration = ' + configuration);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
if (! fs.existsSync(working_path)) {
|
||||
fs.mkdirSync(working_path);
|
||||
fs.mkdirSync(package_path);
|
||||
}
|
||||
if (!fs.existsSync(package_path)) {
|
||||
fs.mkdirSync(package_path);
|
||||
}
|
||||
|
||||
|
||||
template_file_content = fs.readFileSync('./templates/SocketIoClientDotNet.yaml');
|
||||
template_file_content = S(template_file_content).replaceAll('@VERSION@', config.version).s;
|
||||
fs.writeFileSync(string.format('{0}component.yaml', package_path), template_file_content);
|
||||
|
||||
|
||||
tasks.push('echo %cd%');
|
||||
tasks.push(string.format('{0} package', xamarin_component));
|
||||
grunt.log.writeln('tasks = %s', JSON.stringify(tasks));
|
||||
grunt.config('shell.exec.options.execOptions.cwd', package_path);
|
||||
grunt.config('shell.exec.command', tasks.join('&&'));
|
||||
grunt.task.run('shell');
|
||||
});
|
||||
};
|
||||
32
ThirdParty/SocketIoClientDotNet/grunt/tasks/install-npm.js
vendored
Normal file
32
ThirdParty/SocketIoClientDotNet/grunt/tasks/install-npm.js
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
module.exports = function (grunt) {
|
||||
|
||||
grunt.registerTask('installNpm',
|
||||
'install node modules', function () {
|
||||
var
|
||||
string = require('string-formatter'),
|
||||
server_path2 = grunt.config('server_path'),
|
||||
os = grunt.config('os'),
|
||||
config = grunt.config('config'),
|
||||
win_pwd_command = string.format('{0} pwd', config.win.powershell);
|
||||
|
||||
grunt.log.writeln('server_path = "%s"', server_path2);
|
||||
grunt.log.writeln('win_pwd_command = "%s"', win_pwd_command);
|
||||
|
||||
if (os === 'win') {
|
||||
grunt.config('shell.exec.options.execOptions.cwd', '<%= server_path %>');
|
||||
|
||||
grunt.config('shell.exec.command', [win_pwd_command,
|
||||
'npm install'].join('&&'));
|
||||
grunt.task.run('shell');
|
||||
|
||||
} else {
|
||||
|
||||
grunt.config('shell.exec.options.execOptions.cwd', '<%= server_path %>');
|
||||
grunt.config('shell.exec.command', ['pwd', 'npm install'].join('&&'));
|
||||
grunt.task.run('shell');
|
||||
}
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
40
ThirdParty/SocketIoClientDotNet/grunt/tasks/nuget.js
vendored
Normal file
40
ThirdParty/SocketIoClientDotNet/grunt/tasks/nuget.js
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
module.exports = function (grunt) {
|
||||
|
||||
grunt.registerTask('nuget',
|
||||
'get nuget assemblies', function () {
|
||||
var
|
||||
//fs = require('fs'),
|
||||
//S = require('string'),
|
||||
string = require('string-formatter'),
|
||||
os = grunt.config('os'),
|
||||
config = grunt.config('config'),
|
||||
//configuration = grunt.config('msbuild_configuration'),
|
||||
nuget_builds = grunt.config('nuget_builds'),
|
||||
nuget_path = os === 'win' ?
|
||||
config.win.nuget : config.linux.nuget,
|
||||
format_str = os === 'win' ?
|
||||
'{0} restore "{1}"' :
|
||||
'mono --runtime=v4.0.30319 {0} restore {1}',
|
||||
tasks = [],
|
||||
i;
|
||||
|
||||
function restorePackagesWithTitle(title) {
|
||||
var
|
||||
sln = string.format('{0}/../../Src/{1}/{2}.sln',__dirname, title,title),
|
||||
restore = string.format(format_str, nuget_path, sln);
|
||||
|
||||
tasks.push(restore);
|
||||
}
|
||||
|
||||
if (os === 'win') {
|
||||
for (i = 0; i < nuget_builds.length; i++) {
|
||||
restorePackagesWithTitle(nuget_builds[i].Name);
|
||||
}
|
||||
}
|
||||
|
||||
grunt.log.writeln('tasks = %s', JSON.stringify(tasks));
|
||||
grunt.config('shell.exec.command', tasks.join('&&'));
|
||||
grunt.task.run('shell');
|
||||
});
|
||||
};
|
||||
|
||||
44
ThirdParty/SocketIoClientDotNet/grunt/tasks/start-server.js
vendored
Normal file
44
ThirdParty/SocketIoClientDotNet/grunt/tasks/start-server.js
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
module.exports = function (grunt) {
|
||||
|
||||
grunt.registerTask('startServer',
|
||||
'start server', function () {
|
||||
var
|
||||
server_path = grunt.config('server_path'),
|
||||
os = grunt.config('os'),
|
||||
string = require('string-formatter'),
|
||||
config = grunt.config('config'),
|
||||
tasks = [],
|
||||
start,
|
||||
pwd;
|
||||
|
||||
grunt.log.writeln('server_path = "%s"', server_path);
|
||||
|
||||
if (os === 'win') {
|
||||
|
||||
start = '{0} start-process ' +
|
||||
'-NoNewWindow ' +
|
||||
//'-WindowStyle Normal ' + //-WindowStyle (Hidden | Normal) | -NoNewWindow
|
||||
'-FilePath node ' +
|
||||
'-ArgumentList \' server.js \' ';
|
||||
start = string.format(start, config.win.powershell);
|
||||
pwd = string.format('{0} pwd',config.win.powershell);
|
||||
|
||||
tasks.push(pwd);
|
||||
tasks.push(start);
|
||||
|
||||
grunt.log.writeln('tasks = %s', JSON.stringify(tasks));
|
||||
grunt.config('shell.exec.options.execOptions.cwd', '<%= server_path %>');
|
||||
grunt.config('shell.exec.command', tasks.join('&&'));
|
||||
grunt.task.run('shell');
|
||||
|
||||
} else {
|
||||
|
||||
grunt.config('shell.exec.options.execOptions.cwd', '<%= server_path %>');
|
||||
grunt.config('shell.exec.command', ['pwd', 'node server.js'].join('&&'));
|
||||
grunt.task.run('shell');
|
||||
}
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
39
ThirdParty/SocketIoClientDotNet/grunt/tasks/test-client.js
vendored
Normal file
39
ThirdParty/SocketIoClientDotNet/grunt/tasks/test-client.js
vendored
Normal file
@@ -0,0 +1,39 @@
|
||||
module.exports = function (grunt) {
|
||||
|
||||
grunt.registerTask('testClient',
|
||||
'test cs', function () {
|
||||
var
|
||||
string = require('string-formatter'),
|
||||
os = grunt.config('os'),
|
||||
config = grunt.config('config'),
|
||||
tasks = [],
|
||||
configuration = grunt.config('msbuild_configuration'),
|
||||
test_format_str = os === 'win' ?
|
||||
'{0}/xunit.console.exe {1} -nunit test.xml -parallel none' :
|
||||
'mono {0}/xunit.console.clr4.exe {1}',
|
||||
|
||||
xunit_path = os === 'win' ?
|
||||
config.win.xunit_path : config.linux.xunit_path;
|
||||
|
||||
function addTestDllWithTitle(title) {
|
||||
var
|
||||
dir_path = string.format('{0}/../../Src/{1}/', __dirname, title),
|
||||
test_dll = string.format('{0}bin/{1}/{2}.dll', dir_path, configuration, title);
|
||||
|
||||
tasks.push( string.format(test_format_str,xunit_path, test_dll) );
|
||||
}
|
||||
|
||||
if (os === 'win') {
|
||||
addTestDllWithTitle('SocketIoClientDotNet.Tests.net45');
|
||||
} else {
|
||||
addTestDllWithTitle('SocketIoClientDotNet.Tests.mono');
|
||||
}
|
||||
|
||||
grunt.log.writeln('tasks = %s', JSON.stringify(tasks));
|
||||
grunt.config('shell.exec.command', tasks.join('&&'));
|
||||
grunt.task.run('shell');
|
||||
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
35
ThirdParty/SocketIoClientDotNet/grunt/templates/AssemblyInfo.cs
vendored
Normal file
35
ThirdParty/SocketIoClientDotNet/grunt/templates/AssemblyInfo.cs
vendored
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.Reflection;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle("SocketIoClientDotNet")]
|
||||
[assembly: AssemblyDescription("Socket.IO Client Library for .Net")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("Quobject Software")]
|
||||
[assembly: AssemblyProduct("SocketIoClientDotNet")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2017")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
// The following GUID is for the ID of the typelib if this project is exposed to COM
|
||||
[assembly: Guid("a95e75cd-35e6-4e88-9e22-631e3fd01546")]
|
||||
|
||||
// Version information for an assembly consists of the following four values:
|
||||
//
|
||||
// Major Version
|
||||
// Minor Version
|
||||
// Build Number
|
||||
// Revision
|
||||
//
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("@VERSION@")]
|
||||
[assembly: AssemblyFileVersion("@VERSION@")]
|
||||
70
ThirdParty/SocketIoClientDotNet/grunt/templates/SocketIoClientDotNet - xamarin.nuspec
vendored
Normal file
70
ThirdParty/SocketIoClientDotNet/grunt/templates/SocketIoClientDotNet - xamarin.nuspec
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>SocketIoClientDotNet</id>
|
||||
<version>@VERSION@-beta1</version>
|
||||
<title>SocketIoClientDotNet</title>
|
||||
<authors>Matthias Ludwig</authors>
|
||||
<licenseUrl>http://opensource.org/licenses/MIT</licenseUrl>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<dependencies>
|
||||
<group targetFramework="netcore45">
|
||||
<dependency id="Newtonsoft.Json" version="8.0.1" />
|
||||
<dependency id="EngineIoClientDotNet" version="0.9.22" />
|
||||
</group>
|
||||
<group targetFramework="portable-wpa81+wp81">
|
||||
<dependency id="Newtonsoft.Json" version="8.0.1" />
|
||||
<dependency id="EngineIoClientDotNet" version="0.9.22" />
|
||||
</group>
|
||||
<group targetFramework="net35">
|
||||
<dependency id="WebSocket4Net" version="0.14.1" />
|
||||
<dependency id="Newtonsoft.Json" version="8.0.1" />
|
||||
<dependency id="System.Threading.Tasks.Unofficial" version="3.1.0" />
|
||||
<dependency id="EngineIoClientDotNet" version="0.9.22" />
|
||||
</group>
|
||||
<group targetFramework="net40">
|
||||
<dependency id="WebSocket4Net" version="0.14.1" />
|
||||
<dependency id="Newtonsoft.Json" version="8.0.1" />
|
||||
<dependency id="EngineIoClientDotNet" version="0.9.22" />
|
||||
</group>
|
||||
<group targetFramework="net45">
|
||||
<dependency id="WebSocket4Net" version="0.14.1" />
|
||||
<dependency id="Newtonsoft.Json" version="8.0.1" />
|
||||
<dependency id="EngineIoClientDotNet" version="0.9.22" />
|
||||
</group>
|
||||
<group targetFramework="windowsphone8">
|
||||
<dependency id="WebSocket4Net" version="0.12" />
|
||||
<dependency id="Newtonsoft.Json" version="8.0.1" />
|
||||
<dependency id="EngineIoClientDotNet" version="0.9.22" />
|
||||
</group>
|
||||
<group targetFramework="monoandroid10">
|
||||
<dependency id="WebSocket4Net" version="0.14.1" />
|
||||
<dependency id="Newtonsoft.Json" version="8.0.1" />
|
||||
<dependency id="EngineIoClientDotNet" version="0.9.22" />
|
||||
</group>
|
||||
<group targetFramework="xamarinios10">
|
||||
<dependency id="WebSocket4Net" version="0.14.1" />
|
||||
<dependency id="Newtonsoft.Json" version="8.0.1" />
|
||||
<dependency id="EngineIoClientDotNet" version="0.9.22" />
|
||||
</group>
|
||||
<group targetFramework="Xamarin.Mac20">
|
||||
<dependency id="WebSocket4Net" version="0.14.1" />
|
||||
<dependency id="Newtonsoft.Json" version="8.0.1" />
|
||||
<dependency id="EngineIoClientDotNet" version="0.9.22" />
|
||||
</group>
|
||||
<group targetFramework="monotouch10">
|
||||
<dependency id="WebSocket4Net" version="0.14.1" />
|
||||
<dependency id="Newtonsoft.Json" version="8.0.1" />
|
||||
<dependency id="EngineIoClientDotNet" version="0.9.22" />
|
||||
</group>
|
||||
|
||||
</dependencies>
|
||||
<projectUrl>https://github.com/Quobject/SocketIoClientDotNet/</projectUrl>
|
||||
<description>This is the Socket.IO Client Library for .NET.</description>
|
||||
<summary>This library supports all of the features the JS client does, including events, options and upgrading transport. SocketIoClientDotNet has a similar api to those of the JavaScript client.</summary>
|
||||
<tags>socket.io.client</tags>
|
||||
<frameworkAssemblies>
|
||||
<frameworkAssembly assemblyName="System.Web" targetFramework="net45" />
|
||||
</frameworkAssemblies>
|
||||
</metadata>
|
||||
</package>
|
||||
44
ThirdParty/SocketIoClientDotNet/grunt/templates/SocketIoClientDotNet.nuspec
vendored
Normal file
44
ThirdParty/SocketIoClientDotNet/grunt/templates/SocketIoClientDotNet.nuspec
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
|
||||
<metadata>
|
||||
<id>SocketIoClientDotNet</id>
|
||||
<version>@VERSION@</version>
|
||||
<title>SocketIoClientDotNet</title>
|
||||
<authors>Matthias Ludwig</authors>
|
||||
<licenseUrl>http://opensource.org/licenses/MIT</licenseUrl>
|
||||
<requireLicenseAcceptance>true</requireLicenseAcceptance>
|
||||
<dependencies>
|
||||
<group targetFramework="net35">
|
||||
<dependency id="WebSocket4Net" version="0.15.1" />
|
||||
<dependency id="SuperSocket.ClientEngine.Core" version="0.9.0" />
|
||||
<dependency id="Newtonsoft.Json" version="9.0.1" />
|
||||
<dependency id="System.Threading.Tasks.Unofficial" version="3.1.0" />
|
||||
<dependency id="EngineIoClientDotNet" version="1.0.5" />
|
||||
</group>
|
||||
<group targetFramework="net40">
|
||||
<dependency id="WebSocket4Net" version="0.15.1" />
|
||||
<dependency id="SuperSocket.ClientEngine.Core" version="0.9.0" />
|
||||
<dependency id="Newtonsoft.Json" version="9.0.1" />
|
||||
<dependency id="EngineIoClientDotNet" version="1.0.5" />
|
||||
</group>
|
||||
<group targetFramework="net45">
|
||||
<dependency id="WebSocket4Net" version="0.15.1" />
|
||||
<dependency id="SuperSocket.ClientEngine.Core" version="0.9.0" />
|
||||
<dependency id="Newtonsoft.Json" version="9.0.1" />
|
||||
<dependency id="EngineIoClientDotNet" version="1.0.5" />
|
||||
<dependency id="System.Collections.Immutable" version="1.4.0" />
|
||||
</group>
|
||||
<group targetFramework="netstandard1.3">
|
||||
<dependency id="WebSocket4Net" version="0.15.1" />
|
||||
<dependency id="SuperSocket.ClientEngine.Core" version="0.9.0" />
|
||||
<dependency id="Newtonsoft.Json" version="9.0.1" />
|
||||
<dependency id="EngineIoClientDotNet" version="1.0.5" />
|
||||
<dependency id="System.Collections.Immutable" version="1.4.0" />
|
||||
</group>
|
||||
</dependencies>
|
||||
<projectUrl>https://github.com/Quobject/SocketIoClientDotNet/</projectUrl>
|
||||
<description>This is the Socket.IO Client Library for .NET.</description>
|
||||
<summary>This library supports all of the features the JS client does, including events, options and upgrading transport. SocketIoClientDotNet has a similar api to those of the JavaScript client.</summary>
|
||||
<tags>socket.io.client</tags>
|
||||
</metadata>
|
||||
</package>
|
||||
54
ThirdParty/SocketIoClientDotNet/grunt/templates/SocketIoClientDotNet.yaml
vendored
Normal file
54
ThirdParty/SocketIoClientDotNet/grunt/templates/SocketIoClientDotNet.yaml
vendored
Normal file
@@ -0,0 +1,54 @@
|
||||
%YAML 1.2
|
||||
---
|
||||
#info
|
||||
name: Socket.IO Client .NET
|
||||
id: SocketIoClientDotNet
|
||||
publisher: Matthias Ludwig
|
||||
publisher-url: https://github.com/Quobject/SocketIoClientDotNet/
|
||||
summary: This is the Socket.IO Client Library for .NET.
|
||||
version: @VERSION@
|
||||
src-url: https://github.com/Quobject/SocketIoClientDotNet
|
||||
|
||||
# docs
|
||||
details: ../../DETAILS.md
|
||||
license: ../../LICENSE.md
|
||||
getting-started: ../../DETAILS.md
|
||||
icons:
|
||||
- ../../pics/socketio_128x128.png
|
||||
- ../../pics/socketio_512x512.png
|
||||
|
||||
# assemblies
|
||||
is_shell: true
|
||||
no_build: true
|
||||
# NuGets used by new versions of XS and VS
|
||||
packages:
|
||||
android:
|
||||
- SocketIoClientDotNet, Version=@VERSION@
|
||||
local-nuget-repo: ../NuGet/
|
||||
# libraries used for old versions of XS
|
||||
libraries:
|
||||
android: ../NuGet/lib/monoandroid10/SocketIoClientDotNet.dll
|
||||
ios: ../NuGet/lib/xamarinios10/SocketIoClientDotNet.dll
|
||||
ios-unified: ../NuGet/lib/monotouch10/SocketIoClientDotNet.dll
|
||||
winphone-8.0: ../NuGet/lib/windowsphone8/SocketIoClientDotNet.dll
|
||||
winphone-8.1: ../NuGet/lib/portable-wpa81+wp81/SocketIoClientDotNet.dll
|
||||
win8: ../NuGet/lib/netcore45/SocketIoClientDotNet.dll
|
||||
|
||||
# samples
|
||||
samples:
|
||||
- name: Android Sample
|
||||
path: ../../Src/SocketIoClientDotNet.Sample.Xamarin-Android/SocketIoClientDotNet.Sample.Xamarin-Android.sln
|
||||
removeProjects:
|
||||
- SocketIoClientDotNet.Xamarin-Android
|
||||
installNuGets:
|
||||
- project: SocketIoClientDotNet.Sample.Xamarin-Android
|
||||
packages:
|
||||
- SocketIoClientDotNet
|
||||
- name: iOS Sample
|
||||
path: ../../Src/SocketIoClientDotNet.Sample.Xamarin-iOS/SocketIoClientDotNet.Sample.Xamarin-iOS.sln
|
||||
removeProjects:
|
||||
- SocketIoClientDotNet.Xamarin-iOS
|
||||
installNuGets:
|
||||
- project: SocketIoClientDotNet.Sample.Xamarin-iOS
|
||||
packages:
|
||||
- SocketIoClientDotNet
|
||||
Reference in New Issue
Block a user