add readme and build stuff

This commit is contained in:
Tommy Parnell
2017-02-11 00:33:43 -05:00
parent efd5f5b82c
commit 829ff3f742
4 changed files with 34 additions and 0 deletions

2
.gitignore vendored
View File

@@ -276,3 +276,5 @@ __pycache__/
# Cake - Uncomment if you are using it
# tools/**
# !tools/packages.config
Gemfile.lock

4
Gemfile Normal file
View File

@@ -0,0 +1,4 @@
source 'https://rubygems.org' do
gem 'rake'
gem 'json'
end

25
Rakefile Normal file
View File

@@ -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

3
Readme.md Normal file
View File

@@ -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.