Skip to content

Commit

Permalink
Lit configuration bug fixes based on QA
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcwhite committed Jun 18, 2023
1 parent bd680ce commit 5514bfa
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## Unreleased

## [1.3.0.beta3] - 2023-06-18

- Lit configuration bug fixes based on QA

## [1.3.0.beta2] - 2023-06-18

- Declarative Shadow DOM integration [#763](https://github.com/bridgetownrb/bridgetown/pull/763) ([jaredcwhite](https://github.com/jaredcwhite))
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
const build = require("./config/esbuild.defaults.js")

// Update this if you need to configure a destination folder other than `output`
const outputFolder = "output"

// You can customize this as you wish, perhaps to add new esbuild plugins.
//
// ```
Expand Down Expand Up @@ -39,8 +36,8 @@ const esbuildOptions = {
// add new plugins here...
],
globOptions: {
excludeFilter: /\.(dsd|lit)\.(css|js)$/
excludeFilter: /\.(dsd|lit)\.css$/
}
}

build(outputFolder, esbuildOptions)
build(esbuildOptions)
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,11 @@ const bridgetownConfigured = (bridgetownConfig, outputFolder) => {
// Load the PostCSS config from postcss.config.js or whatever else is a supported location/format
const postcssrc = require("postcss-load-config")

module.exports = async (esbuildOptions) => {
module.exports = async (esbuildOptions, ...args) => {
let outputFolder;
if (typeof esbuildOptions === "string") { // legacy syntax where first argument is output folder
esbuildOptions = arguments[1]
outputFolder = arguments[0]
outputFolder = esbuildOptions
esbuildOptions = args[0]
}
const bridgetownConfig = bridgetownConfigured(esbuildOptions.bridgetownConfig, outputFolder)

Expand Down
6 changes: 3 additions & 3 deletions bridgetown-core/lib/bridgetown-core/configurations/lit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

say_status :lit, "Installing Lit + SSR Plugin..."

add_gem "bridgetown-lit-renderer", version: "2.1.0.beta1"
add_gem "bridgetown-lit-renderer", version: "2.1.0.beta2"

run "yarn add lit esbuild-plugin-lit-css [email protected]beta1"
run "yarn add lit esbuild-plugin-lit-css [email protected]beta2"

copy_file in_templates_dir("lit-ssr.config.js"), "config/lit-ssr.config.js"
copy_file in_templates_dir("lit-components-entry.js"), "config/lit-components-entry.js"
Expand All @@ -30,7 +30,7 @@
insert_into_file "esbuild.config.js",
after: " plugins: [" do
<<-JS
plugins: [...plugins],
...plugins,
JS
end

Expand Down
2 changes: 1 addition & 1 deletion bridgetown-core/lib/bridgetown-core/version.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

module Bridgetown
VERSION = "1.3.0.beta2"
VERSION = "1.3.0.beta3"
CODE_NAME = "Kelly Butte"
end

0 comments on commit 5514bfa

Please sign in to comment.