wordless 1.1.5 → 2.2.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/.gitignore +1 -1
- data/.rubocop.yml +146 -0
- data/.ruby-version +1 -1
- data/.vscode/launch.json +74 -0
- data/.vscode/settings.json +4 -0
- data/Gemfile.lock +117 -0
- data/LICENSE +1 -1
- data/README.mdown +51 -69
- data/Rakefile +5 -3
- data/bin/rake +17 -0
- data/bin/rubocop +17 -0
- data/bin/setup.sh +1 -7
- data/exe/wordless +1 -1
- data/lib/wordless/cli.rb +8 -30
- data/lib/wordless/cli_helper.rb +3 -3
- data/lib/wordless/version.rb +1 -1
- data/lib/wordless/wordless_cli.rb +68 -67
- data/wordless.gemspec +24 -19
- metadata +58 -56
- data/.ruby-gemset +0 -1
- data/lib/wordless/compile_assets.php +0 -36
- data/lib/wordless/theme_builder.php +0 -23
- data/lib/wordless/wordless_bridge.php +0 -26
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a3bab08f145c2580453d64cb430ba5874949066
|
|
4
|
+
data.tar.gz: 18b42bd1421b5b56aa490c5a6733de1a36e88f14
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 92b6442dfd7bba9cf2ab98f148140a0011ec5633ab8e7a6804c8944c9fdd446e21a6e7b6282354553c819b8b6c439962ff5b98c3a5f42d2e93e99680f2bb7f1d
|
|
7
|
+
data.tar.gz: db415fffdacf5de128a399c355802ab29e3eabe83644f7e26e76a618ae8ab7e6f013c5e558053fce4ad7da1770f6c9214cd3ea1986c5cdb7ad51f4405ee0a8ef
|
data/.gitignore
CHANGED
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
AllCops:
|
|
2
|
+
TargetRubyVersion: 2.4
|
|
3
|
+
DisplayCopNames: true
|
|
4
|
+
DisplayStyleGuide: true
|
|
5
|
+
|
|
6
|
+
Exclude:
|
|
7
|
+
- 'bin/*'
|
|
8
|
+
- 'spec/fixtures/**/*'
|
|
9
|
+
|
|
10
|
+
Metrics/LineLength:
|
|
11
|
+
Max: 100
|
|
12
|
+
|
|
13
|
+
Metrics/MethodLength:
|
|
14
|
+
Max: 20
|
|
15
|
+
|
|
16
|
+
Metrics/ClassLength:
|
|
17
|
+
Max: 200
|
|
18
|
+
|
|
19
|
+
Metrics/BlockLength:
|
|
20
|
+
Exclude:
|
|
21
|
+
- 'spec/**/*_spec.rb'
|
|
22
|
+
- 'spec/factories/*.rb'
|
|
23
|
+
- '*.gemspec'
|
|
24
|
+
|
|
25
|
+
Metrics/CyclomaticComplexity:
|
|
26
|
+
Max: 10
|
|
27
|
+
|
|
28
|
+
Metrics/PerceivedComplexity:
|
|
29
|
+
Max: 10
|
|
30
|
+
|
|
31
|
+
Style/StringLiterals:
|
|
32
|
+
Enabled: false
|
|
33
|
+
EnforcedStyle: double_quotes
|
|
34
|
+
|
|
35
|
+
Style/Documentation:
|
|
36
|
+
Enabled: false
|
|
37
|
+
|
|
38
|
+
Style/FrozenStringLiteralComment:
|
|
39
|
+
Enabled: false
|
|
40
|
+
|
|
41
|
+
Metrics/AbcSize:
|
|
42
|
+
Max: 40
|
|
43
|
+
|
|
44
|
+
Lint/SuppressedException:
|
|
45
|
+
Enabled: false
|
|
46
|
+
|
|
47
|
+
Style/FormatStringToken:
|
|
48
|
+
Exclude:
|
|
49
|
+
- 'lib/wordless/wordless_cli.rb'
|
|
50
|
+
|
|
51
|
+
Layout/BeginEndAlignment: # (new in 0.91)
|
|
52
|
+
Enabled: true
|
|
53
|
+
Layout/EmptyLinesAroundAttributeAccessor: # (new in 0.83)
|
|
54
|
+
Enabled: true
|
|
55
|
+
Layout/SpaceAroundMethodCallOperator: # (new in 0.82)
|
|
56
|
+
Enabled: true
|
|
57
|
+
Lint/BinaryOperatorWithIdenticalOperands: # (new in 0.89)
|
|
58
|
+
Enabled: true
|
|
59
|
+
Lint/ConstantDefinitionInBlock: # (new in 0.91)
|
|
60
|
+
Enabled: true
|
|
61
|
+
Lint/DeprecatedOpenSSLConstant: # (new in 0.84)
|
|
62
|
+
Enabled: true
|
|
63
|
+
Lint/DuplicateElsifCondition: # (new in 0.88)
|
|
64
|
+
Enabled: true
|
|
65
|
+
Lint/DuplicateRequire: # (new in 0.90)
|
|
66
|
+
Enabled: true
|
|
67
|
+
Lint/DuplicateRescueException: # (new in 0.89)
|
|
68
|
+
Enabled: true
|
|
69
|
+
Lint/EmptyConditionalBody: # (new in 0.89)
|
|
70
|
+
Enabled: true
|
|
71
|
+
Lint/EmptyFile: # (new in 0.90)
|
|
72
|
+
Enabled: true
|
|
73
|
+
Lint/FloatComparison: # (new in 0.89)
|
|
74
|
+
Enabled: true
|
|
75
|
+
Lint/IdentityComparison: # (new in 0.91)
|
|
76
|
+
Enabled: true
|
|
77
|
+
Lint/MissingSuper: # (new in 0.89)
|
|
78
|
+
Enabled: true
|
|
79
|
+
Lint/MixedRegexpCaptureTypes: # (new in 0.85)
|
|
80
|
+
Enabled: true
|
|
81
|
+
Lint/OutOfRangeRegexpRef: # (new in 0.89)
|
|
82
|
+
Enabled: true
|
|
83
|
+
Lint/RaiseException: # (new in 0.81)
|
|
84
|
+
Enabled: true
|
|
85
|
+
Lint/SelfAssignment: # (new in 0.89)
|
|
86
|
+
Enabled: true
|
|
87
|
+
Lint/StructNewOverride: # (new in 0.81)
|
|
88
|
+
Enabled: true
|
|
89
|
+
Lint/TopLevelReturnWithArgument: # (new in 0.89)
|
|
90
|
+
Enabled: true
|
|
91
|
+
Lint/TrailingCommaInAttributeDeclaration: # (new in 0.90)
|
|
92
|
+
Enabled: true
|
|
93
|
+
Lint/UnreachableLoop: # (new in 0.89)
|
|
94
|
+
Enabled: true
|
|
95
|
+
Lint/UselessMethodDefinition: # (new in 0.90)
|
|
96
|
+
Enabled: true
|
|
97
|
+
Lint/UselessTimes: # (new in 0.91)
|
|
98
|
+
Enabled: true
|
|
99
|
+
Style/AccessorGrouping: # (new in 0.87)
|
|
100
|
+
Enabled: true
|
|
101
|
+
Style/BisectedAttrAccessor: # (new in 0.87)
|
|
102
|
+
Enabled: true
|
|
103
|
+
Style/CaseLikeIf: # (new in 0.88)
|
|
104
|
+
Enabled: true
|
|
105
|
+
Style/CombinableLoops: # (new in 0.90)
|
|
106
|
+
Enabled: true
|
|
107
|
+
Style/ExplicitBlockArgument: # (new in 0.89)
|
|
108
|
+
Enabled: true
|
|
109
|
+
Style/ExponentialNotation: # (new in 0.82)
|
|
110
|
+
Enabled: true
|
|
111
|
+
Style/GlobalStdStream: # (new in 0.89)
|
|
112
|
+
Enabled: true
|
|
113
|
+
Style/HashAsLastArrayItem: # (new in 0.88)
|
|
114
|
+
Enabled: true
|
|
115
|
+
Style/HashEachMethods: # (new in 0.80)
|
|
116
|
+
Enabled: true
|
|
117
|
+
Style/HashLikeCase: # (new in 0.88)
|
|
118
|
+
Enabled: true
|
|
119
|
+
Style/HashTransformKeys: # (new in 0.80)
|
|
120
|
+
Enabled: true
|
|
121
|
+
Style/HashTransformValues: # (new in 0.80)
|
|
122
|
+
Enabled: true
|
|
123
|
+
Style/KeywordParametersOrder: # (new in 0.90)
|
|
124
|
+
Enabled: true
|
|
125
|
+
Style/OptionalBooleanParameter: # (new in 0.89)
|
|
126
|
+
Enabled: true
|
|
127
|
+
Style/RedundantAssignment: # (new in 0.87)
|
|
128
|
+
Enabled: true
|
|
129
|
+
Style/RedundantFetchBlock: # (new in 0.86)
|
|
130
|
+
Enabled: true
|
|
131
|
+
Style/RedundantFileExtensionInRequire: # (new in 0.88)
|
|
132
|
+
Enabled: true
|
|
133
|
+
Style/RedundantRegexpCharacterClass: # (new in 0.85)
|
|
134
|
+
Enabled: true
|
|
135
|
+
Style/RedundantRegexpEscape: # (new in 0.85)
|
|
136
|
+
Enabled: true
|
|
137
|
+
Style/RedundantSelfAssignment: # (new in 0.90)
|
|
138
|
+
Enabled: true
|
|
139
|
+
Style/SingleArgumentDig: # (new in 0.89)
|
|
140
|
+
Enabled: true
|
|
141
|
+
Style/SlicingWithRange: # (new in 0.83)
|
|
142
|
+
Enabled: true
|
|
143
|
+
Style/SoleNestedConditional: # (new in 0.89)
|
|
144
|
+
Enabled: true
|
|
145
|
+
Style/StringConcatenation: # (new in 0.89)
|
|
146
|
+
Enabled: true
|
data/.ruby-version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
2.
|
|
1
|
+
2.4.1
|
data/.vscode/launch.json
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": "0.2.0",
|
|
3
|
+
"configurations": [
|
|
4
|
+
|
|
5
|
+
{
|
|
6
|
+
"name": "Debug Local File",
|
|
7
|
+
"type": "Ruby",
|
|
8
|
+
"request": "launch",
|
|
9
|
+
"cwd": "${workspaceRoot}",
|
|
10
|
+
"program": "${workspaceRoot}/main.rb"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
"name": "Listen for rdebug-ide",
|
|
14
|
+
"type": "Ruby",
|
|
15
|
+
"request": "attach",
|
|
16
|
+
"cwd": "${workspaceRoot}",
|
|
17
|
+
"remoteHost": "127.0.0.1",
|
|
18
|
+
"remotePort": "1234",
|
|
19
|
+
"remoteWorkspaceRoot": "${workspaceRoot}"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"name": "Rails server",
|
|
23
|
+
"type": "Ruby",
|
|
24
|
+
"request": "launch",
|
|
25
|
+
"cwd": "${workspaceRoot}",
|
|
26
|
+
"program": "${workspaceRoot}/bin/rails",
|
|
27
|
+
"args": [
|
|
28
|
+
"server"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"name": "RSpec - all",
|
|
33
|
+
"type": "Ruby",
|
|
34
|
+
"request": "launch",
|
|
35
|
+
"cwd": "${workspaceRoot}",
|
|
36
|
+
"program": "${workspaceRoot}/bin/rspec",
|
|
37
|
+
"args": [
|
|
38
|
+
"-I",
|
|
39
|
+
"${workspaceRoot}"
|
|
40
|
+
]
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"name": "RSpec - active spec file only",
|
|
44
|
+
"type": "Ruby",
|
|
45
|
+
"request": "launch",
|
|
46
|
+
"cwd": "${workspaceRoot}",
|
|
47
|
+
"program": "${workspaceRoot}/bin/rspec",
|
|
48
|
+
"args": [
|
|
49
|
+
"-I",
|
|
50
|
+
"${workspaceRoot}",
|
|
51
|
+
"${file}"
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "RSpec - active test only",
|
|
56
|
+
"type": "Ruby",
|
|
57
|
+
"request": "launch",
|
|
58
|
+
"cwd": "${workspaceRoot}",
|
|
59
|
+
"program": "${workspaceRoot}/bin/rspec",
|
|
60
|
+
"args": [
|
|
61
|
+
"-I",
|
|
62
|
+
"${workspaceRoot}",
|
|
63
|
+
"${file}:${lineNumber}"
|
|
64
|
+
]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "Cucumber",
|
|
68
|
+
"type": "Ruby",
|
|
69
|
+
"request": "launch",
|
|
70
|
+
"cwd": "${workspaceRoot}",
|
|
71
|
+
"program": "${workspaceRoot}/bin/cucumber"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
}
|
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
wordless (2.2.0)
|
|
5
|
+
activesupport
|
|
6
|
+
thor (~> 0.19.1)
|
|
7
|
+
wordpress_tools (~> 1.4.1)
|
|
8
|
+
|
|
9
|
+
GEM
|
|
10
|
+
remote: https://rubygems.org/
|
|
11
|
+
specs:
|
|
12
|
+
activesupport (5.2.4.4)
|
|
13
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
14
|
+
i18n (>= 0.7, < 2)
|
|
15
|
+
minitest (~> 5.1)
|
|
16
|
+
tzinfo (~> 1.1)
|
|
17
|
+
ast (2.4.1)
|
|
18
|
+
backport (1.1.2)
|
|
19
|
+
byebug (11.1.3)
|
|
20
|
+
coderay (1.1.3)
|
|
21
|
+
concurrent-ruby (1.1.7)
|
|
22
|
+
debase (0.2.4.1)
|
|
23
|
+
debase-ruby_core_source (>= 0.10.2)
|
|
24
|
+
debase-ruby_core_source (0.10.11)
|
|
25
|
+
diff-lcs (1.4.4)
|
|
26
|
+
i18n (1.8.5)
|
|
27
|
+
concurrent-ruby (~> 1.0)
|
|
28
|
+
jaro_winkler (1.5.4)
|
|
29
|
+
maruku (0.7.3)
|
|
30
|
+
method_source (1.0.0)
|
|
31
|
+
mini_portile2 (2.4.0)
|
|
32
|
+
minitest (5.14.2)
|
|
33
|
+
nokogiri (1.10.10)
|
|
34
|
+
mini_portile2 (~> 2.4.0)
|
|
35
|
+
parallel (1.19.2)
|
|
36
|
+
parser (2.7.1.5)
|
|
37
|
+
ast (~> 2.4.1)
|
|
38
|
+
pry (0.13.1)
|
|
39
|
+
coderay (~> 1.1)
|
|
40
|
+
method_source (~> 1.0)
|
|
41
|
+
pry-byebug (3.9.0)
|
|
42
|
+
byebug (~> 11.0)
|
|
43
|
+
pry (~> 0.13.0)
|
|
44
|
+
rainbow (3.0.0)
|
|
45
|
+
rake (13.0.1)
|
|
46
|
+
regexp_parser (1.8.0)
|
|
47
|
+
reverse_markdown (1.4.0)
|
|
48
|
+
nokogiri
|
|
49
|
+
rexml (3.2.4)
|
|
50
|
+
rspec (3.9.0)
|
|
51
|
+
rspec-core (~> 3.9.0)
|
|
52
|
+
rspec-expectations (~> 3.9.0)
|
|
53
|
+
rspec-mocks (~> 3.9.0)
|
|
54
|
+
rspec-core (3.9.2)
|
|
55
|
+
rspec-support (~> 3.9.3)
|
|
56
|
+
rspec-expectations (3.9.2)
|
|
57
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
58
|
+
rspec-support (~> 3.9.0)
|
|
59
|
+
rspec-mocks (3.9.1)
|
|
60
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
61
|
+
rspec-support (~> 3.9.0)
|
|
62
|
+
rspec-support (3.9.3)
|
|
63
|
+
rubocop (0.92.0)
|
|
64
|
+
parallel (~> 1.10)
|
|
65
|
+
parser (>= 2.7.1.5)
|
|
66
|
+
rainbow (>= 2.2.2, < 4.0)
|
|
67
|
+
regexp_parser (>= 1.7)
|
|
68
|
+
rexml
|
|
69
|
+
rubocop-ast (>= 0.5.0)
|
|
70
|
+
ruby-progressbar (~> 1.7)
|
|
71
|
+
unicode-display_width (>= 1.4.0, < 2.0)
|
|
72
|
+
rubocop-ast (0.7.0)
|
|
73
|
+
parser (>= 2.7.1.5)
|
|
74
|
+
strscan (>= 1.0.0)
|
|
75
|
+
ruby-debug-ide (0.7.2)
|
|
76
|
+
rake (>= 0.8.1)
|
|
77
|
+
ruby-progressbar (1.10.1)
|
|
78
|
+
solargraph (0.38.0)
|
|
79
|
+
backport (~> 1.1)
|
|
80
|
+
bundler (>= 1.17.2)
|
|
81
|
+
jaro_winkler (~> 1.5)
|
|
82
|
+
maruku (~> 0.7, >= 0.7.3)
|
|
83
|
+
nokogiri (~> 1.9, >= 1.9.1)
|
|
84
|
+
parser (~> 2.3)
|
|
85
|
+
reverse_markdown (~> 1.0, >= 1.0.5)
|
|
86
|
+
rubocop (~> 0.52)
|
|
87
|
+
thor (~> 0.19, >= 0.19.4)
|
|
88
|
+
tilt (~> 2.0)
|
|
89
|
+
yard (~> 0.9)
|
|
90
|
+
strscan (1.0.3)
|
|
91
|
+
thor (0.19.4)
|
|
92
|
+
thread_safe (0.3.6)
|
|
93
|
+
tilt (2.0.10)
|
|
94
|
+
tzinfo (1.2.7)
|
|
95
|
+
thread_safe (~> 0.1)
|
|
96
|
+
unicode-display_width (1.7.0)
|
|
97
|
+
wordpress_tools (1.4.1)
|
|
98
|
+
activesupport (~> 5.0)
|
|
99
|
+
thor (~> 0.19.1)
|
|
100
|
+
yard (0.9.25)
|
|
101
|
+
|
|
102
|
+
PLATFORMS
|
|
103
|
+
ruby
|
|
104
|
+
|
|
105
|
+
DEPENDENCIES
|
|
106
|
+
byebug
|
|
107
|
+
debase
|
|
108
|
+
pry-byebug (~> 3.9)
|
|
109
|
+
rake (~> 13.0.1)
|
|
110
|
+
rspec (~> 3.9.0)
|
|
111
|
+
rubocop
|
|
112
|
+
ruby-debug-ide
|
|
113
|
+
solargraph
|
|
114
|
+
wordless!
|
|
115
|
+
|
|
116
|
+
BUNDLED WITH
|
|
117
|
+
1.17.3
|
data/LICENSE
CHANGED
data/README.mdown
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The quickest CLI tool to setup a new WordPress locally. [Wordless](https://github.com/welaika/wordless) ready.
|
|
4
4
|
|
|
5
|
-
[](https://semaphoreci.com/welaika/wordless_gem)
|
|
6
6
|
|
|
7
7
|
## Premise
|
|
8
8
|
|
|
9
|
-
This is a ruby-gem, so we expect you have already installed _ruby_; if it isn't
|
|
9
|
+
This is a ruby-gem, so we expect you have already installed _ruby_, since it is there by default on Mac and Linux; if it isn't
|
|
10
10
|
the case, probably you'll like to take a look to [rbenv](https://github.com/sstephenson/rbenv).
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
## Prerequisites
|
|
13
|
+
|
|
14
|
+
The only prerequisite that's up to you is to have the right version of node installed.
|
|
15
|
+
Refer to https://wordless.readthedocs.io/en/latest/_pages/stack/node.html#node for the documentation.
|
|
16
|
+
|
|
17
|
+
The gem will try to `nvm use` into the theme during the process. If it won't work, it will fallback using global
|
|
18
|
+
node version. If your global available node version won't match the required one, then the
|
|
19
|
+
process will fail due to `yarn` compelling about version mismatch.
|
|
14
20
|
|
|
15
21
|
## Installation
|
|
16
22
|
|
|
@@ -21,21 +27,20 @@ be in the root dir~~ are in any subdirectory, starting from [commit df5e408](htt
|
|
|
21
27
|
wordless help
|
|
22
28
|
|
|
23
29
|
Tasks:
|
|
24
|
-
wordless clean # Clean static assets
|
|
25
|
-
wordless compile # Compile static assets
|
|
26
|
-
wordless deploy # Deploy your WordPress site using the deploy_command defined in your Wordfile
|
|
27
30
|
wordless help [TASK] # Describe available tasks or one specific task
|
|
28
|
-
wordless
|
|
29
|
-
wordless new [NAME] # Download WordPress in specified directory, install the Wordless plugin and create a Wordless theme
|
|
30
|
-
wordless theme [NAME] # Create a new Wordless theme NAME
|
|
31
|
+
wordless new <NAME> # Download WordPress in specified directory, install the Wordless plugin and create a Wordless theme
|
|
31
32
|
|
|
32
33
|
#### new
|
|
33
34
|
|
|
34
|
-
Create a new Wordless-enabled WordPress site in directory `
|
|
35
|
+
Create a new Wordless-enabled WordPress site in directory `NAME`. This downloads the latest stable release of WordPress (you can also specify a locale):
|
|
35
36
|
|
|
36
37
|
wordless new mysite
|
|
37
38
|
|
|
38
39
|
```bash
|
|
40
|
+
> wordless help new
|
|
41
|
+
Usage:
|
|
42
|
+
wordless new <NAME>
|
|
43
|
+
|
|
39
44
|
Options:
|
|
40
45
|
[--force] # Overwrite existing WP-CLI / WP-CLI Server installation
|
|
41
46
|
-l, [--locale=LOCALE] # WordPress locale
|
|
@@ -55,76 +60,44 @@ Options:
|
|
|
55
60
|
# Default: http://localhost:8080
|
|
56
61
|
```
|
|
57
62
|
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
- Default db-password is no password
|
|
61
|
-
|
|
62
|
-
#### install
|
|
63
|
-
|
|
64
|
-
If you already have WordPress installed, you can install the Wordless plugin (this currently installs from the master branch on GitHub):
|
|
65
|
-
|
|
66
|
-
wordless install
|
|
67
|
-
|
|
68
|
-
#### theme
|
|
69
|
-
|
|
70
|
-
Once Wordless is installed, you can create a new Wordless theme:
|
|
71
|
-
|
|
72
|
-
wordless theme mytheme
|
|
73
|
-
|
|
74
|
-
Note: don't try at home to use `wordless theme .`: it won't work! So call it within
|
|
75
|
-
the `wp-content/themes` dir and pass a theme name as argument.
|
|
76
|
-
|
|
77
|
-
#### compile
|
|
78
|
-
|
|
79
|
-
Note: if you have no idea why the need to compile assets, you should read the
|
|
80
|
-
Wordless' README.
|
|
81
|
-
|
|
82
|
-
Compile your site's static assets:
|
|
83
|
-
|
|
84
|
-
wordless compile
|
|
63
|
+
This command will:
|
|
85
64
|
|
|
86
|
-
|
|
65
|
+
* Check if nodejs and necessary global modules are installed
|
|
66
|
+
* Setup a new database
|
|
67
|
+
* Install WP-CLI (prompt if already installed)
|
|
68
|
+
* Download WordPress
|
|
69
|
+
* Configure WordPress
|
|
70
|
+
* Bootstrap and prepare a new Wordless theme
|
|
71
|
+
* Make you a happier developer
|
|
87
72
|
|
|
88
|
-
|
|
73
|
+
A super **short video to understand** how much time a new development WordPress site should require to be up and running.
|
|
89
74
|
|
|
90
|
-
|
|
75
|
+
https://youtu.be/Tu1xMtMoahk
|
|
91
76
|
|
|
92
|
-
|
|
77
|
+
## Notes
|
|
93
78
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
wordless deploy -r
|
|
79
|
+
- Be sure to have MySQL running before start the installation process: we have to create a database
|
|
80
|
+
- Default db-password is no password. Use the `--db-password=` option if you have one
|
|
81
|
+
- If a DB with the same name is already present, we will give up. Sorry.
|
|
82
|
+
- If you attempt to download a WordPress localization that's outdated, the latest English version will be downloaded instead.
|
|
83
|
+
- Not tested on Windows
|
|
101
84
|
|
|
102
|
-
##
|
|
85
|
+
## Wordless < 2 ?
|
|
103
86
|
|
|
104
|
-
|
|
87
|
+
If you are still working with an old Wordless theme and you need the ruby-releated features
|
|
88
|
+
of the `wordless` gem, you need to install the last version 1.x version released
|
|
105
89
|
|
|
106
|
-
```
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
- 'wp-content/themes/mytheme/assets/stylesheets/screen.css'
|
|
110
|
-
- 'wp-content/themes/mytheme/assets/stylesheets/print.css'
|
|
111
|
-
static_js:
|
|
112
|
-
- 'wp-content/themes/mytheme/assets/javascripts/application.js'
|
|
113
|
-
- 'wp-content/themes/mytheme/assets/javascripts/mobile.js'
|
|
114
|
-
deploy_command: 'wordmove push -t'
|
|
90
|
+
```
|
|
91
|
+
gem uninstall wordless
|
|
92
|
+
gem install wordless -v '1.1.6'
|
|
115
93
|
```
|
|
116
94
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
## Caveats
|
|
120
|
-
|
|
121
|
-
- If you attempt to download a WordPress localization that's outdated, the latest English version will be downloaded instead.
|
|
122
|
-
- Not tested on Windows
|
|
95
|
+
and you can read the old README [here](https://github.com/welaika/wordless_gem/tree/v1.1.2)
|
|
123
96
|
|
|
124
97
|
## Running specs
|
|
125
98
|
|
|
126
99
|
```bash
|
|
127
|
-
bundle install && ./
|
|
100
|
+
bundle install && ./bin/setup.sh && rspec
|
|
128
101
|
```
|
|
129
102
|
|
|
130
103
|
We've noticed problems running tests while using `rvm`; all of them solved using `rbenv`.
|
|
@@ -133,7 +106,7 @@ the CI tool to _sempaphore_, which use rbenv, so pull requests will be tested in
|
|
|
133
106
|
environement.
|
|
134
107
|
|
|
135
108
|
## Need more tools?
|
|
136
|
-
Visit [Wordpress Tools](
|
|
109
|
+
Visit [Wordpress Tools](https://www.wptools.it).
|
|
137
110
|
|
|
138
111
|
## Contributing
|
|
139
112
|
|
|
@@ -144,3 +117,12 @@ Visit [Wordpress Tools](http://wptools.it).
|
|
|
144
117
|
5. Push to the branch (`git push origin my-new-feature`)
|
|
145
118
|
6. Create new Pull Request
|
|
146
119
|
|
|
120
|
+
## Author
|
|
121
|
+
|
|
122
|
+
made with ❤️ and ☕️ by [weLaika](https://dev.welaika.com)
|
|
123
|
+
|
|
124
|
+
## License
|
|
125
|
+
|
|
126
|
+
(The MIT License)
|
|
127
|
+
|
|
128
|
+
Copyright © 2012-2019 [weLaika](https://dev.welaika.com)
|