Skip to content

Commit

Permalink
Create .node-version file
Browse files Browse the repository at this point in the history
  • Loading branch information
lovro-bikic committed Jan 15, 2022
1 parent 7549043 commit a55b9f3
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions template.rb
Original file line number Diff line number Diff line change
Expand Up @@ -233,9 +233,9 @@
create_file 'bin/deploy', BIN_DEPLOY, force: true
chmod 'bin/deploy', 0755, verbose: false

get("#{BASE_URL}/build.yml", '.github/workflows/build.yml')
get("#{BASE_URL}/deploy-staging.yml", '.github/workflows/deploy-staging.yml')
get("#{BASE_URL}/deploy-production.yml", '.github/workflows/deploy-production.yml')
# get("#{BASE_URL}/build.yml", '.github/workflows/build.yml')
# get("#{BASE_URL}/deploy-staging.yml", '.github/workflows/deploy-staging.yml')
# get("#{BASE_URL}/deploy-production.yml", '.github/workflows/deploy-production.yml')

# bundler config
BUNDLER_CI_BUILD_CONFIG = <<~HEREDOC.strip_heredoc
Expand Down Expand Up @@ -608,6 +608,10 @@ def run

get("#{BASE_URL}/.slim-lint.yml", '.slim-lint.yml')

node_version = `node -v`.chomp.sub('v', '')

create_file '.node-version', node_version

PACKAGE_JSON_FILE = <<~HEREDOC
{
"name": "#{app_name}",
Expand All @@ -622,6 +626,9 @@ def run
},
"eslintConfig": {
"extends": "@infinumrails/eslint-config-js"
},
"engines": {
"node": "#{node_version}"
}
}
HEREDOC
Expand Down

0 comments on commit a55b9f3

Please sign in to comment.