Skip to content

Commit

Permalink
chore: Move esbuild|rollup|webpack to devDependencies instead of depe…
Browse files Browse the repository at this point in the history
…ndencies (#194)
  • Loading branch information
saltyshiomix authored Jul 29, 2024
1 parent 3b3ffbc commit 24b66e8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/install/esbuild/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
apply "#{__dir__}/../install_procfile.rb"

say "Install esbuild"
run "yarn add esbuild"
run "yarn add --dev esbuild"

say "Add build script"
build_script = "esbuild app/javascript/*.* --bundle --sourcemap --format=esm --outdir=app/assets/builds --public-path=/assets"
Expand Down
2 changes: 1 addition & 1 deletion lib/install/rollup/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

say "Install rollup with config"
copy_file "#{__dir__}/rollup.config.js", "rollup.config.js"
run "yarn add rollup @rollup/plugin-node-resolve"
run "yarn add --dev rollup @rollup/plugin-node-resolve"

say "Add build script"
build_script = "rollup -c --bundleConfigAsCjs rollup.config.js"
Expand Down
2 changes: 1 addition & 1 deletion lib/install/webpack/install.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

say "Install Webpack with config"
copy_file "#{__dir__}/webpack.config.js", "webpack.config.js"
run "yarn add webpack webpack-cli"
run "yarn add --dev webpack webpack-cli"

say "Add build script"
build_script = "webpack --config webpack.config.js"
Expand Down

0 comments on commit 24b66e8

Please sign in to comment.