theme-juice 0.5.0 → 0.6.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/README.md +3 -3
- data/bin/tj +5 -13
- data/lib/theme-juice/cli.rb +172 -343
- data/lib/theme-juice/command.rb +14 -0
- data/lib/theme-juice/commands/create.rb +17 -0
- data/lib/theme-juice/commands/delete.rb +17 -0
- data/lib/theme-juice/commands/install.rb +17 -0
- data/lib/theme-juice/commands/list.rb +17 -0
- data/lib/theme-juice/commands/subcommand.rb +17 -0
- data/lib/theme-juice/environment.rb +14 -0
- data/lib/theme-juice/interaction.rb +446 -0
- data/lib/theme-juice/interactions/create_site_options.rb +288 -0
- data/lib/theme-juice/interactions/delete_site_options.rb +58 -0
- data/lib/theme-juice/interactions/teejay.rb +6 -0
- data/lib/theme-juice/service.rb +190 -0
- data/lib/theme-juice/services/config_file.rb +44 -0
- data/lib/theme-juice/services/create_site.rb +387 -0
- data/lib/theme-juice/services/delete_site.rb +114 -0
- data/lib/theme-juice/services/list_sites.rb +40 -0
- data/lib/theme-juice/version.rb +1 -1
- data/lib/theme-juice.rb +19 -6
- metadata +33 -6
- data/lib/theme-juice/executor.rb +0 -804
- data/lib/theme-juice/ui.rb +0 -227
- data/lib/theme-juice/utilities.rb +0 -56
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 33c6412ef5cad2c57edc03f4b83514258076a76e
|
4
|
+
data.tar.gz: a9dd752a864bfdbe61e4ef3aed537e2eee2c8a79
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c37e19174cc71fda9ee05c3b94e6b6056d46bbb057846931ec18573752afa7e3e42f5bf44b1104a9dcb9e64f4b2bc0da823b7f7371a4214079e2d26b01608048
|
7
|
+
data.tar.gz: 6f0a2d59e44f8ea18fc12fb8db17a3479801d335ffcf2609a195fc3c12542603792c1e83be2fba63187bbb7820bd79ac225d4d197a3c7d4ae0dd66e880a240f4
|
data/README.md
CHANGED
@@ -23,7 +23,7 @@ commands:
|
|
23
23
|
|
24
24
|
_Note: If you use a starter theme that doesn't have a `tj.yml` file, you'll be prompted through a series of steps in order to create one._
|
25
25
|
|
26
|
-
|
26
|
+
### Command options:
|
27
27
|
| Option | Usage |
|
28
28
|
|:--------- |:----------------------------------------------------------------------------- |
|
29
29
|
| `watch` | Command to be aliased when you run `tj watch` for bulding assets |
|
@@ -39,7 +39,7 @@ List all commands for `tj`.
|
|
39
39
|
tj
|
40
40
|
```
|
41
41
|
|
42
|
-
|
42
|
+
#### Global flags:
|
43
43
|
| Flag | Type | Description |
|
44
44
|
|:-------------------------|:------ |:------------------------------------------ |
|
45
45
|
| `-nu, [--no-unicode]` | Bool | Disable all unicode characters |
|
@@ -64,7 +64,7 @@ tj create [<SITE-NAME>] # Aliases: new, add, build, make
|
|
64
64
|
| `-b, [--bare]` | Bool | Create a VVV site without a starter theme |
|
65
65
|
| `-s, [--site=SITE]` | String | Name of the development site |
|
66
66
|
| `-l, [--location=LOCATION]` | Path | Location of the local site |
|
67
|
-
| `-t, [--theme=THEME]` | URL | Starter theme to install
|
67
|
+
| `-t, [--theme=THEME]` | URL | Starter theme to install |
|
68
68
|
| `-u, [--url=URL]` | URL | Development URL of the site (must end in `.dev`) |
|
69
69
|
| `-r, [--repository]` | String | Initialize a new Git remote repository |
|
70
70
|
| `[--skip-repo]` | Bool | Skip repository prompts and set to `none` |
|
data/bin/tj
CHANGED
@@ -1,18 +1,6 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
# encoding: UTF-8
|
3
3
|
|
4
|
-
require "thor"
|
5
|
-
|
6
|
-
Signal.trap "INT" do
|
7
|
-
ThemeJuice::UI.speak "Bye bye!", {
|
8
|
-
color: :yellow,
|
9
|
-
icon: :general,
|
10
|
-
newline: true
|
11
|
-
}
|
12
|
-
|
13
|
-
exit 130
|
14
|
-
end
|
15
|
-
|
16
4
|
begin
|
17
5
|
require_relative "../lib/theme-juice"
|
18
6
|
rescue LoadError => err
|
@@ -20,4 +8,8 @@ rescue LoadError => err
|
|
20
8
|
exit 1
|
21
9
|
end
|
22
10
|
|
23
|
-
|
11
|
+
Signal.trap "INT" do
|
12
|
+
::ThemeJuice::Interaction.goodbye
|
13
|
+
end
|
14
|
+
|
15
|
+
::ThemeJuice::CLI.start
|