diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2c4c3ec --- /dev/null +++ b/.gitignore @@ -0,0 +1,71 @@ +# Created by .ignore support plugin (hsz.mobi) +### Node template +# Logs +logs +*.log + +# Runtime data +pids +*.pid +*.seed + +# Directory for instrumented libs generated by jscoverage/JSCover +lib-cov + +# Coverage directory used by tools like istanbul +coverage + +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) +.grunt + +# node-waf configuration +.lock-wscript + +# Compiled binary addons (http://nodejs.org/api/addons.html) +build/Release + +# Dependency directory +# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git- +node_modules + + +### Ruby template +*.gem +*.rbc +/.config +/coverage/ +/InstalledFiles +/pkg/ +/spec/reports/ +/test/tmp/ +/test/version_tmp/ +/tmp/ + +## Specific to RubyMotion: +.dat* +.repl_history +build/ + +## Documentation cache and generated files: +/.yardoc/ +/_yardoc/ +/doc/ +/rdoc/ + +## Environment normalisation: +/.bundle/ +/lib/bundler/man/ + +# for a library or gem, you might want to ignore these files since the code is +# intended to run in multiple environments; otherwise, check them in: +# Gemfile.lock +# .ruby-version +# .ruby-gemset + +# unless supporting rvm < 1.11.0 or doing something fancy, ignore this: +.rvmrc + + + +test/log +public/js/build \ No newline at end of file diff --git a/.testiumrc b/.testiumrc new file mode 100644 index 0000000..69331c6 --- /dev/null +++ b/.testiumrc @@ -0,0 +1,3 @@ +launch=true +[app] +port=9295 \ No newline at end of file diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..2bb4665 --- /dev/null +++ b/Gemfile @@ -0,0 +1,4 @@ +source :rubygems + +gem 'sinatra' +gem 'json' diff --git a/Gemfile.lock b/Gemfile.lock new file mode 100644 index 0000000..c83ee71 --- /dev/null +++ b/Gemfile.lock @@ -0,0 +1,19 @@ +GEM + remote: http://rubygems.org/ + specs: + json (1.8.2) + rack (1.6.0) + rack-protection (1.5.3) + rack + sinatra (1.4.5) + rack (~> 1.4) + rack-protection (~> 1.4) + tilt (~> 1.3, >= 1.3.4) + tilt (1.4.1) + +PLATFORMS + ruby + +DEPENDENCIES + json + sinatra diff --git a/package.json b/package.json new file mode 100644 index 0000000..d36c847 --- /dev/null +++ b/package.json @@ -0,0 +1,37 @@ +{ + "name": "monologue", + "version": "1.0.0", + "description": "coding kata @ monologue", + "main": "index.js", + "scripts": { + "start": "rackup --port 9295", + "build": "mkdir -p public/js/build/ && browserify public/js/app.js -o public/js/build/app.js", + "watch": "mkdir -p public/js/build/ && watchify public/js/app.js -o public/js/build/app.js", + "test": "mocha test/" + }, + "repository": { + "type": "git", + "url": "https://github.com/coding-kata/monologue" + }, + "keywords": [ + "ruby", + "test", + "e2e" + ], + "author": "azu", + "license": "MIT", + "bugs": { + "url": "https://github.com/coding-kata/monologue/issues" + }, + "homepage": "https://github.com/coding-kata/monologue", + "devDependencies": { + "browserify": "^8.1.1", + "espower-loader": "^0.10.0", + "intelli-espower-loader": "^0.6.0", + "mocha": "^2.1.0", + "phantomjs": "^1.9.13", + "power-assert": "^0.10.1", + "testium": "^2.3.0", + "watchify": "^2.2.1" + } +} diff --git a/public/index.html b/public/index.html index 67add32..918981a 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,9 @@