[go: nahoru, domu]

Skip to content

Commit

Permalink
Use babel.config.js provided by webpacker 4.
Browse files Browse the repository at this point in the history
Get ready with vue on rails 1.0.0.beta1
  • Loading branch information
ytbryan committed Jan 7, 2019
1 parent e5df256 commit 5545a95
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 14 deletions.
13 changes: 0 additions & 13 deletions lib/installs/setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -56,19 +56,6 @@
insert_into_file Rails.root.join("package.json").to_s,
scripts, after: "\"private\": true,\n"

babelrc = <<-eos
"env": {
"test": {
"presets": [
["env", { "targets": { "node": "current" }}]
]
}
},
eos

insert_into_file Rails.root.join(".babelrc").to_s,
babelrc, before: " \"presets\": ["

# Insert locale.js as a default i18n and add second locale cn.yml
copy_file "#{__dir__}/../generators/templates/i18n/index.js", Rails.root.join("app/javascript/locales/locale.js").to_s
copy_file "#{__dir__}/../generators/templates/i18n/cn.yml", Rails.root.join("config/locales/cn.yml").to_s
Expand Down
2 changes: 1 addition & 1 deletion lib/vueonrails/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Vueonrails
VERSION = "0.3.0"
VERSION = "1.0.0.beta1"
end

0 comments on commit 5545a95

Please sign in to comment.