theme-juice 0.24.2 → 0.24.3
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/lib/theme-juice/config.rb +3 -0
- data/lib/theme-juice/man/tj +2 -2
- data/lib/theme-juice/man/tj.txt +19 -18
- data/lib/theme-juice/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a9e5e8d2918da5c649b9a3ce22b964400561cd5
|
4
|
+
data.tar.gz: b683264274d48d6854493af39b94c0bfeb3a1704
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1877fc5ad0fe261dcdf76bcc5aeee0114b4ae77afa4bda3ebd4b08c14190cf8a9d06599ba2eb042e3544947da8b0779ef3688858bcd729b343bbc05483091318
|
7
|
+
data.tar.gz: 1995177e016edbdb0bde953822f5f29960ad9ffcfa22d38614263ab9489b483bb1f7f45e5858442274ec84a8a68122cd8592255d6e0e835e0549fa30b4203a96
|
data/lib/theme-juice/config.rb
CHANGED
@@ -11,6 +11,9 @@ module ThemeJuice
|
|
11
11
|
def command(cmd, *args)
|
12
12
|
return if @project.no_config
|
13
13
|
|
14
|
+
args.map { |arg|
|
15
|
+
arg.reject! { |a| /^-/ =~ a } if arg.is_a?(Array) }
|
16
|
+
|
14
17
|
commands.fetch("#{cmd}") {
|
15
18
|
@io.error "Command '#{cmd}' not found in config", NotImplementedError }
|
16
19
|
.each { |c| cmds = format_command(c, *args)
|
data/lib/theme-juice/man/tj
CHANGED
@@ -29,11 +29,11 @@ Force directory prefix for project in VM*
|
|
29
29
|
.
|
30
30
|
.TP
|
31
31
|
\fB\-\-from\-path\fR, \fB\-\-in\-path\fR=\fIpath\fR
|
32
|
-
Run Juicefile(5) commands from the passed path instead of the
|
32
|
+
Run Juicefile(5) commands from the passed path instead of from the current directory\.
|
33
33
|
.
|
34
34
|
.TP
|
35
35
|
\fB\-\-from\-srv\fR, \fB\-\-in\-srv\fR=\fIpath\fR
|
36
|
-
Run Juicefile(5) commands from the passed srv path instead of the
|
36
|
+
Run Juicefile(5) commands from the passed srv path instead of from the current host directory path when using the \fB\-\-inside\-vm\fR flag\.
|
37
37
|
.
|
38
38
|
.TP
|
39
39
|
\fB\-\-inside\-vm\fR, \fB\-\-in\-vm\fR
|
data/lib/theme-juice/man/tj.txt
CHANGED
@@ -22,19 +22,20 @@ GLOBAL OPTIONS
|
|
22
22
|
Force directory prefix for project in VM*
|
23
23
|
|
24
24
|
--from-path, --in-path=path
|
25
|
-
Run Juicefile(5) commands
|
26
|
-
|
25
|
+
Run Juicefile(5) commands from the passed path instead of from
|
26
|
+
the current directory.
|
27
27
|
|
28
28
|
--from-srv, --in-srv=path
|
29
29
|
Run Juicefile(5) commands from the passed srv path instead of
|
30
|
-
the
|
30
|
+
from the current host directory path when using the --inside-vm
|
31
|
+
flag.
|
31
32
|
|
32
33
|
--inside-vm, --in-vm
|
33
|
-
Run
|
34
|
+
Run Juicefile(5) commands from inside of the virtual machine
|
34
35
|
instead of your host machine.
|
35
36
|
|
36
37
|
--yolo, --yes
|
37
|
-
Say
|
38
|
+
Say yes to anything and everything, and maybe even get a few
|
38
39
|
surprises
|
39
40
|
|
40
41
|
--boring
|
@@ -107,14 +108,14 @@ SECONDARY COMMANDS
|
|
107
108
|
List all projects
|
108
109
|
|
109
110
|
vm, vagrant, vvv=[command[,command]...]
|
110
|
-
Manage
|
111
|
-
proxied
|
111
|
+
Manage development environment via vagrant(1). Commands are
|
112
|
+
proxied to your Vagrant installation so that they can be run
|
112
113
|
from any directory.
|
113
114
|
|
114
115
|
CONFIG COMMANDS
|
115
|
-
These
|
116
|
+
These run the corresponding command from your project's config file.
|
116
117
|
They accept any number of arguments, since the behavior and handling of
|
117
|
-
input
|
118
|
+
input is defined within the config file itself. Below are the commands
|
118
119
|
defined within the Theme Juice starter template.
|
119
120
|
|
120
121
|
install=[arg[,arg]...]
|
@@ -142,11 +143,11 @@ CONFIG COMMANDS
|
|
142
143
|
Manage and run project tests
|
143
144
|
|
144
145
|
CONFIG FILE
|
145
|
-
A
|
146
|
-
build
|
147
|
-
command
|
146
|
+
A YAML Juicefile(5) configuration can be used to store commonly-used
|
147
|
+
build scripts (and deploy(1) info), similar to npm(1) scripts. Each
|
148
|
+
command block sequence can be mapped to an individual project's build
|
148
149
|
tool, allowing a streamlined set of commands to be used across multiple
|
149
|
-
projects
|
150
|
+
projects that utilize different tools. Below are descriptions for the
|
150
151
|
default commands within the Theme Juice starter template's Juicefile.
|
151
152
|
|
152
153
|
commands
|
@@ -176,7 +177,7 @@ CONFIG FILE
|
|
176
177
|
commands.test
|
177
178
|
Command used to manage and run project tests
|
178
179
|
|
179
|
-
Placeholder
|
180
|
+
Placeholder arguments can be used within any command block sequence to
|
180
181
|
allow splat or indexed arguments to be passed to the corresponding com-
|
181
182
|
mand when executed.
|
182
183
|
|
@@ -186,8 +187,8 @@ CONFIG FILE
|
|
186
187
|
%argN%, %argumentN%
|
187
188
|
Where n is the argument index e.g. cmd %arg1% | cmd %arg2%
|
188
189
|
|
189
|
-
When
|
190
|
-
.tj.yaml
|
190
|
+
When naming your configuration file, use the recommended Juicefile, or
|
191
|
+
.tj.yaml naming convention. The raw filename regex matcher is below if
|
191
192
|
you want to be a little different.
|
192
193
|
|
193
194
|
/^(((\.)?(tj)|((J|j)uicefile))(\.y(a)?ml)?$)/
|
@@ -195,7 +196,7 @@ CONFIG FILE
|
|
195
196
|
ENVIRONMENT
|
196
197
|
All of the global options have a corresponding ENV variable that can be
|
197
198
|
set to permanently use the specified value each time tj(1) is run. This
|
198
|
-
is
|
199
|
+
is useful if you're using an alternate vagrant(1) box, or if you need
|
199
200
|
to disable certain features due to limited support i.e. on Windows.
|
200
201
|
|
201
202
|
TJ_VM_BOX=repository
|
@@ -211,7 +212,7 @@ ENVIRONMENT
|
|
211
212
|
Force directory prefix for project in VM
|
212
213
|
|
213
214
|
TJ_YOLO=bool
|
214
|
-
Say
|
215
|
+
Say yes to anything and everything, and maybe even get a few
|
215
216
|
surprises
|
216
217
|
|
217
218
|
TJ_BORING=bool
|
data/lib/theme-juice/version.rb
CHANGED