Skip to content

Commit

Permalink
Merge branch 'develop' into remove/unnecessary-mixins
Browse files Browse the repository at this point in the history
  • Loading branch information
bacoords authored Apr 11, 2024
2 parents 2a1e9f1 + 6b2ebdf commit 0340f77
Show file tree
Hide file tree
Showing 153 changed files with 1,121 additions and 2,985 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ jobs:
uses: thedoctor0/[email protected]
with:
type: 'zip'
filename: 'tangent.zip'
filename: 'block-theme.zip'
exclusions: '*.git* /*node_modules/*'

- name: Upload release artifact
uses: actions/upload-artifact@v3
with:
name: release
path: tangent.zip
path: block-theme.zip

- name: Upload Release
uses: ncipollo/[email protected]
with:
artifacts: "tangent.zip"
artifacts: "block-theme.zip"
token: ${{ secrets.GITHUB_TOKEN }}
3 changes: 3 additions & 0 deletions .github/workflows/wpcs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ jobs:
- uses: actions/checkout@v3
- name: WPCS check
uses: 10up/wpcs-action@stable
with:
standard: 'WordPress'
use_local_config: 'true'
26 changes: 0 additions & 26 deletions 404.php

This file was deleted.

55 changes: 0 additions & 55 deletions archive.php

This file was deleted.

89 changes: 0 additions & 89 deletions bin/jsonc-to-scss.js

This file was deleted.

123 changes: 0 additions & 123 deletions bin/theme-json.js

This file was deleted.

43 changes: 2 additions & 41 deletions bin/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,45 +27,6 @@ var config = {
outputFolder: styleOutputFolder,
blockDir: true,
}),
"../src/scss/utils/breakpoints": path.resolve(
process.cwd(),
"src/theme-json/settings/custom",
"breakpoints.jsonc",
),
"../theme.json": path.resolve(
process.cwd(),
"src/theme-json",
"index.jsonc",
),
},
module: {
...defaultConfig.module,
rules: [
...defaultConfig.module.rules,
{
test: /\.jsonc$/,
exclude: /theme-json\/index\.jsonc$/,
type: "asset/resource",
generator: {
filename: "../src/scss/utils/[name].scss",
},
use: "jsonc-scss-loader",
},
{
test: /theme-json\/index\.jsonc$/,
type: "asset/resource",
generator: {
filename: "../theme.json",
},
use: "theme-json-loader",
},
],
},
resolveLoader: {
alias: {
"jsonc-scss-loader": path.resolve(process.cwd(), "bin/jsonc-to-scss.js"),
"theme-json-loader": path.resolve(process.cwd(), "bin/theme-json.js"),
},
},
output: {
...defaultConfig.output,
Expand Down Expand Up @@ -111,15 +72,15 @@ var config = {
folder: ".",
method: (absoluteItemPath) => {
return new RegExp(/(json\.js)(\.map)*$/, "m").test(
absoluteItemPath,
absoluteItemPath
);
},
},
{
folder: ".",
method: (absoluteItemPath) => {
return new RegExp(/theme\.json\.asset\.php$/, "m").test(
absoluteItemPath,
absoluteItemPath
);
},
},
Expand Down
Loading

0 comments on commit 0340f77

Please sign in to comment.