Skip to content
Open
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: 2 additions & 0 deletions lib/hanami/cli/generators/gem/app/setup.erb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ announce() {
announce "Running bundle install..."
bundle check || bundle install

<%- if generate_assets? -%>
announce "\nRunning npm install..."
npm install
<%- end -%>

<%- if generate_db? -%>
announce "\nPreparing the database..."
Expand Down
3 changes: 3 additions & 0 deletions spec/unit/hanami/cli/commands/gem/new_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1430,6 +1430,9 @@ module Types
# package.json
expect(fs.exist?("package.json")).to be(false)

# bin/setup
expect(fs.read("bin/setup")).to_not match(/npm install/)

# Procfile.dev
expect(fs.read("Procfile.dev")).to_not match(/hanami assets watch/)

Expand Down