Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install some npm libraries as devDependencies #1208

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/install/coffee.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"#{Webpacker.config.source_entry_path}/hello_coffee.coffee"

say "Installing all Coffeescript dependencies"
run "yarn add [email protected] coffee-loader"
run "yarn add --dev [email protected] coffee-loader"

say "Webpacker now supports Coffeeescript 🎉", :green
4 changes: 2 additions & 2 deletions lib/install/elm.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"#{Webpacker.config.source_path}/Main.elm"

say "Installing all Elm dependencies"
run "yarn add elm elm-webpack-loader"
run "yarn add --dev elm-hot-loader"
run "yarn add elm"
run "yarn add --dev elm-hot-loader elm-webpack-loader"
run "yarn run elm package install -- --yes"

say "Updating webpack paths to include .elm file extension"
Expand Down
2 changes: 1 addition & 1 deletion lib/install/erb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@
"#{Webpacker.config.source_entry_path}/hello_erb.js.erb"

say "Installing all Erb dependencies"
run "yarn add rails-erb-loader"
run "yarn add --dev rails-erb-loader"

say "Webpacker now supports Erb in JS 🎉", :green
2 changes: 1 addition & 1 deletion lib/install/typescript.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@
"#{Webpacker.config.source_entry_path}/hello_typescript.ts"

say "Installing all typescript dependencies"
run "yarn add typescript ts-loader #{additional_packages}"
run "yarn add --dev typescript ts-loader #{additional_packages}"

say "Webpacker now supports typescript 🎉", :green
3 changes: 2 additions & 1 deletion lib/install/vue.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"#{Webpacker.config.source_path}/app.vue"

say "Installing all Vue dependencies"
run "yarn add vue vue-loader vue-template-compiler"
run "yarn add vue"
run "yarn add --dev vue-loader vue-template-compiler"

say "Webpacker now supports Vue.js 🎉", :green