setup_script_generator 0.4.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.tool-versions +1 -1
- data/README.md +1 -1
- data/lib/setup_script_generator/templates/provisions/node.sh +12 -5
- data/lib/setup_script_generator/templates/provisions/overmind.sh +6 -0
- data/lib/setup_script_generator/templates/provisions/rails.sh +7 -0
- data/lib/setup_script_generator/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e4802f8dbb397d7c66f030b2228f5aa3b91fc1b7cf1a7a9ef494a776bb95fb0
|
4
|
+
data.tar.gz: 0ce91133243bf727d1d44a0fd9a946c164880f96f694904201254112a0e3a90c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2527b8c517f829b9840d74d62878f200338492579607b59e0409de5ced554f93580db629be9e2f0399b268ba72dfc1628b5f145eec96de3c3534cfe0adec53bd
|
7
|
+
data.tar.gz: c8ad9aaaaecc49b60839c348d85fe724a86c8197675d4b48b1b4fd8ff577f4cf50d0c3bddbe8fe23308fcc2b207523c63c927f5f1ef1e60b053c658af11b613f
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby
|
1
|
+
ruby 3.0.2
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ provision-node() {
|
|
10
10
|
fi
|
11
11
|
|
12
12
|
if [[ -z $REQUIRED_NODE_VERSION ]]; then
|
13
|
-
error
|
13
|
+
error 'Could not determine required Node version for this project.'
|
14
14
|
print-wrapped "\
|
15
15
|
Your project needs to include either a valid .tool-versions file with a 'nodejs'
|
16
16
|
line or a valid .node-version or .nvimrc file."
|
@@ -51,17 +51,24 @@ When you're done, close and re-open this terminal tab and re-run this script."
|
|
51
51
|
}
|
52
52
|
|
53
53
|
ensure-project-node-dependencies-installed() {
|
54
|
-
banner 'Installing Node dependencies'
|
55
|
-
|
56
54
|
if [[ -f package-lock.json ]]; then
|
55
|
+
banner 'Installing Node dependencies'
|
57
56
|
npm install
|
58
57
|
elif [[ -f yarn.lock ]]; then
|
58
|
+
if ! type yarn &>/dev/null; then
|
59
|
+
banner 'Installing Yarn 1'
|
60
|
+
npm install -g yarn
|
61
|
+
fi
|
62
|
+
banner 'Installing Node dependencies'
|
59
63
|
yarn install
|
60
64
|
else
|
61
65
|
error "Sorry, I'm not sure how to install your dependencies."
|
62
66
|
print-wrapped "\
|
63
|
-
|
64
|
-
yet
|
67
|
+
It doesn't look like you have a package-lock.json or yarn.lock in your project
|
68
|
+
yet. I'm not sure which package manager you plan on using, so you'll need to run
|
69
|
+
either \`npm install\` or \`yarn install\` once first. Additionally, if you want
|
70
|
+
to use Yarn 2, then now is the time to switch to that. Then you can re-run this
|
71
|
+
script."
|
65
72
|
exit 1
|
66
73
|
fi
|
67
74
|
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: setup_script_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Elliot Winkler
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email:
|
@@ -34,7 +34,9 @@ files:
|
|
34
34
|
- lib/setup_script_generator/templates/provisions/elm.sh
|
35
35
|
- lib/setup_script_generator/templates/provisions/heroku.sh
|
36
36
|
- lib/setup_script_generator/templates/provisions/node.sh
|
37
|
+
- lib/setup_script_generator/templates/provisions/overmind.sh
|
37
38
|
- lib/setup_script_generator/templates/provisions/postgresql.sh
|
39
|
+
- lib/setup_script_generator/templates/provisions/rails.sh
|
38
40
|
- lib/setup_script_generator/templates/provisions/ruby.sh
|
39
41
|
- lib/setup_script_generator/templates/provisions/sqlite3.sh
|
40
42
|
- lib/setup_script_generator/templates/skeleton.sh.erb
|
@@ -63,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
63
65
|
- !ruby/object:Gem::Version
|
64
66
|
version: '0'
|
65
67
|
requirements: []
|
66
|
-
rubygems_version: 3.
|
68
|
+
rubygems_version: 3.2.22
|
67
69
|
signing_key:
|
68
70
|
specification_version: 4
|
69
71
|
summary: Generate setup scripts for your projects.
|