bridgetown-core 1.3.1 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97de36caa078103a75226bcc77072ba86c958e58f77a22fb7282fe4d1ef4ef22
4
- data.tar.gz: e3fc1723d1c4acc2b3f715ba138de15c77ad0cabaeaca75bf8e5b9b359f61cdb
3
+ metadata.gz: d46961118b45c011dc48d776d5e3f451d761850930074608cfee29263b4e7a88
4
+ data.tar.gz: 2f5bea8f1c837c05c7376dce35951543510abcef5ccc82f7b37061e3b4bcade4
5
5
  SHA512:
6
- metadata.gz: 8d19ca716967ef3aae5a991a965ecd89805eb05135ebf8a87c0e320421986b4a2275c63eedf7dcdb41dd35b77c497bb823501849cf824432010a6f9f63d8e315
7
- data.tar.gz: 4b06864b42beb7693c50ee75853ad3c4237fc997d8570d5ea5eb8bc41b19af3d12740b58204d0320475b9b1cbf823847dc7449d54ea20819c3b2b954443a2516
6
+ metadata.gz: e6e13e95c141d995d83dab36e5419e63b359c1065416920396c51235f3e728f0c8f6cb17d4088cd71649662d9b814e04ce70d56bd8416058ba31038865a0fee3
7
+ data.tar.gz: 0e64b349975e75e2d49af405288343ea54a39d9f894be7a4b51895becc72afd09ee138b69ca0f0ed3cf6d814842b60b2dbdf43f9fe6be20fe0f42364f21259da
@@ -36,6 +36,7 @@ Gem::Specification.new do |s|
36
36
  s.add_runtime_dependency("addressable", "~> 2.4")
37
37
  s.add_runtime_dependency("amazing_print", "~> 1.2")
38
38
  s.add_runtime_dependency("colorator", "~> 1.0")
39
+ s.add_runtime_dependency("csv", "~> 3.2")
39
40
  s.add_runtime_dependency("erubi", "~> 1.9")
40
41
  s.add_runtime_dependency("faraday", "~> 2.0")
41
42
  s.add_runtime_dependency("faraday-follow_redirects", "~> 0.3")
@@ -47,7 +48,7 @@ Gem::Specification.new do |s|
47
48
  s.add_runtime_dependency("listen", "~> 3.0")
48
49
  s.add_runtime_dependency("rake", ">= 13.0")
49
50
  s.add_runtime_dependency("roda", "~> 3.46")
50
- s.add_runtime_dependency("rouge", "~> 3.0")
51
+ s.add_runtime_dependency("rouge", [">= 3.0", "< 5.0"])
51
52
  s.add_runtime_dependency("serbea", "~> 1.0")
52
53
  s.add_runtime_dependency("thor", "~> 1.1")
53
54
  s.add_runtime_dependency("tilt", "~> 2.0")
@@ -2,17 +2,11 @@
2
2
 
3
3
  module Bridgetown
4
4
  module ConsoleMethods
5
- def site
6
- Bridgetown::Current.site
7
- end
8
-
9
- def collections
10
- site.collections
11
- end
12
-
13
5
  def reload!
14
6
  Bridgetown.logger.info "Reloading site..."
15
7
 
8
+ site = Bridgetown::Current.site
9
+
16
10
  I18n.reload! # make sure any locale files get read again
17
11
  Bridgetown::Hooks.trigger :site, :pre_reload, site
18
12
  Bridgetown::Hooks.clear_reloadable_hooks
@@ -66,9 +60,15 @@ module Bridgetown
66
60
  type: :boolean,
67
61
  desc: "Print verbose output."
68
62
 
69
- def console
63
+ def console # rubocop:disable Metrics
70
64
  require "irb"
71
- require "irb/ext/save-history"
65
+ new_history_behavior = false
66
+ begin
67
+ require "irb/ext/save-history"
68
+ rescue LoadError
69
+ # Code path for Ruby 3.3+
70
+ new_history_behavior = true
71
+ end
72
72
  require "amazing_print" unless options[:"bypass-ap"]
73
73
 
74
74
  Bridgetown.logger.adjust_verbosity(options)
@@ -93,9 +93,12 @@ module Bridgetown
93
93
  IRB::ExtendCommandBundle.include ConsoleMethods
94
94
  IRB.setup(nil)
95
95
  workspace = IRB::WorkSpace.new
96
+ workspace.main.define_singleton_method(:site) { Bridgetown::Current.site }
97
+ workspace.main.define_singleton_method(:collections) { site.collections }
96
98
  irb = IRB::Irb.new(workspace)
97
99
  IRB.conf[:IRB_RC]&.call(irb.context)
98
100
  IRB.conf[:MAIN_CONTEXT] = irb.context
101
+ irb.context.io.load_history if new_history_behavior
99
102
  Bridgetown.logger.info "Console:", "Your site is now available as #{"site".cyan}"
100
103
  Bridgetown.logger.info "",
101
104
  "You can also access #{"collections".cyan} or perform a " \
@@ -117,6 +120,7 @@ module Bridgetown
117
120
  end
118
121
  ensure
119
122
  IRB.conf[:AT_EXIT].each(&:call)
123
+ irb.context.io.save_history if new_history_behavior
120
124
  end
121
125
  end
122
126
  end
@@ -128,14 +128,19 @@ const importPostCssPlugin = (options, configuration) => ({
128
128
  })
129
129
 
130
130
  // Process the file through PostCSS
131
- const result = await postcss([importPlugin, ...options.plugins]).process(css, {
132
- map: true,
133
- ...options.options,
134
- from: args.path,
135
- });
136
-
131
+ let outputCSS = ""
132
+ try {
133
+ const result = await postcss([importPlugin, ...options.plugins]).process(css, {
134
+ map: true,
135
+ ...options.options,
136
+ from: args.path,
137
+ })
138
+ outputCSS = result.css
139
+ } catch(err) {
140
+ console.error(`\nerror: "${err.reason}" while processing CSS file:\n${err.file}:${err.line}:${err.column}\n`)
141
+ }
137
142
  return {
138
- contents: result.css,
143
+ contents: outputCSS,
139
144
  loader: "css",
140
145
  watchFiles: [args.path, ...additionalFilePaths],
141
146
  }
@@ -6,5 +6,5 @@
6
6
  "$javascript/*": ["./frontend/javascript/*"],
7
7
  "$components/*": ["./src/_components/*"]
8
8
  }
9
- },
9
+ },
10
10
  }
@@ -13,12 +13,24 @@ module Bridgetown
13
13
  end
14
14
 
15
15
  matching_resources = result_set.select do |item|
16
- item.relative_path.parent == relative_path.parent && item.data.slug == data.slug
16
+ matches_resource?(item)
17
17
  end
18
18
 
19
19
  matching_resources.sort_by do |item|
20
20
  site.config.available_locales.index item.data.locale
21
21
  end
22
22
  end
23
+
24
+ def matches_resource?(item)
25
+ if item.relative_path.is_a?(String)
26
+ item.localeless_path == localeless_path
27
+ else
28
+ item.relative_path.parent == relative_path.parent
29
+ end && item.data.slug == data.slug
30
+ end
31
+
32
+ def localeless_path
33
+ relative_path.gsub(%r{\A#{data.locale}/}, "")
34
+ end
23
35
  end
24
36
  end
@@ -1,23 +1,25 @@
1
+ [dev]
2
+ command = "bin/bridgetown dev"
3
+ targetPort = 4000
4
+ port = 8888
5
+ publish = "output"
6
+ autoLaunch = true
7
+ framework = "#custom"
8
+
9
+ [context.dev.build.environment]
10
+ NODE_ENV = "development"
11
+ BRIDGETOWN_ENV = "development"
12
+
1
13
  [build]
2
- command = "bin/bridgetown deploy && bin/netlify.sh"
14
+ command = "bin/bridgetown deploy"
3
15
  publish = "output"
4
16
 
5
17
  [build.environment]
6
18
  NODE_ENV = "development"
7
19
  BRIDGETOWN_ENV = "production"
8
20
 
9
- [build.processing]
10
- skip_processing = false
11
- [build.processing.css]
12
- bundle = false
13
- minify = true
14
- [build.processing.js]
15
- bundle = false
16
- minify = true
17
21
  [build.processing.html]
18
22
  pretty_urls = true
19
- [build.processing.images]
20
- compress = true
21
23
 
22
24
  [[headers]]
23
25
  for = "*"
@@ -29,15 +31,6 @@
29
31
  Referrer-Policy = "no-referrer-when-downgrade"
30
32
  Cache-Control = "public, max-age=604800, s-max-age=604800"
31
33
 
32
- [[headers]]
33
- for = "/"
34
- [headers.values]
35
- Link = [
36
- "<CSS_PATH>; rel=preload; as=style",
37
- "<JS_PATH>; rel=preload; as=script",
38
- "<https://NETLIFY_IMAGES_CDN_DOMAIN>; rel=preconnect"
39
- ]
40
-
41
34
  [[headers]]
42
35
  for = "/*.(png|jpg|js|css|svg|woff|ttf|eot|ico|woff2)"
43
36
  [headers.values]
@@ -1,5 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  copy_file in_templates_dir("netlify.toml"), "netlify.toml"
4
- copy_file in_templates_dir("netlify.sh"), "bin/netlify.sh"
5
- `chmod a+x ./bin/netlify.sh`
@@ -37,8 +37,8 @@ append_to_file(File.join(javascript_dir, "index.js")) do
37
37
  if (filename.includes("_controller.") || filename.includes("-controller.")) {
38
38
  const identifier = filename.replace("./controllers/", "")
39
39
  .replace(/[_-]controller\\..*$/, "")
40
- .replace("_", "-")
41
- .replace("/", "--")
40
+ .replace(/_/g, "-")
41
+ .replace(/\\//g, "--")
42
42
 
43
43
  Stimulus.register(identifier, controller.default)
44
44
  }
@@ -168,7 +168,7 @@ module Bridgetown
168
168
  #
169
169
  # @return [String]
170
170
  def output_ext
171
- @output_ext ||= (permalink_ext || converter_output_ext)
171
+ @output_ext ||= permalink_ext || converter_output_ext
172
172
  end
173
173
 
174
174
  def permalink_ext
@@ -1,5 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "active_support/html_safe_translation"
4
+
3
5
  module Bridgetown
4
6
  class RubyTemplateView
5
7
  class Helpers
@@ -128,21 +130,49 @@ module Bridgetown
128
130
  safe(segments.join(" "))
129
131
  end
130
132
 
131
- # Forward all arguments to I18n.t method
133
+ # Delegates to <tt>I18n#translate</tt> but also performs two additional
134
+ # functions.
135
+ #
136
+ # First, if the key starts with a period <tt>translate</tt> will scope
137
+ # the key by the current view. Calling <tt>translate(".foo")</tt> from
138
+ # the <tt>people/index.html.erb</tt> template is equivalent to calling
139
+ # <tt>translate("people.index.foo")</tt>. This makes it less
140
+ # repetitive to translate many keys within the same view and provides
141
+ # a convention to scope keys consistently.
142
+ #
143
+ # Second, the translation will be marked as <tt>html_safe</tt> if the key
144
+ # has the suffix "_html" or the last element of the key is "html". Calling
145
+ # <tt>translate("footer_html")</tt> or <tt>translate("footer.html")</tt>
146
+ # will return an HTML safe string that won't be escaped by other HTML
147
+ # helper methods. This naming convention helps to identify translations
148
+ # that include HTML tags so that you know what kind of output to expect
149
+ # when you call translate in a template and translators know which keys
150
+ # they can provide HTML values for.
132
151
  #
133
152
  # @return [String] the translated string
134
153
  # @see I18n
135
- def t(*args, **kwargs)
136
- I18n.send :t, *args, **kwargs
154
+ def translate(key, **options) # rubocop:disable Metrics/CyclomaticComplexity, Metrics/PerceivedComplexity
155
+ return key.map { |k| translate(k, **options) } if key.is_a?(Array)
156
+
157
+ key = key&.to_s
158
+
159
+ if key&.start_with?(".")
160
+ view_path = view&.page&.relative_path&.to_s&.split(".")&.first
161
+ key = "#{view_path.tr("/", ".")}#{key}" if view_path.present?
162
+ end
163
+
164
+ ActiveSupport::HtmlSafeTranslation.translate(key, **options)
137
165
  end
166
+ alias_method :t, :translate
138
167
 
139
- # Forward all arguments to I18n.l method
168
+ # Delegates to <tt>I18n.localize</tt> with no additional functionality.
140
169
  #
141
170
  # @return [String] the localized string
142
171
  # @see I18n
143
- def l(*args, **kwargs)
144
- I18n.send :l, *args, **kwargs
172
+ def localize(...)
173
+ I18n.localize(...)
145
174
  end
175
+ alias_method :l, :localize
146
176
 
147
177
  # For template contexts where ActiveSupport's output safety is loaded, we
148
178
  # can ensure a string has been marked safe
@@ -2,18 +2,12 @@
2
2
 
3
3
  module Bridgetown
4
4
  class LogWriter < ::Logger
5
- def initialize # rubocop:disable Lint/MissingSuper
6
- @progname = nil
7
- @level = DEBUG
8
- @default_formatter = Formatter.new
9
- @logdev = $stdout
10
- @formatter = proc do |_, _, _, msg|
11
- msg.to_s
12
- end
5
+ def initialize
6
+ super($stdout, formatter: proc { |_, _, _, msg| msg.to_s })
13
7
  end
14
8
 
15
9
  def enable_prefix
16
- @formatter = proc do |_, _, _, msg|
10
+ self.formatter = proc do |_, _, _, msg|
17
11
  "\e[32m[Bridgetown]\e[0m #{msg}"
18
12
  end
19
13
  end
@@ -129,6 +129,24 @@ module Bridgetown
129
129
  "Required #{required_gems.map(&:name).join(", ")}")
130
130
  end
131
131
 
132
+ def self.package_manager
133
+ @package_manager ||= if File.exist?("yarn.lock")
134
+ "yarn"
135
+ elsif File.exist?("package-lock.json")
136
+ "npm"
137
+ elsif File.exist?("pnpm-lock.yaml")
138
+ "pnpm"
139
+ else
140
+ ""
141
+ end
142
+ end
143
+
144
+ def self.package_manager_install_command
145
+ package_manager == "npm" ? "install" : "add"
146
+ end
147
+
148
+ # rubocop:disable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
149
+
132
150
  # Iterates through loaded gems and finds yard-add gemspec metadata.
133
151
  # If that exact package hasn't been installed, execute yarn add
134
152
  #
@@ -146,18 +164,22 @@ module Bridgetown
146
164
  required_gems
147
165
  end
148
166
 
167
+ # all right, time to install the package
149
168
  gems_to_search.each do |loaded_gem|
150
169
  yarn_dependency = find_yarn_dependency(loaded_gem)
151
170
  next unless add_yarn_dependency?(yarn_dependency, package_json)
152
171
 
153
- # all right, time to install the package
154
- cmd = "yarn add #{yarn_dependency.join("@")}"
172
+ next if package_manager.empty?
173
+
174
+ cmd = "#{package_manager} #{package_manager_install_command} #{yarn_dependency.join("@")}"
155
175
  system cmd
156
176
  end
157
177
 
158
178
  gems_to_search
159
179
  end
160
180
 
181
+ # rubocop:enable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
182
+
161
183
  def self.find_yarn_dependency(loaded_gem)
162
184
  yarn_dependency = loaded_gem.to_spec&.metadata&.dig("yarn-add")&.match(YARN_DEPENDENCY_REGEXP)
163
185
  return nil if yarn_dependency&.length != 3 || yarn_dependency[2] == ""
@@ -48,7 +48,7 @@ module Bridgetown
48
48
  end
49
49
 
50
50
  # @param root [String] root of Bridgetown site, defaults to config value
51
- def self.autoload_server_folder( # rubocop:todo Metrics/MethodLength
51
+ def self.autoload_server_folder( # rubocop:todo Metrics
52
52
  root: Bridgetown::Current.preloaded_configuration.root_dir
53
53
  )
54
54
  server_folder = File.join(root, "server")
@@ -62,7 +62,18 @@ module Bridgetown
62
62
  loader.do_not_eager_load(File.join(server_folder, "roda_app.rb"))
63
63
 
64
64
  unless ENV["BRIDGETOWN_ENV"] == "production"
65
- Listen.to(server_folder) do |_modified, _added, _removed|
65
+ Listen.to(server_folder) do |modified, added, removed|
66
+ c = modified + added + removed
67
+ n = c.length
68
+
69
+ Bridgetown.logger.info(
70
+ "Reloading…",
71
+ "#{n} file#{"s" if n > 1} changed at #{Time.now.strftime("%Y-%m-%d %H:%M:%S")}"
72
+ )
73
+ c.each do |path|
74
+ Bridgetown.logger.info "", "- #{path["#{File.dirname(server_folder)}/".length..]}"
75
+ end
76
+
66
77
  loader.reload
67
78
  loader.eager_load
68
79
  Bridgetown::Rack::Routes.reload_subclasses
@@ -349,7 +349,7 @@ module Bridgetown
349
349
  end
350
350
 
351
351
  def import_taxonomies_from_data
352
- taxonomies.each do |_label, metadata|
352
+ taxonomies.each_value do |metadata|
353
353
  Array(data[metadata.type.key]).each do |term|
354
354
  metadata.terms << TaxonomyTerm.new(
355
355
  resource: self, label: term, type: metadata.type
@@ -24,7 +24,7 @@ module Bridgetown
24
24
  def relation_types
25
25
  @relation_types ||= begin
26
26
  types = []
27
- relation_schema&.each do |_relation_type, collections|
27
+ relation_schema&.each_value do |collections|
28
28
  types << collections
29
29
  types << Array(collections).map { |item| ActiveSupport::Inflector.pluralize(item) }
30
30
  end
@@ -20,9 +20,7 @@ module Bridgetown
20
20
  def unload_loaders
21
21
  return if @loaders.keys.empty?
22
22
 
23
- @loaders.each do |_path, loader|
24
- loader.unload
25
- end
23
+ @loaders.each_value(&:unload)
26
24
  @loaders = {}
27
25
  end
28
26
 
@@ -41,9 +39,11 @@ module Bridgetown
41
39
  end
42
40
 
43
41
  # TODO: this could probably be refactored to work like the above
44
- ActiveSupport::DescendantsTracker.class_variable_get(
45
- :@@direct_descendants
46
- )[value.superclass]&.reject! { _1 == value }
42
+ if ActiveSupport::DescendantsTracker.class_variables.include?(:@@direct_descendants)
43
+ ActiveSupport::DescendantsTracker.class_variable_get(
44
+ :@@direct_descendants
45
+ )[value.superclass]&.reject! { _1 == value }
46
+ end
47
47
  end
48
48
 
49
49
  def setup_loaders(autoload_paths = []) # rubocop:todo Metrics/AbcSize, Metrics/CyclomaticComplexity, Metrics/MethodLength, Metrics/PerceivedComplexity
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bridgetown
4
- VERSION = "1.3.1"
4
+ VERSION = "1.3.3"
5
5
  CODE_NAME = "Kelly Butte"
6
6
  end
@@ -6,12 +6,23 @@ module Bridgetown
6
6
 
7
7
  class << self
8
8
  def load_file(filename, **kwargs)
9
- kwargs = { permitted_classes: PERMITTED_CLASSES }.merge(kwargs)
10
- YAML.safe_load_file(filename, **kwargs)
9
+ YAML.safe_load_file filename, **merge_permitted_classes(kwargs)
11
10
  end
12
11
 
13
- def load(yaml)
14
- YAML.safe_load yaml, permitted_classes: PERMITTED_CLASSES
12
+ def load(yaml, **kwargs)
13
+ YAML.safe_load yaml, **merge_permitted_classes(kwargs)
14
+ end
15
+
16
+ private
17
+
18
+ def merge_permitted_classes(kwargs)
19
+ if kwargs.key?(:permitted_classes)
20
+ kwargs[:permitted_classes] |= PERMITTED_CLASSES
21
+ else
22
+ kwargs[:permitted_classes] = PERMITTED_CLASSES
23
+ end
24
+
25
+ kwargs
15
26
  end
16
27
  end
17
28
  end
@@ -1,4 +1,4 @@
1
- module.exports = {
1
+ module.exports = {
2
2
  plugins: {
3
3
  'postcss-flexbugs-fixes': {},
4
4
  'postcss-preset-env': {
@@ -8,4 +8,4 @@ module.exports = {
8
8
  stage: 3
9
9
  }
10
10
  }
11
- }
11
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bridgetown-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-29 00:00:00.000000000 Z
11
+ date: 2024-03-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -92,6 +92,20 @@ dependencies:
92
92
  - - "~>"
93
93
  - !ruby/object:Gem::Version
94
94
  version: '1.0'
95
+ - !ruby/object:Gem::Dependency
96
+ name: csv
97
+ requirement: !ruby/object:Gem::Requirement
98
+ requirements:
99
+ - - "~>"
100
+ - !ruby/object:Gem::Version
101
+ version: '3.2'
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - "~>"
107
+ - !ruby/object:Gem::Version
108
+ version: '3.2'
95
109
  - !ruby/object:Gem::Dependency
96
110
  name: erubi
97
111
  requirement: !ruby/object:Gem::Requirement
@@ -250,16 +264,22 @@ dependencies:
250
264
  name: rouge
251
265
  requirement: !ruby/object:Gem::Requirement
252
266
  requirements:
253
- - - "~>"
267
+ - - ">="
254
268
  - !ruby/object:Gem::Version
255
269
  version: '3.0'
270
+ - - "<"
271
+ - !ruby/object:Gem::Version
272
+ version: '5.0'
256
273
  type: :runtime
257
274
  prerelease: false
258
275
  version_requirements: !ruby/object:Gem::Requirement
259
276
  requirements:
260
- - - "~>"
277
+ - - ">="
261
278
  - !ruby/object:Gem::Version
262
279
  version: '3.0'
280
+ - - "<"
281
+ - !ruby/object:Gem::Version
282
+ version: '5.0'
263
283
  - !ruby/object:Gem::Dependency
264
284
  name: serbea
265
285
  requirement: !ruby/object:Gem::Requirement
@@ -401,7 +421,6 @@ files:
401
421
  - lib/bridgetown-core/configurations/lit/lit-ssr.config.js
402
422
  - lib/bridgetown-core/configurations/minitesting.rb
403
423
  - lib/bridgetown-core/configurations/netlify.rb
404
- - lib/bridgetown-core/configurations/netlify/netlify.sh
405
424
  - lib/bridgetown-core/configurations/netlify/netlify.toml
406
425
  - lib/bridgetown-core/configurations/open-props.rb
407
426
  - lib/bridgetown-core/configurations/open-props/variables.css.erb
@@ -578,7 +597,7 @@ metadata:
578
597
  changelog_uri: https://github.com/bridgetownrb/bridgetown/releases
579
598
  homepage_uri: https://www.bridgetownrb.com
580
599
  rubygems_mfa_required: 'true'
581
- post_install_message:
600
+ post_install_message:
582
601
  rdoc_options:
583
602
  - "--charset=UTF-8"
584
603
  require_paths:
@@ -594,8 +613,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
594
613
  - !ruby/object:Gem::Version
595
614
  version: '0'
596
615
  requirements: []
597
- rubygems_version: 3.1.4
598
- signing_key:
616
+ rubygems_version: 3.2.33
617
+ signing_key:
599
618
  specification_version: 4
600
619
  summary: A next-generation, progressive site generator & fullstack framework, powered
601
620
  by Ruby
@@ -1,14 +0,0 @@
1
- #!/usr/bin/env bash
2
- # Taken from https://docs.netlify.com/configure-builds/file-based-configuration/#inject-environment-variable-values
3
-
4
- echo "Updating netlify.toml with references to our built files"
5
-
6
- CSS_PATH=`find output/_bridgetown/static/css/*.css -type f | sed -e 's,output\/,/,g'`
7
- JS_PATH=`find output/_bridgetown/static/js/*.js -type f | sed -e 's,output\/,/,g'`
8
-
9
- echo "CSS Path: ${CSS_PATH}"
10
- echo "JS Path: ${JS_PATH}"
11
-
12
- sed -i s,CSS_PATH,${CSS_PATH},g netlify.toml
13
- sed -i s,JS_PATH,${JS_PATH},g netlify.toml
14
- sed -i s,NETLIFY_IMAGES_CDN_DOMAIN,${NETLIFY_IMAGES_CDN_DOMAIN},g netlify.toml