bridgetown-core 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/bin/bridgetown +61 -0
  3. metadata +219 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 1bdc825b903ba9de033edc8fcce7b94f871cd6c98b4c267856316a5f842f0c6d
4
+ data.tar.gz: d8aa948572f48e2450059cd47ac3d6766d6cc43494ebe771f9859a01bcb9bb9c
5
+ SHA512:
6
+ metadata.gz: 3d2fd4b262ca60a39b3b3799caddb655c48808c336e5c266c55a06886a3e64e2bc54dbd54cc5f338b08bb089d10bfa9a7fec0c95bddbaded541d60b56615461e
7
+ data.tar.gz: 2c5b6899c86c1a48662b0d7229ac65bfacf487a88444f6b2b0bc3481ad668e3ccf11fcb7bef14b37ec375c07d92dcc1e1120067104b575fda9945349e811e6c0
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ STDOUT.sync = true
5
+
6
+ $LOAD_PATH.unshift File.expand_path("../lib", __dir__)
7
+
8
+ require "bridgetown-core"
9
+ require "mercenary"
10
+
11
+ Bridgetown::PluginManager.require_from_bundler
12
+
13
+ Bridgetown::Deprecator.process(ARGV)
14
+
15
+ Mercenary.program(:bridgetown) do |p|
16
+ p.version Bridgetown::VERSION
17
+ p.description "Bridgetown is a Webpack-aware, Ruby-powered static site generator for the modern Jamstack era"
18
+ p.syntax "bridgetown <subcommand> [options]"
19
+
20
+ # TODO: it seems wonky to include build options in this top-level
21
+ # exe. Should probably remove most things here and relocated to
22
+ # individual comments. …in fact there are duplicate option listings
23
+ # if you do bridgetown build --help — ouch!
24
+ p.option "source", "-s", "--source [DIR]", "Source directory (defaults to src)"
25
+ p.option "destination", "-d", "--destination [DIR]",
26
+ "Destination directory (defaults to output)"
27
+ p.option "plugins_dir", "-p", "--plugins PLUGINS_DIR1[,PLUGINS_DIR2[,...]]", Array,
28
+ "Plugins directory (defaults to plugins)"
29
+ p.option "layouts_dir", "--layouts DIR", String,
30
+ "Layouts directory (defaults to src/_layouts)"
31
+ p.option "profile", "--profile", "Generate a Liquid rendering profile"
32
+
33
+ # TODO: this is not the way to bring in extra command gems!
34
+ # Bridgetown::External.require_if_present(Bridgetown::External.blessed_gems) do |g, ver_constraint|
35
+ # cmd = g.split("-").last
36
+ # p.command(cmd.to_sym) do |c|
37
+ # c.syntax cmd
38
+ # c.action do
39
+ # Bridgetown.logger.abort_with "You must install the '#{g}' gem" \
40
+ # " version #{ver_constraint} to use the 'bridgetown #{cmd}' command."
41
+ # end
42
+ # end
43
+ # end
44
+
45
+ Bridgetown::Command.subclasses.each { |c| c.init_with_program(p) }
46
+
47
+ p.action do |args, _|
48
+ if args.empty?
49
+ Bridgetown.logger.error "A subcommand is required."
50
+ puts p
51
+ abort
52
+ else
53
+ subcommand = args.first
54
+ unless p.has_command? subcommand
55
+ Bridgetown.logger.abort_with "fatal: 'bridgetown #{args.first}' could not" \
56
+ " be found. You may need to install the bridgetown-#{args.first} gem" \
57
+ " or a related gem to be able to use this subcommand."
58
+ end
59
+ end
60
+ end
61
+ end
metadata ADDED
@@ -0,0 +1,219 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bridgetown-core
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.7.0
5
+ platform: ruby
6
+ authors:
7
+ - Bridgetown Team
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-04-13 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: addressable
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '2.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '2.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: colorator
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: i18n
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: kramdown
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.1'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.1'
69
+ - !ruby/object:Gem::Dependency
70
+ name: kramdown-parser-gfm
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: liquid
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '4.0'
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '4.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: listen
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '3.0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '3.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: mercenary
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: 0.4.0
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: 0.4.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: pathutil
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '0.9'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '0.9'
139
+ - !ruby/object:Gem::Dependency
140
+ name: rouge
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '3.0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '3.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: safe_yaml
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - "~>"
158
+ - !ruby/object:Gem::Version
159
+ version: '1.0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - "~>"
165
+ - !ruby/object:Gem::Version
166
+ version: '1.0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: terminal-table
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '1.8'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '1.8'
181
+ description: Bridgetown is a Webpack-aware, Ruby-powered static site generator for
182
+ the modern Jamstack era
183
+ email: maintainers@bridgetownrb.com
184
+ executables:
185
+ - bridgetown
186
+ extensions: []
187
+ extra_rdoc_files: []
188
+ files:
189
+ - bin/bridgetown
190
+ homepage: https://bridgetownrb.com
191
+ licenses:
192
+ - MIT
193
+ metadata:
194
+ source_code_uri: https://github.com/bridgetownrb/bridgetown
195
+ bug_tracker_uri: https://github.com/bridgetownrb/bridgetown/issues
196
+ changelog_uri: https://github.com/bridgetownrb/bridgetown/releases
197
+ homepage_uri: https://bridgetownrb.com
198
+ post_install_message:
199
+ rdoc_options:
200
+ - "--charset=UTF-8"
201
+ require_paths:
202
+ - lib
203
+ required_ruby_version: !ruby/object:Gem::Requirement
204
+ requirements:
205
+ - - ">="
206
+ - !ruby/object:Gem::Version
207
+ version: 2.4.0
208
+ required_rubygems_version: !ruby/object:Gem::Requirement
209
+ requirements:
210
+ - - ">="
211
+ - !ruby/object:Gem::Version
212
+ version: 2.7.0
213
+ requirements: []
214
+ rubygems_version: 3.0.6
215
+ signing_key:
216
+ specification_version: 4
217
+ summary: A Webpack-aware, Ruby-based static site generator for the modern Jamstack
218
+ era
219
+ test_files: []