Skip to content

Commit

Permalink
Release (#252)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Antonio Laguna <antonio.laguna@10up.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Fabian Kägy <mail@fabian-kaegy.de>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
6 people committed Nov 14, 2022
1 parent d6b2742 commit 010cea6
Show file tree
Hide file tree
Showing 13 changed files with 200 additions and 195 deletions.
5 changes: 5 additions & 0 deletions .changeset/hungry-walls-drum.md
@@ -0,0 +1,5 @@
---
"10up-toolkit": patch
---

Fix processing order whenever Sass is used
7 changes: 7 additions & 0 deletions .changeset/slow-cooks-care.md
@@ -0,0 +1,7 @@
---
"@10up/babel-preset-default": patch
"@10up/eslint-config": patch
"@10up/stylelint-config": patch
---

Updating package.json links to point to the new repository
63 changes: 14 additions & 49 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions packages/babel-preset-default/package.json
Expand Up @@ -18,12 +18,13 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/10up/babel-preset-default.git"
"url": "git+https://github.com/10up/10up-toolkit.git",
"directory": "packages/babel-preset-default"
},
"bugs": {
"url": "https://github.com/10up/babel-preset-default/issues"
"url": "https://github.com/10up/10up-toolkit/issues"
},
"homepage": "https://github.com/10up/babel-preset-default#readme",
"homepage": "https://github.com/10up/10up-toolkit/tree/develop/packages/babel-preset-default#readme",
"dependencies": {
"@babel/core": "^7.16.0",
"@babel/helper-plugin-utils": "^7.14.5",
Expand Down
9 changes: 5 additions & 4 deletions packages/eslint-config/package.json
Expand Up @@ -23,14 +23,15 @@
},
"repository": {
"type": "git",
"url": "git+https://github.com/10up/eslint-config.git"
"url": "git+https://github.com/10up/10up-toolkit.git",
"directory": "packages/eslint-config"
},
"bugs": {
"url": "https://github.com/10up/eslint-config/issues"
"url": "https://github.com/10up/10up-toolkit/issues"
},
"author": "10up <info@10up.com> (https://10up.com)",
"license": "GPL-2.0-or-later",
"homepage": "https://github.com/10up/eslint-config#readme",
"homepage": "https://github.com/10up/10up-toolkit/tree/develop/packages/eslint-config#readme",
"keywords": [
"eslint",
"eslint-config",
Expand Down Expand Up @@ -62,7 +63,7 @@
},
"peerDependenciesMeta": {
"@wordpress/eslint-plugin": {
"optional": true
"optional": true
}
}
}
3 changes: 2 additions & 1 deletion packages/stylelint-config/package.json
Expand Up @@ -6,7 +6,8 @@
"homepage": "https://github.com/10up/10up-toolkit/tree/develop/packages/stylelint-config#readme",
"repository": {
"type": "git",
"url": "https://github.com/10up/10up-toolkit.git"
"url": "https://github.com/10up/10up-toolkit.git",
"directory": "packages/stylelint-config"
},
"publishConfig": {
"access": "public"
Expand Down
17 changes: 17 additions & 0 deletions packages/toolkit/README.md
Expand Up @@ -190,6 +190,23 @@ Alternatively you can specify the paths in `package.json`

Note that when overriding via the `filenames.config.js` you must export the filenames for all file types.

### WordPress Block Asset Handling

If your project includes blocks there are quite a few assets that need to get added to the list of entrypoints for Webpack to transpile. This can get quite cumbersome and repetitive. To make this easier toolkit has a special mode where it scans the source path for any `block.json` files and automatically adds any assets that are defined in there via the `script`, `editorScript`, `viewScript`, `style`, `editorStyle` keys with webpack.

It also automatically moves all files including the `block.json` and and PHP files to the `dist/blocks/` folder.

To opt into this mode you need to add the `useBlockAssets` option to your toolkit configuration:

```json
"10up-toolkit": {
"devURL": "https://my-project.test",
"useBlockAssets": true
}
```

By default the source directory for blocks is `./includes/blocks/`. This can be customized via the `blocksDir` key in the paths config.

### WordPress Editor Styles

By default 10up-toolkit will scope any css file named `editor-styles.css` files with the
Expand Down

0 comments on commit 010cea6

Please sign in to comment.