vue_cli-rails 0.1.4 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (43) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +0 -0
  3. data/.rspec +0 -0
  4. data/.rubocop.yml +20 -0
  5. data/.travis.yml +13 -0
  6. data/Gemfile +2 -4
  7. data/Gemfile.lock +0 -0
  8. data/LICENSE +0 -0
  9. data/README.md +482 -14
  10. data/Rakefile +3 -3
  11. data/bin/console +3 -3
  12. data/lib/helpers/lib/cmd.rb +6 -0
  13. data/lib/helpers/lib/common.rb +7 -0
  14. data/lib/helpers/lib/input_loop.rb +41 -0
  15. data/lib/helpers/lib.rb +3 -0
  16. data/lib/helpers/scripts/install_rails.rb +48 -0
  17. data/lib/helpers/scripts/vue_command.rb +74 -0
  18. data/lib/helpers/scripts/vue_create.rb +153 -0
  19. data/lib/source/app/assets/vue/components/layouts/App.vue +0 -0
  20. data/lib/source/app/assets/vue/components/layouts/index.js +0 -0
  21. data/lib/source/app/assets/vue/components/views/Bar.vue +0 -0
  22. data/lib/source/app/assets/vue/components/views/Foo.vue +1 -1
  23. data/lib/source/app/assets/vue/views/bar.js +0 -0
  24. data/lib/source/app/assets/vue/views/foo.js +0 -0
  25. data/lib/source/app/controllers/vue_controller.rb +2 -4
  26. data/lib/source/app/views/layouts/vue.html.erb +0 -0
  27. data/lib/source/app/views/vue/bar.html.erb +0 -0
  28. data/lib/source/app/views/vue/foo.html.erb +0 -0
  29. data/lib/source/vue.config.js +37 -33
  30. data/lib/source/vue.rails.js +64 -28
  31. data/lib/source/vue.yml +14 -8
  32. data/lib/tasks/vue.rake +23 -120
  33. data/lib/views/layouts/vue.erb +0 -0
  34. data/lib/vue_cli/rails/configuration.rb +58 -21
  35. data/lib/vue_cli/rails/dev_server_proxy.rb +3 -3
  36. data/lib/vue_cli/rails/engine.rb +16 -7
  37. data/lib/vue_cli/rails/helper.rb +0 -0
  38. data/lib/vue_cli/rails/node_env.rb +31 -23
  39. data/lib/vue_cli/rails/version.rb +1 -1
  40. data/lib/vue_cli/rails.rb +1 -1
  41. data/tmp/.keep +0 -0
  42. data/vue_cli-rails.gemspec +18 -18
  43. metadata +32 -9
data/lib/tasks/vue.rake CHANGED
@@ -1,134 +1,37 @@
1
1
  namespace :vue do
2
2
  desc 'Run vue-cli create and regenerate configuration'
3
3
  task :create do
4
- pm = VueCli::Rails::NodeEnv.new
5
- abort('Cannot find node.js') unless pm.node?
4
+ require_relative '../helpers/scripts/vue_create'
5
+ VueCreate.run!
6
+ end
6
7
 
7
- get_input = ->(message, list = 'Yn') {
8
- list = list.chars
9
- default = list.find { |c| c.upcase == c }
10
- list = list.map { |c| c == default ? c : c.downcase }.uniq
11
- valid = "[#{list.join('')}]"
12
- list = list.map(&:downcase)
13
- print "#{message} #{valid}"
14
- loop do
15
- r = STDIN.gets.chop.downcase
16
- break default if r == ''
17
- break r if list.include?(r)
18
- print " [INVALID!] Please retry: #{valid}:"
19
- end
20
- }
8
+ desc 'Add template/style support: formats=pug,sass,less,stylus'
9
+ task :support, [:formats] do |_t, args|
10
+ require_relative '../helpers/scripts/vue_command'
11
+ VueCommand.new.install_format_support(args.formats&.split(/\W/))
12
+ end
21
13
 
22
- # 1. package manager
23
- yarn = pm.yarn_version
24
- npm = pm.npm_version
25
- if yarn
26
- if npm
27
- input = get_input.call('Which package manager to use (Y=Yarn, N=npm)?')
28
- pm.use!(input == 'n' ? :npm : :yarn)
29
- else
30
- pm.use!(:yarn)
31
- end
32
- elsif npm
33
- pm.use!(:npm)
14
+ desc 'Dump config/vue.yml to JSON: set [js] to get result from vue.rails.js'
15
+ task :json_config, [:from] => :environment do |_t, args|
16
+ if args.from == 'js'
17
+ require_relative '../helpers/lib/cmd'
18
+ Cmd.run VueCli::Rails::Configuration::JS_CONFIG_CMD
34
19
  else
35
- abort('Cannot find npm or yarn')
36
- end
37
- puts "Using package manager: #{pm.package_manager}"
38
-
39
- # install vue-cli
40
- unless pm.vue?
41
- puts "@vue/cli haven't been installed"
42
- pm.global_add('@vue/cli')
43
- end
44
-
45
- src_dir = Pathname.new(__FILE__).dirname.join('..', 'source')
46
- root = ::Rails.root
47
- FileUtils.chdir root
48
-
49
- # 2. vue create .
50
- input = 'y'
51
- pack = root.join('package.json')
52
- if pack.exist?
53
- puts 'Detected `package.json`!'
54
- input = get_input.call(' Do you want to rerun `vue create?`', 'yN')
55
- end
56
- pm.exec('vue create', '', "-n -m #{pm.package_manager} .") if input == 'y'
57
-
58
- # 3. dev-dependencies
59
- package = JSON.parse(pack.read)
60
- dev_deps = package['devDependencies']
61
- dd = %w[webpack-assets-manifest js-yaml].find_all do |dep|
62
- !dev_deps.key?(dep)
63
- end
64
- pm.add "-D #{dd.join(' ')}" if dd.any?
65
-
66
- # 4. remove `src` folder
67
- src = root.join('src')
68
- if src.exist? && src.directory?
69
- puts 'Detected `src` folder (should be generated by vue-cli)'
70
- input = get_input.call(' Do you want to delete src folder?')
71
- FileUtils.rm_rf src if input == 'y'
72
- end
73
-
74
- # 5. copy sample codes
75
- input = get_input.call('Do you want to copy demo code?', 'yN')
76
- FileUtils.cp_r(src_dir.join('app'), root) if input == 'y'
77
-
78
- # 6. config files
79
- FileUtils.cp(src_dir.join('vue.rails.js'), "#{root}/")
80
- input = 'y'
81
- if root.join('vue.config.js').exist?
82
- puts 'Detected `vue.config.js`!'
83
- input = get_input.call(' Do you want to overwrite vue.config.js?', 'yN')
84
- end
85
- FileUtils.cp(src_dir.join('vue.config.js'), "#{root}/") if input == 'y'
86
-
87
- # 7. generate config/vue.yml
88
- yml_dest = root.join('config', 'vue.yml')
89
- if yml_dest.exist?
90
- puts 'Detected `config/vue.yml`!'
91
- input = get_input.call(' Do you want to overwrite config/vue.yml?')
92
- end
93
- if input == 'y'
94
- yml = src_dir.join('vue.yml').read
95
- yml = yml.sub('#PACKAGE_MANAGER', pm.package_manager.to_s)
96
- yml_dest.write(yml)
20
+ config = VueCli::Rails::Configuration.new
21
+ puts config.to_json
97
22
  end
98
23
  end
99
24
 
100
- desc 'Add pug template support: formats=pug,sass,less,stylus'
101
- task :support, [:formats] do |_t, args|
102
- pkgs = []
103
- args.formats.split(/\W/).each do |fmt|
104
- pkgs += case fmt
105
- when 'pug'
106
- %w[pug-plain-loader pug]
107
- when 'sass', 'scss'
108
- %w[sass-loader node-sass]
109
- when 'less'
110
- %w[less-loader less]
111
- when 'stylus'
112
- %w[stylus-loader stylus]
113
- else
114
- []
115
- end
116
- end
117
- throw(StandardError, '') if pkgs.empty?
118
-
25
+ desc 'Build assets: set [with_rails_assets] to invoke assets:precompile as well'
26
+ task :compile, [:with_rails_assets] => :environment do |_t, args|
119
27
  pm = VueCli::Rails::Configuration.instance.node_env
120
- pm.add "-D #{pkgs.join(' ')}"
28
+ pm.exec('vue-cli-service build', env: { 'RAILS_ENV' => ::Rails.env })
29
+ ::Rake::Task['assets:precompile'].invoke if args.with_rails_assets
121
30
  end
122
31
 
123
- desc 'Dump config/vue.yml to_json'
124
- task :json_config => :environment do
125
- config = VueCli::Rails::Configuration.new
126
- puts config.to_json
127
- end
128
-
129
- desc 'Bundle assets for production'
130
- task :compile => :environment do
131
- pm = VueCli::Rails::Configuration.instance.node_env
132
- pm.exec('vue-cli-service build', env: { 'RAILS_ENV' => 'production' })
32
+ desc 'Install Node way to run Rails dev server alongside webpack-dev-server'
33
+ task node_dev: :environment do
34
+ require_relative '../helpers/scripts/vue_command'
35
+ VueCommand.new.install_node_dev
133
36
  end
134
37
  end
File without changes
@@ -7,30 +7,67 @@ module VueCli
7
7
  end
8
8
 
9
9
  def node_env
10
+ raise(Error, 'Incorrect package_manager in config/vue.yml') if @package_manager.blank?
11
+
10
12
  @node_env ||= NodeEnv.new do |ne|
11
- ne.use! @config['package_manager']
13
+ ne.use! @package_manager
12
14
  end
13
15
  end
14
16
 
17
+ JS_CONFIG_CMD = %{
18
+ node -e "console.log(JSON.stringify(require('./vue.rails.js').getSettings(), null, 2))"
19
+ }.strip.freeze
20
+
15
21
  def load_config(config)
16
- r_env = ::Rails.env
17
- config = config[r_env]
18
- config['env'] = r_env
19
- config['root'] = @root.to_s
20
- config['entry'] = entry
21
-
22
- public_output_path = config['public_output_path'] || 'vue_assets'
23
- config['outputDir'] = File.join(resolve('public'), public_output_path)
24
- config['publicPath'] = File.join('/', public_output_path, '/')
25
- resolve_config(config, 'manifestOutput')
26
-
27
- cfg_alias = config['alias']
28
- cfg_alias.keys.each { |k| resolve_config(cfg_alias, k) }
29
- dev_server = config['devServer'] || {}
22
+ config = config[::Rails.env]
23
+ c = {
24
+ 'configureWebpack' => {
25
+ 'entry' => entry,
26
+ 'resolve' => {},
27
+ },
28
+ }
29
+ @package_manager = config['package_manager']
30
+ cw = c['configureWebpack']
31
+
32
+ c['env'] = ::Rails.env
33
+ c['root'] = @root.to_s
34
+ cw['output'] = config['js_output'] if config['js_output'].present?
35
+ c['manifestOutput'] = config['manifest_output']
36
+ unless c['manifestOutput'].presence
37
+ raise(Error, 'Incorrect manifest_output in config/vue.yml')
38
+ end
39
+
40
+ public_output_path = c['public_output_path'] || 'vue_assets'
41
+ c['outputDir'] = File.join(resolve('public'), public_output_path)
42
+ c['publicPath'] = File.join('/', public_output_path, '/')
43
+
44
+ %w[
45
+ launch_node
46
+ modern
47
+
48
+ filenameHashing
49
+ lintOnSave
50
+ runtimeCompiler
51
+ transpileDependencies
52
+ productionSourceMap
53
+ crossorigin
54
+ css
55
+ devServer
56
+ parallel
57
+ pwa
58
+ pluginOptions
59
+ ].each { |k| c[k] = config[k] if config.key?(k) }
60
+
61
+ resolve_config(c, 'manifestOutput')
62
+ config['alias']&.tap do |aliases|
63
+ aliases.each_key { |k| resolve_config(aliases, k) }
64
+ cw['resolve']['alias'] = aliases
65
+ end
66
+ dev_server = c['devServer'] || {}
30
67
  resolve_config(dev_server, 'contentBase')
31
68
 
32
- self.class.manifest_file = config['manifestOutput']
33
- @config = config
69
+ self.class.manifest_file = c['manifestOutput']
70
+ @config = c
34
71
  end
35
72
 
36
73
  def [](path)
@@ -47,7 +84,7 @@ module VueCli
47
84
  end
48
85
 
49
86
  def to_json
50
- @config.to_json
87
+ JSON.pretty_generate(@config)
51
88
  end
52
89
 
53
90
  def manifest_data
@@ -60,12 +97,12 @@ module VueCli
60
97
  end
61
98
 
62
99
  def manifest_file=(val)
63
- @manifest_file = Pathname.new(val)
100
+ @manifest_file = val ? Pathname.new(val) : nil
64
101
  end
65
102
 
66
103
  def manifest
67
104
  @manifest ||= OpenStruct.new(mtime: nil, data: {})
68
- if @manifest_file.exist? && @manifest.mtime != @manifest_file.mtime
105
+ if @manifest_file&.exist? && @manifest.mtime != @manifest_file.mtime
69
106
  @manifest.mtime = @manifest_file.mtime
70
107
  @manifest.data = JSON.parse(@manifest_file.read)
71
108
  end
@@ -89,7 +126,7 @@ module VueCli
89
126
 
90
127
  def resolve_config(config, key, default = nil)
91
128
  path = config[key] || default
92
- config[key] = resolve(path) if path.present?
129
+ config[key] = resolve(path) if path.present? && path.is_a?(String)
93
130
  end
94
131
  end
95
132
  end
@@ -12,9 +12,9 @@ module VueCli
12
12
 
13
13
  def perform_request(env)
14
14
  if env['PATH_INFO'].start_with?(@assets_path)
15
- env["HTTP_HOST"] = env["HTTP_X_FORWARDED_HOST"] = env["HTTP_X_FORWARDED_SERVER"] = @host
16
- env["HTTP_X_FORWARDED_PROTO"] = env["HTTP_X_FORWARDED_SCHEME"] = 'http'
17
- env["SCRIPT_NAME"] = ''
15
+ env['HTTP_HOST'] = env['HTTP_X_FORWARDED_HOST'] = env['HTTP_X_FORWARDED_SERVER'] = @host
16
+ env['HTTP_X_FORWARDED_PROTO'] = env['HTTP_X_FORWARDED_SCHEME'] = 'http'
17
+ env['SCRIPT_NAME'] = ''
18
18
  super(env)
19
19
  else
20
20
  @app.call(env)
@@ -1,17 +1,13 @@
1
1
  module VueCli
2
2
  module Rails
3
3
  require 'vue_cli/rails/helper'
4
- USE_PROXY_MIDDLEWARE = ::Rails.env.development? && defined?(::Rails::Server)
5
- require 'vue_cli/rails/dev_server_proxy' if USE_PROXY_MIDDLEWARE
6
4
 
7
5
  class Engine < ::Rails::Engine
8
6
  initializer 'vue_cli' do |app|
9
- if USE_PROXY_MIDDLEWARE
7
+ if ::Rails.env.development? && defined?(::Rails::Server)
8
+ require 'vue_cli/rails/dev_server_proxy'
10
9
  app.middleware.insert_before 0, DevServerProxy
11
- fork do
12
- config = Configuration.instance
13
- config.node_env.exec(config['launch_node'] || 'vue-cli-service serve')
14
- end
10
+ Engine.start_wds! if ENV['NO_WEBPACK_DEV_SERVER'].blank?
15
11
  end
16
12
 
17
13
  ::ActiveSupport.on_load :action_controller do
@@ -22,6 +18,19 @@ module VueCli
22
18
  include Helper
23
19
  end
24
20
  end
21
+
22
+ def self.start_wds!
23
+ fork do
24
+ config = Configuration.instance
25
+ port = config['devServer']&.dig('port')
26
+ if port
27
+ running = `lsof -i:#{port} -sTCP:LISTEN -Pn`&.chop.presence&.split("\n")
28
+ pid = running&.dig(1)&.split(/\s+/, 3)&.dig(1)
29
+ Process.kill('INT', pid.to_i) if pid.present?
30
+ end
31
+ config.node_env.exec(config['launch_dev_service'] || 'vue-cli-service serve')
32
+ end
33
+ end
25
34
  end
26
35
  end
27
36
  end
File without changes
@@ -8,6 +8,16 @@ module VueCli
8
8
  yield(self) if block_given?
9
9
  end
10
10
 
11
+ def use!(manager)
12
+ @pm = manager.to_sym
13
+ raise(ArgumentError, "Unsupported manager: #{@pm}") unless %i[npm yarn].include?(@pm)
14
+ raise(VueCli::Rails::Error, "Not installed: #{@pm}") unless try(:"#{@pm}?")
15
+ end
16
+
17
+ def reset
18
+ @versions = {}
19
+ end
20
+
11
21
  NODE_BIN_LIST.each do |bin|
12
22
  define_method :"#{bin}_version" do
13
23
  get_version_of(bin)
@@ -18,27 +28,21 @@ module VueCli
18
28
  end
19
29
  end
20
30
 
21
- def use!(pm)
22
- @pm = pm.to_sym
23
- raise(ArgumentError, "Unsupported manager: #{@pm}") unless %i[npm yarn].include?(@pm)
24
- raise(VueCli::Rails::Error, "Not installed: #{@pm}") unless self.try(:"#{@pm}?")
25
- end
26
-
27
31
  def package_manager
28
32
  @pm
29
33
  end
30
34
 
31
35
  def exec(command, args = nil, extra = nil, env: {})
32
36
  cmd = COMMAND_LINE[command.to_sym] || {}
33
- if @pm == :yarn && cmd[:yarn]
34
- cmd = cmd[:yarn]
35
- elsif @pm == :npm && cmd[:npm]
36
- cmd = cmd[:npm]
37
- elsif cmd[:npx]
38
- cmd = @pm == :yarn ? "yarn exec #{cmd[:npx]}" : "npx #{cmd[:npx]}"
39
- else
40
- cmd = @pm == :yarn ? "yarn exec #{command}" : "npx #{command}"
41
- end
37
+ cmd = if @pm == :yarn && cmd[:yarn]
38
+ cmd[:yarn]
39
+ elsif @pm == :npm && cmd[:npm]
40
+ cmd[:npm]
41
+ elsif cmd[:npx]
42
+ @pm == :yarn ? "yarn exec #{cmd[:npx]}" : "npx #{cmd[:npx]}"
43
+ else
44
+ @pm == :yarn ? "yarn exec #{command}" : "npx #{command}"
45
+ end
42
46
 
43
47
  cmd = "#{cmd} #{args}" if args.present?
44
48
  cmd = "#{cmd} #{@pm == :yarn ? '-- ' : ''}#{extra}" if extra.present?
@@ -49,11 +53,15 @@ module VueCli
49
53
  COMMAND_LINE = {
50
54
  add: {
51
55
  yarn: 'yarn add',
52
- npm: 'npm i -S',
56
+ npm: 'npm i',
53
57
  },
54
58
  global_add: {
55
59
  yarn: 'yarn global add',
56
- npm: 'npm i -g'
60
+ npm: 'npm i -g',
61
+ },
62
+ install: {
63
+ yarn: '',
64
+ npm: 'npm i',
57
65
  },
58
66
  }.freeze
59
67
 
@@ -66,14 +74,14 @@ module VueCli
66
74
  def get_version_of(bin)
67
75
  return @versions[bin] if @versions.key?(bin)
68
76
 
69
- r = `#{bin} --version`.strip.presence rescue nil
70
- @versions[bin] = r && r.start_with?('v') ? r[1..-1] : r
77
+ r = begin
78
+ `#{bin} --version`.strip.presence
79
+ rescue StandardError
80
+ nil
81
+ end
82
+ @versions[bin] = r&.start_with?('v') ? r[1..-1] : r
71
83
  @versions[bin]
72
84
  end
73
-
74
- def version_ge?(v1, v2)
75
- Gem::Version.new(v1) >= Gem::Version.new(v2)
76
- end
77
85
  end
78
86
  end
79
87
  end
@@ -1,5 +1,5 @@
1
1
  module VueCli
2
2
  module Rails
3
- VERSION = "0.1.4"
3
+ VERSION = '0.1.6'.freeze
4
4
  end
5
5
  end
data/lib/vue_cli/rails.rb CHANGED
@@ -1,4 +1,4 @@
1
- require "vue_cli/rails/version"
1
+ require 'vue_cli/rails/version'
2
2
  require 'vue_cli/rails/configuration'
3
3
  require 'vue_cli/rails/node_env'
4
4
 
data/tmp/.keep ADDED
File without changes
@@ -1,30 +1,30 @@
1
-
2
- lib = File.expand_path("../lib", __FILE__)
1
+ lib = File.expand_path('lib', __dir__)
3
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
- require "vue_cli/rails/version"
3
+ require 'vue_cli/rails/version'
5
4
 
6
5
  Gem::Specification.new do |spec|
7
- spec.name = "vue_cli-rails"
6
+ spec.name = 'vue_cli-rails'
8
7
  spec.version = VueCli::Rails::VERSION
9
- spec.authors = ["James Chen"]
10
- spec.email = ["egustc@gmail.com"]
8
+ spec.authors = ['James Chen']
9
+ spec.email = ['egustc@gmail.com']
11
10
 
12
- spec.summary = %q{Get vue-cli working with Rails}
13
- spec.homepage = "https://github.com/eGust/vue_cli-rails"
14
- spec.license = "MIT"
11
+ spec.summary = 'Get vue-cli working with Rails'
12
+ spec.homepage = 'https://github.com/eGust/vue_cli-rails'
13
+ spec.license = 'MIT'
15
14
 
16
- spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
15
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
17
16
  `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
18
17
  end
19
- spec.require_paths = ["lib"]
18
+ spec.require_paths = ['lib']
20
19
 
21
- spec.required_ruby_version = ">= 2.2"
20
+ spec.required_ruby_version = '>= 2.3'
22
21
 
23
- spec.add_dependency "activesupport", ">= 4.2"
24
- spec.add_dependency "railties", ">= 4.2"
25
- spec.add_dependency "rack-proxy", ">= 0.6"
22
+ spec.add_dependency 'activesupport', '>= 4.2'
23
+ spec.add_dependency 'rack-proxy', '>= 0.6'
24
+ spec.add_dependency 'railties', '>= 4.2'
26
25
 
27
- spec.add_development_dependency "bundler", "~> 1.12"
28
- spec.add_development_dependency "rake", "~> 10.0"
29
- spec.add_development_dependency "rspec", "~> 3.0"
26
+ spec.add_development_dependency 'bundler', '~> 1.12'
27
+ spec.add_development_dependency 'pry-byebug'
28
+ spec.add_development_dependency 'rake', '~> 10.0'
29
+ spec.add_development_dependency 'rspec', '~> 3.0'
30
30
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vue_cli-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-02-26 00:00:00.000000000 Z
11
+ date: 2019-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -25,33 +25,33 @@ dependencies:
25
25
  - !ruby/object:Gem::Version
26
26
  version: '4.2'
27
27
  - !ruby/object:Gem::Dependency
28
- name: railties
28
+ name: rack-proxy
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '4.2'
33
+ version: '0.6'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '4.2'
40
+ version: '0.6'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rack-proxy
42
+ name: railties
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0.6'
47
+ version: '4.2'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: '0.6'
54
+ version: '4.2'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,6 +66,20 @@ dependencies:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
68
  version: '1.12'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry-byebug
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rake
71
85
  requirement: !ruby/object:Gem::Requirement
@@ -103,6 +117,7 @@ extra_rdoc_files: []
103
117
  files:
104
118
  - ".gitignore"
105
119
  - ".rspec"
120
+ - ".rubocop.yml"
106
121
  - ".travis.yml"
107
122
  - Gemfile
108
123
  - Gemfile.lock
@@ -111,6 +126,13 @@ files:
111
126
  - Rakefile
112
127
  - bin/console
113
128
  - bin/setup
129
+ - lib/helpers/lib.rb
130
+ - lib/helpers/lib/cmd.rb
131
+ - lib/helpers/lib/common.rb
132
+ - lib/helpers/lib/input_loop.rb
133
+ - lib/helpers/scripts/install_rails.rb
134
+ - lib/helpers/scripts/vue_command.rb
135
+ - lib/helpers/scripts/vue_create.rb
114
136
  - lib/source/app/assets/vue/components/layouts/App.vue
115
137
  - lib/source/app/assets/vue/components/layouts/index.js
116
138
  - lib/source/app/assets/vue/components/views/Bar.vue
@@ -133,6 +155,7 @@ files:
133
155
  - lib/vue_cli/rails/helper.rb
134
156
  - lib/vue_cli/rails/node_env.rb
135
157
  - lib/vue_cli/rails/version.rb
158
+ - tmp/.keep
136
159
  - vue_cli-rails.gemspec
137
160
  homepage: https://github.com/eGust/vue_cli-rails
138
161
  licenses:
@@ -146,7 +169,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
146
169
  requirements:
147
170
  - - ">="
148
171
  - !ruby/object:Gem::Version
149
- version: '2.2'
172
+ version: '2.3'
150
173
  required_rubygems_version: !ruby/object:Gem::Requirement
151
174
  requirements:
152
175
  - - ">="