resi 0.0.1p001
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +15 -0
- data/.rspec +2 -0
- data/.travis.yml +5 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +35 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/resi +5 -0
- data/bin/setup +8 -0
- data/lib/resi.rb +8 -0
- data/lib/resi/cli.rb +14 -0
- data/lib/resi/generators.rb +4 -0
- data/lib/resi/generators/create_app.rb +72 -0
- data/lib/resi/generators/create_model.rb +37 -0
- data/lib/resi/generators/erb/app_js.tt +19 -0
- data/lib/resi/generators/erb/app_rb.tt +24 -0
- data/lib/resi/generators/erb/app_scss.tt +7 -0
- data/lib/resi/generators/erb/babelrc.tt +3 -0
- data/lib/resi/generators/erb/config_ru.tt +3 -0
- data/lib/resi/generators/erb/db_yml.tt +8 -0
- data/lib/resi/generators/erb/eslintrc_json.tt +29 -0
- data/lib/resi/generators/erb/example_component_js.tt +14 -0
- data/lib/resi/generators/erb/gemfile.tt +15 -0
- data/lib/resi/generators/erb/gitignore.tt +4 -0
- data/lib/resi/generators/erb/layout_erb.tt +13 -0
- data/lib/resi/generators/erb/model_rb.tt +3 -0
- data/lib/resi/generators/erb/model_spec_rb.tt +5 -0
- data/lib/resi/generators/erb/package_json.tt +30 -0
- data/lib/resi/generators/erb/rakefile.tt +55 -0
- data/lib/resi/generators/erb/reset_scss.tt +47 -0
- data/lib/resi/generators/erb/route_rb.tt +5 -0
- data/lib/resi/generators/erb/variables_scss.tt +2 -0
- data/lib/resi/generators/erb/webpack_config_js.tt +61 -0
- data/lib/resi/version.rb +3 -0
- data/resi.gemspec +41 -0
- metadata +193 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: cda18e66d6023637f9a775ce961ea444f808c574
|
4
|
+
data.tar.gz: 3c56a5ea86fceceab21c0acfae407534a0c5f172
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a401be8dc74aa5b77d59b01abfe05aafbeaf42b39636503e4bca93bbc472c65a9130b8eb6522cc49d5f26a2601f5509e8932464e050db0794a143122f6eb0135
|
7
|
+
data.tar.gz: 3fc45b7dbdcda032d7cc7d894cc7a7dd8d38452aa378a10b7f14127da053275ca12095be65062ac38029259fe20a48f5389f57fe011a0eb0eace381d02da3d54
|
data/.gitignore
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 jmyers0022
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
# Resi
|
2
|
+
|
3
|
+
React + Sinatra
|
4
|
+
|
5
|
+
https://rubygems.org/gems/resi
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'resi'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install resi
|
22
|
+
|
23
|
+
## Development
|
24
|
+
|
25
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
26
|
+
|
27
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
28
|
+
|
29
|
+
## Contributing
|
30
|
+
|
31
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/jmyers0022/resi.
|
32
|
+
|
33
|
+
## License
|
34
|
+
|
35
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "resi"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/resi
ADDED
data/bin/setup
ADDED
data/lib/resi.rb
ADDED
data/lib/resi/cli.rb
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
require_relative './generators/create_app'
|
2
|
+
require_relative './generators/create_model'
|
3
|
+
|
4
|
+
command = ARGV.shift
|
5
|
+
args = ARGV
|
6
|
+
|
7
|
+
case command
|
8
|
+
when 'create_app'
|
9
|
+
Resi::Generators::CreateApp.start
|
10
|
+
when 'create_model'
|
11
|
+
Resi::Generators::CreateModel.start
|
12
|
+
else
|
13
|
+
puts 'unknown command'
|
14
|
+
end
|
@@ -0,0 +1,72 @@
|
|
1
|
+
require 'thor'
|
2
|
+
|
3
|
+
module Resi
|
4
|
+
module Generators
|
5
|
+
class CreateApp < Thor::Group
|
6
|
+
include Thor::Actions
|
7
|
+
|
8
|
+
namespace :resi
|
9
|
+
argument :name
|
10
|
+
|
11
|
+
def self.invoke(args)
|
12
|
+
method = args.shift
|
13
|
+
new(args).invoke(:create_app)
|
14
|
+
end
|
15
|
+
|
16
|
+
def self.source_root
|
17
|
+
File.dirname(__FILE__)
|
18
|
+
end
|
19
|
+
|
20
|
+
desc 'create app.rb file'
|
21
|
+
def create_app_file
|
22
|
+
template('erb/app_rb.tt', "#{name}/config/app.rb")
|
23
|
+
end
|
24
|
+
|
25
|
+
desc 'create db config'
|
26
|
+
def create_db_config
|
27
|
+
template('erb/db_yml.tt', "#{name}/config/db.yml")
|
28
|
+
end
|
29
|
+
|
30
|
+
desc 'create root route'
|
31
|
+
def create_root_route
|
32
|
+
template('erb/route_rb.tt', "#{name}/app/routes/root.rb", path: '')
|
33
|
+
end
|
34
|
+
|
35
|
+
desc 'create app layout'
|
36
|
+
def create_app_layout
|
37
|
+
template('erb/layout_erb.tt', "#{name}/app/layouts/app_layout.erb")
|
38
|
+
end
|
39
|
+
|
40
|
+
desc 'stub js files'
|
41
|
+
def stub_js_files
|
42
|
+
template('erb/app_js.tt', "#{name}/app/assets/js/App.js")
|
43
|
+
template('erb/example_component_js.tt', "#{name}/app/assets/js/components/ExampleComponent.js")
|
44
|
+
end
|
45
|
+
|
46
|
+
desc 'stub scss files'
|
47
|
+
def stub_scss_files
|
48
|
+
template('erb/app_scss.tt', "#{name}/app/assets/scss/app.scss")
|
49
|
+
template('erb/variables_scss.tt', "#{name}/app/assets/scss/variables.scss")
|
50
|
+
template('erb/reset_scss.tt', "#{name}/app/assets/scss/reset.scss")
|
51
|
+
end
|
52
|
+
|
53
|
+
desc 'stub app directories'
|
54
|
+
def stub_app_directories
|
55
|
+
create_file "#{name}/app/models/.gitkeep"
|
56
|
+
create_file "#{name}/db/migrations/.gitkeep"
|
57
|
+
end
|
58
|
+
|
59
|
+
desc 'create build files'
|
60
|
+
def create_build_files
|
61
|
+
template('erb/gemfile.tt', "#{name}/Gemfile")
|
62
|
+
template('erb/babelrc.tt', "#{name}/.babelrc")
|
63
|
+
template('erb/eslintrc_json.tt', "#{name}/.eslintrc.json")
|
64
|
+
template('erb/gitignore.tt', "#{name}/.gitignore")
|
65
|
+
template('erb/config_ru.tt', "#{name}/config.ru")
|
66
|
+
template('erb/package_json.tt', "#{name}/package.json")
|
67
|
+
template('erb/rakefile.tt', "#{name}/Rakefile")
|
68
|
+
template('erb/webpack_config_js.tt', "#{name}/webpack.config.js")
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
require 'thor'
|
2
|
+
|
3
|
+
module Resi
|
4
|
+
module Generators
|
5
|
+
class CreateModel < Thor::Group
|
6
|
+
include Thor::Actions
|
7
|
+
|
8
|
+
namespace :resi
|
9
|
+
argument :app_name
|
10
|
+
argument :model_name
|
11
|
+
|
12
|
+
def self.invoke(args)
|
13
|
+
method = args.shift
|
14
|
+
new(args).invoke(:create_app)
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.source_root
|
18
|
+
File.dirname(__FILE__)
|
19
|
+
end
|
20
|
+
|
21
|
+
desc 'create model'
|
22
|
+
def create_model
|
23
|
+
template('erb/model_rb.tt', "#{app_name}/app/models/#{model_name}.rb")
|
24
|
+
end
|
25
|
+
|
26
|
+
desc 'create migration'
|
27
|
+
def create_migration
|
28
|
+
# Create a sequel migration
|
29
|
+
end
|
30
|
+
|
31
|
+
desc 'create spec file'
|
32
|
+
def create_spec
|
33
|
+
template('erb/model_spec_rb.tt', "#{app_name}/spec/models/#{model_name}_spec.rb")
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/** Bootstrap the Webpack SCSS loader */
|
2
|
+
import '../scss/app.scss';
|
3
|
+
|
4
|
+
/** Import es6 polyfills */
|
5
|
+
import 'core-js/es6/map';
|
6
|
+
import 'core-js/es6/set';
|
7
|
+
|
8
|
+
/** Node module imports */
|
9
|
+
import React from 'react';
|
10
|
+
import ReactDOM from 'react-dom';
|
11
|
+
|
12
|
+
/** Application imports */
|
13
|
+
import ExampleComponent from './components/ExampleComponent';
|
14
|
+
|
15
|
+
/** Kick off application */
|
16
|
+
ReactDOM.render(
|
17
|
+
<ExampleComponent path='app/assets/js/components/ExampleComponent.js' />,
|
18
|
+
document.getElementById('js-app-container')
|
19
|
+
);
|
@@ -0,0 +1,24 @@
|
|
1
|
+
require 'sinatra/base'
|
2
|
+
require 'yaml'
|
3
|
+
require 'erb'
|
4
|
+
require 'sequel'
|
5
|
+
|
6
|
+
class App < Sinatra::Application
|
7
|
+
set :root, File.dirname(__FILE__)
|
8
|
+
set :views, Proc.new { File.join(root, '../app/layouts') }
|
9
|
+
set :public_folder, Proc.new { File.join(root, '../public') }
|
10
|
+
set :server, %w(thin)
|
11
|
+
set :port, 9292
|
12
|
+
|
13
|
+
# TODO: Auto-require all routes files
|
14
|
+
require_relative '../app/routes/root'
|
15
|
+
end
|
16
|
+
|
17
|
+
def db_config
|
18
|
+
YAML.load(ERB.new(File.read('./config/db.yml')).result)
|
19
|
+
end
|
20
|
+
|
21
|
+
env = ENV.fetch('resi_environment', 'development')
|
22
|
+
config = db_config[env]
|
23
|
+
|
24
|
+
DB = Sequel.connect(config.merge('database' => 'postgres'))
|
@@ -0,0 +1,29 @@
|
|
1
|
+
{
|
2
|
+
"env": {
|
3
|
+
"browser": true,
|
4
|
+
"commonjs": true,
|
5
|
+
"es6": true
|
6
|
+
},
|
7
|
+
"extends": "eslint:recommended",
|
8
|
+
"parserOptions": {
|
9
|
+
"sourceType": "module"
|
10
|
+
},
|
11
|
+
"rules": {
|
12
|
+
"indent": [
|
13
|
+
"error",
|
14
|
+
2
|
15
|
+
],
|
16
|
+
"linebreak-style": [
|
17
|
+
"error",
|
18
|
+
"unix"
|
19
|
+
],
|
20
|
+
"quotes": [
|
21
|
+
"error",
|
22
|
+
"single"
|
23
|
+
],
|
24
|
+
"semi": [
|
25
|
+
"error",
|
26
|
+
"always"
|
27
|
+
]
|
28
|
+
}
|
29
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
import React from 'react';
|
2
|
+
|
3
|
+
class ExampleComponent extends React.Component {
|
4
|
+
render() {
|
5
|
+
return(
|
6
|
+
<div>
|
7
|
+
<h1>Welcome to Resi</h1>
|
8
|
+
<p>See {this.props.path} to view this sample React component.</p>
|
9
|
+
</div>
|
10
|
+
);
|
11
|
+
}
|
12
|
+
}
|
13
|
+
|
14
|
+
export default ExampleComponent;
|
@@ -0,0 +1,15 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
|
4
|
+
|
5
|
+
gem 'resi', '0.0.1', path: '../resi/pkg'
|
6
|
+
gem 'sinatra'
|
7
|
+
gem 'sinatra-contrib'
|
8
|
+
gem 'rake'
|
9
|
+
gem 'rack'
|
10
|
+
gem 'thin'
|
11
|
+
gem 'rerun'
|
12
|
+
gem 'pg'
|
13
|
+
gem 'sequel'
|
14
|
+
gem 'sequel_pg'
|
15
|
+
gem 'byebug'
|
@@ -0,0 +1,13 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<title><%= name %></title>
|
7
|
+
<link rel="stylesheet" href="css/styles.css">
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<div id="js-app-container"></div>
|
11
|
+
<script type="text/javascript" src="js/main.bundle.js"></script>
|
12
|
+
</body>
|
13
|
+
</html>
|
@@ -0,0 +1,30 @@
|
|
1
|
+
{
|
2
|
+
"name": "%= name %>",
|
3
|
+
"version": "1.0.0",
|
4
|
+
"main": "public/js/App.js",
|
5
|
+
"license": "MIT",
|
6
|
+
"dependencies": {
|
7
|
+
"react": "^16.0.0",
|
8
|
+
"react-dom": "^16.0.0"
|
9
|
+
},
|
10
|
+
"devDependencies": {
|
11
|
+
"babel-core": "6.26.0",
|
12
|
+
"babel-loader": "7.1.2",
|
13
|
+
"babel-preset-env": "1.6.0",
|
14
|
+
"babel-preset-es2015": "6.24.1",
|
15
|
+
"babel-preset-react": "6.24.1",
|
16
|
+
"css-loader": "0.28.7",
|
17
|
+
"extract-text-webpack-plugin": "3.0.1",
|
18
|
+
"file-loader": "1.1.5",
|
19
|
+
"node-sass": "4.5.3",
|
20
|
+
"sass-loader": "6.0.6",
|
21
|
+
"style-loader": "0.19.0",
|
22
|
+
"webpack": "3.6.0",
|
23
|
+
"webpack-dev-server": "2.9.1"
|
24
|
+
},
|
25
|
+
"scripts": {
|
26
|
+
"babel": "babel --presets es2015 app/js/main.js -o build/main.bundle.js",
|
27
|
+
"build": "NODE_ENV=production webpack -p",
|
28
|
+
"build-dev": "webpack"
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,55 @@
|
|
1
|
+
require 'rack'
|
2
|
+
require 'yaml'
|
3
|
+
require 'erb'
|
4
|
+
require 'sequel'
|
5
|
+
|
6
|
+
def run_db_task
|
7
|
+
|
8
|
+
def db_config
|
9
|
+
YAML.load(ERB.new(File.read('./config/db.yml')).result)
|
10
|
+
end
|
11
|
+
|
12
|
+
env = ENV.fetch('resi_environment', 'development')
|
13
|
+
config = db_config[env]
|
14
|
+
|
15
|
+
puts "Running #{yield} command in the #{env} environment"
|
16
|
+
|
17
|
+
Sequel.connect(config.merge('database' => 'postgres')) do |db|
|
18
|
+
db.execute "#{yield} #{config['database']}"
|
19
|
+
end
|
20
|
+
|
21
|
+
puts "Success!"
|
22
|
+
end
|
23
|
+
|
24
|
+
task default: %w(serve)
|
25
|
+
|
26
|
+
task :serve do
|
27
|
+
system 'rerun -- rackup config.ru'
|
28
|
+
end
|
29
|
+
|
30
|
+
task :watch do
|
31
|
+
system 'rerun --dir app/assets "yarn webpack"'
|
32
|
+
end
|
33
|
+
|
34
|
+
task :create_db do
|
35
|
+
run_db_task { 'CREATE DATABASE' }
|
36
|
+
end
|
37
|
+
|
38
|
+
task :destroy_db do
|
39
|
+
run_db_task { 'DROP DATABASE IF EXISTS' }
|
40
|
+
end
|
41
|
+
|
42
|
+
task :create_migration do
|
43
|
+
# run a thor generator to create a migration file
|
44
|
+
end
|
45
|
+
|
46
|
+
task :migrate do
|
47
|
+
def db_config
|
48
|
+
YAML.load(ERB.new(File.read('./config/db.yml')).result)
|
49
|
+
end
|
50
|
+
|
51
|
+
env = ENV.fetch('resi_environment', 'development')
|
52
|
+
config = db_config[env]
|
53
|
+
|
54
|
+
system "sequel -m ./db/migrations postgres://localhost/#{config['database']}"
|
55
|
+
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
/* http://meyerweb.com/eric/tools/css/reset/
|
2
|
+
v2.0 | 20110126
|
3
|
+
License: none (public domain)
|
4
|
+
*/
|
5
|
+
|
6
|
+
html, body, div, span, applet, object, iframe,
|
7
|
+
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
|
8
|
+
a, abbr, acronym, address, big, cite, code,
|
9
|
+
del, dfn, em, img, ins, kbd, q, s, samp,
|
10
|
+
small, strike, strong, sub, sup, tt, var,
|
11
|
+
b, u, i, center,
|
12
|
+
dl, dt, dd, ol, ul, li,
|
13
|
+
fieldset, form, label, legend,
|
14
|
+
table, caption, tbody, tfoot, thead, tr, th, td,
|
15
|
+
article, aside, canvas, details, embed,
|
16
|
+
figure, figcaption, footer, header, hgroup,
|
17
|
+
main, menu, nav, output, ruby, section, summary,
|
18
|
+
time, mark, audio, video {
|
19
|
+
margin: 0;
|
20
|
+
padding: 0;
|
21
|
+
border: 0;
|
22
|
+
font-size: 100%;
|
23
|
+
font: inherit;
|
24
|
+
vertical-align: baseline;
|
25
|
+
}
|
26
|
+
/* HTML5 display-role reset for older browsers */
|
27
|
+
article, aside, details, figcaption, figure,
|
28
|
+
footer, header, hgroup, main, menu, nav, section {
|
29
|
+
display: block;
|
30
|
+
}
|
31
|
+
body {
|
32
|
+
line-height: 1;
|
33
|
+
}
|
34
|
+
ol, ul {
|
35
|
+
list-style: none;
|
36
|
+
}
|
37
|
+
blockquote, q {
|
38
|
+
quotes: none;
|
39
|
+
&:before, &:after {
|
40
|
+
content: '';
|
41
|
+
content: none;
|
42
|
+
}
|
43
|
+
}
|
44
|
+
table {
|
45
|
+
border-collapse: collapse;
|
46
|
+
border-spacing: 0;
|
47
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
var path = require('path');
|
2
|
+
var webpack = require('webpack');
|
3
|
+
var ExtractTextPlugin = require('extract-text-webpack-plugin');
|
4
|
+
|
5
|
+
module.exports = {
|
6
|
+
entry: './app/assets/js/App.js',
|
7
|
+
output: {
|
8
|
+
path: path.resolve(__dirname, 'public'),
|
9
|
+
filename: 'js/main.bundle.js'
|
10
|
+
},
|
11
|
+
module: {
|
12
|
+
loaders: [
|
13
|
+
{
|
14
|
+
test: /\.js$/,
|
15
|
+
exclude: /node_modules/,
|
16
|
+
loader: 'babel-loader',
|
17
|
+
query: {
|
18
|
+
presets: ['es2015']
|
19
|
+
}
|
20
|
+
},
|
21
|
+
{
|
22
|
+
test: /\.jsx$/,
|
23
|
+
exclude: /node_modules/,
|
24
|
+
loader: 'babel-loader',
|
25
|
+
query: {
|
26
|
+
presets: ['es2015']
|
27
|
+
}
|
28
|
+
},
|
29
|
+
{
|
30
|
+
test: /\.scss$/,
|
31
|
+
use: ExtractTextPlugin.extract({
|
32
|
+
fallback: 'style-loader',
|
33
|
+
use: ['css-loader', 'sass-loader']
|
34
|
+
})
|
35
|
+
},
|
36
|
+
{
|
37
|
+
test: /\.(eot|svg|ttf|woff)$/,
|
38
|
+
use: [
|
39
|
+
{
|
40
|
+
loader: 'file-loader',
|
41
|
+
options: {
|
42
|
+
name: 'fonts/[name].[ext]'
|
43
|
+
}
|
44
|
+
}
|
45
|
+
]
|
46
|
+
}
|
47
|
+
]
|
48
|
+
},
|
49
|
+
plugins: [
|
50
|
+
new ExtractTextPlugin('css/styles.css', {
|
51
|
+
allChunks: true
|
52
|
+
})
|
53
|
+
],
|
54
|
+
devServer: {
|
55
|
+
contentBase: './public'
|
56
|
+
},
|
57
|
+
stats: {
|
58
|
+
colors: true
|
59
|
+
},
|
60
|
+
devtool: 'source-map'
|
61
|
+
};
|
data/lib/resi/version.rb
ADDED
data/resi.gemspec
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'resi/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'resi'
|
8
|
+
spec.version = Resi::VERSION
|
9
|
+
spec.authors = ['jmyers0022']
|
10
|
+
spec.email = ['jmyers0022@gmail.com']
|
11
|
+
|
12
|
+
spec.summary = %q{React & Sinatra}
|
13
|
+
spec.description = %q{Project boilerplate - React + Sinatra}
|
14
|
+
spec.homepage = 'https://github.com/jmyers0022/resi'
|
15
|
+
spec.license = 'MIT'
|
16
|
+
|
17
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
18
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
19
|
+
if spec.respond_to?(:metadata)
|
20
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
|
21
|
+
else
|
22
|
+
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
f.match(%r{^(test|spec|features)/})
|
27
|
+
end
|
28
|
+
spec.bindir = 'exe'
|
29
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ['lib']
|
31
|
+
|
32
|
+
spec.add_development_dependency 'bundler', '~> 1.15'
|
33
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
34
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
35
|
+
spec.add_development_dependency 'byebug'
|
36
|
+
|
37
|
+
spec.add_dependency 'sinatra'
|
38
|
+
spec.add_dependency 'sequel'
|
39
|
+
spec.add_dependency 'pg'
|
40
|
+
spec.add_dependency 'thor'
|
41
|
+
end
|
metadata
ADDED
@@ -0,0 +1,193 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: resi
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1p001
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- jmyers0022
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-10-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.15'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.15'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '3.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: byebug
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: sinatra
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: sequel
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: pg
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: thor
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description: Project boilerplate - React + Sinatra
|
126
|
+
email:
|
127
|
+
- jmyers0022@gmail.com
|
128
|
+
executables: []
|
129
|
+
extensions: []
|
130
|
+
extra_rdoc_files: []
|
131
|
+
files:
|
132
|
+
- ".gitignore"
|
133
|
+
- ".rspec"
|
134
|
+
- ".travis.yml"
|
135
|
+
- Gemfile
|
136
|
+
- LICENSE.txt
|
137
|
+
- README.md
|
138
|
+
- Rakefile
|
139
|
+
- bin/console
|
140
|
+
- bin/resi
|
141
|
+
- bin/setup
|
142
|
+
- lib/resi.rb
|
143
|
+
- lib/resi/cli.rb
|
144
|
+
- lib/resi/generators.rb
|
145
|
+
- lib/resi/generators/create_app.rb
|
146
|
+
- lib/resi/generators/create_model.rb
|
147
|
+
- lib/resi/generators/erb/app_js.tt
|
148
|
+
- lib/resi/generators/erb/app_rb.tt
|
149
|
+
- lib/resi/generators/erb/app_scss.tt
|
150
|
+
- lib/resi/generators/erb/babelrc.tt
|
151
|
+
- lib/resi/generators/erb/config_ru.tt
|
152
|
+
- lib/resi/generators/erb/db_yml.tt
|
153
|
+
- lib/resi/generators/erb/eslintrc_json.tt
|
154
|
+
- lib/resi/generators/erb/example_component_js.tt
|
155
|
+
- lib/resi/generators/erb/gemfile.tt
|
156
|
+
- lib/resi/generators/erb/gitignore.tt
|
157
|
+
- lib/resi/generators/erb/layout_erb.tt
|
158
|
+
- lib/resi/generators/erb/model_rb.tt
|
159
|
+
- lib/resi/generators/erb/model_spec_rb.tt
|
160
|
+
- lib/resi/generators/erb/package_json.tt
|
161
|
+
- lib/resi/generators/erb/rakefile.tt
|
162
|
+
- lib/resi/generators/erb/reset_scss.tt
|
163
|
+
- lib/resi/generators/erb/route_rb.tt
|
164
|
+
- lib/resi/generators/erb/variables_scss.tt
|
165
|
+
- lib/resi/generators/erb/webpack_config_js.tt
|
166
|
+
- lib/resi/version.rb
|
167
|
+
- resi.gemspec
|
168
|
+
homepage: https://github.com/jmyers0022/resi
|
169
|
+
licenses:
|
170
|
+
- MIT
|
171
|
+
metadata:
|
172
|
+
allowed_push_host: https://rubygems.org
|
173
|
+
post_install_message:
|
174
|
+
rdoc_options: []
|
175
|
+
require_paths:
|
176
|
+
- lib
|
177
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - ">"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 1.3.1
|
187
|
+
requirements: []
|
188
|
+
rubyforge_project:
|
189
|
+
rubygems_version: 2.6.13
|
190
|
+
signing_key:
|
191
|
+
specification_version: 4
|
192
|
+
summary: React & Sinatra
|
193
|
+
test_files: []
|