From 829ff3f742e1a524fe514ce3599c947329ec0d0d Mon Sep 17 00:00:00 2001 From: Tommy Parnell Date: Sat, 11 Feb 2017 00:33:43 -0500 Subject: [PATCH] add readme and build stuff --- .gitignore | 2 ++ Gemfile | 4 ++++ Rakefile | 25 +++++++++++++++++++++++++ Readme.md | 3 +++ 4 files changed, 34 insertions(+) create mode 100644 Gemfile create mode 100644 Rakefile create mode 100644 Readme.md diff --git a/.gitignore b/.gitignore index 8054980..e864b60 100644 --- a/.gitignore +++ b/.gitignore @@ -276,3 +276,5 @@ __pycache__/ # Cake - Uncomment if you are using it # tools/** # !tools/packages.config + +Gemfile.lock \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..c825fc5 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source 'https://rubygems.org' do + gem 'rake' + gem 'json' +end \ No newline at end of file diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..a8e558f --- /dev/null +++ b/Rakefile @@ -0,0 +1,25 @@ +require 'json' +require 'rake/clean' + +CLEAN.include(['**/bin', '**/obj']) + +desc 'clean, build, publish' +task :preflight => [:clean, :build, :publish] + +desc 'restore nuget packages things' +task :restore do + sh "dotnet restore src/TwitchChat" +end + +desc 'build our code' +task :build do + sh "dotnet build src/TwitchChat -c release" +end + +desc 'publish all runtimes' +task :publish => :restore do + text = File.read('src/TwitchChat/project.json') + JSON.parse(text)["runtimes"].each{|t, v| + sh "dotnet publish src/TwitchChat/ -c Release -r #{t}" +} +end \ No newline at end of file diff --git a/Readme.md b/Readme.md new file mode 100644 index 0000000..aed4246 --- /dev/null +++ b/Readme.md @@ -0,0 +1,3 @@ +This is a simple cli tool that lets you read your twitch stream via the command line. Obviously this is much more lightweight than running browsers or UI. + +You need [dotnet core](https://dot.net) installed to compile this. I have provided a Rakefile (which is ran with ruby) to also compile out the app. \ No newline at end of file