- 3a5b540: Allow block-specific CSS entry points to get automatically generated for any CSS files in the
assets/css/blocks
directory.
- 8b74e5a: Simple enhancements to toolkit project command to align with devops needs.
- 7ce09d9: Fix: transform file extension for .ts and .tsx assets inside block.json files
- 7692784: Simple enhancements to toolkit project command to align with devops needs.
- 868ffdc: Fixing git clone path inside project command to support paths with spaces.
- dba1534: Project Command (BETA)
- dcc09bb: Fix: watch close when using modules
- 1aba76c: Fix project init command
- 58d5861: Fix init command
- d9f3642: Refactor init command
- 1f612a2: Update
project
command to use latest
- dcc09bb: Fix: watch close when using modules
- 1f612a2: Update
project
command to use latest
- d9f3642: Refactor init command
- 58d5861: Fix init command
- 1aba76c: Fix project init command
- dba1534: Project Command (BETA)
- Updated dependencies [5ddee2c]
- @10up/eslint-config@4.1.0-next.0
- a41a046: Add support for
scriptModule
&viewScriptModule
assets - 1693913: Bundle PostCSS Global Data Plugin with default configuration
- 20d2e65: Feature: allow defining module script entrypoints via
moduleEntry
key inpackage.json
decoupled from blocks
- 1693913: Bundle PostCSS Global Data Plugin with default configuration
- 20d2e65: Feature: allow defining module script entrypoints via
moduleEntry
key inpackage.json
decoupled from blocks
- a41a046: Add support for
scriptModule
&viewScriptModule
assets
- 73a9d57: Fix peer deps
-
71460c9: update default value of
useBlockAssets
to true. If you are not ready for it yet. SetuseBlockAssets
to false in your 10up-toolkitpackage.json
config.{ "name": "your-project", "10up-toolkit": { "useBlockAssets": false } }
-
091bb26: Update postcss-preset-env to ^9.0.0 from ^7.0.0 Swap postcss-editor-styles with postcss-editor-styles-wrapper which is compatible with PostCSS 8
-
e6c5140: Update linaria to next major and fix an issue with react-refresh plugin. Also drops support for node 14.
- e29ee64: Feature: sourcemap option for production builds
- 0c969ef: Add support to configure Webpack's publicPath
- 08f7c78: Add
.local
to the default list of supported domains. - 6c8dbb5: Update dependencies
- 91f266f: Fix HRM (again)
- 5a8f979: Stop using react fast refresh fork in favor of the upstream package
- 01ade56: Fix: allow overriding buildfiles.config.js, filenames.config.js and paths.config.js as stated in README
-
71460c9: update default value of
useBlockAssets
to true. If you are not ready for it yet. SetuseBlockAssets
to false in your 10up-toolkitpackage.json
config.{ "name": "your-project", "10up-toolkit": { "useBlockAssets": false } }
-
091bb26: Update postcss-preset-env to ^9.0.0 from ^7.0.0 Swap postcss-editor-styles with postcss-editor-styles-wrapper which is compatible with PostCSS 8
-
e6c5140: Update linaria to next major and fix an issue with react-refresh plugin. Also drops support for node 14.
- e29ee64: Feature: sourcemap option for production builds
- 0c969ef: Add support to configure Webpack's publicPath
- 08f7c78: Add
.local
to the default list of supported domains. - 6c8dbb5: Update dependencies
- 91f266f: Fix HRM (again)
- 5a8f979: Stop using react fast refresh fork in favor of the upstream package
- 01ade56: Fix: allow overriding buildfiles.config.js, filenames.config.js and paths.config.js as stated in README
- Updated dependencies [91f266f]
- Updated dependencies [ea9ca67]
- Updated dependencies [47c19c9]
- Updated dependencies [3fce625]
- @10up/babel-preset-default@2.1.1-next.0
- @10up/stylelint-config@3.0.0-next.0
- @10up/eslint-config@4.0.0-next.0
- d3ea57e: install @wordpress/eslint-plugin in toolkit by default
- d3ea57e: install @wordpress/eslint-plugin in toolkit by default
- Updated dependencies [b172081]
- @10up/stylelint-config@2.0.5-next.0
- a930021: Fix: prettier peerDependency range
- d3e6078: fix coply all php files inside the blocks directory into dist
- a930021: Fix: prettier peerDependency range
- Updated dependencies [a930021]
- @10up/eslint-config@3.1.1-next.0
- d3e6078: fix coply all php files inside the blocks directory into dist
- f3122e4: Updating several dependencies Better error messages when svg parsing fails
- 799afd5: Introduce support for Linaria (css-in-js) in toolkit.
- b682822: maybe insert style version hash to dist block.json files
- 7ee697b: Ensuring stylelint supports SCSS in a separate ruleset
- cb5d528: Fix: checking chunk path for block decision. Fix: Windows related issues
- Updated dependencies [7ee697b]
- @10up/stylelint-config@2.0.4
- 799afd5: Introduce support for Linaria (css-in-js) in toolkit.
- b682822: maybe insert style version hash to dist block.json files
- 7ee697b: Ensuring stylelint supports SCSS in a separate ruleset
- cb5d528: Fix: checking chunk path for block decision. Fix: Windows related issues
- Updated dependencies [7ee697b]
- @10up/stylelint-config@2.0.4-next.0
- Updated dependencies [0f29b56]
- @10up/eslint-config@3.0.0
- @10up/babel-preset-default@2.0.4
- @10up/stylelint-config@2.0.3
- 010cea6: Fix processing order whenever Sass is used
- Updated dependencies [010cea6]
- @10up/babel-preset-default@2.0.4
- @10up/eslint-config@2.4.7
- @10up/stylelint-config@2.0.2
- 45d73c4: Introduce
--include
option to instruct toolkit to transpile the specified package - 45d73c4: Add "none" format. Allowing to use "project mode" without producing a bundle that needs to be consumed through another bundler.
-
45d73c4: Improve Sass compatibility by making sure PostCSS runs after Sass has finished and also ensuring that PostCSS process the Sass pipeline.
Fixes #198 Fixes #228
-
45d73c4: Forks webpack-remove-empty-script into 10up-toolkit and remove the ansis dependency.
- c2298c3: Introduce
--include
option to instruct toolkit to transpile the specified package - 24a50b8: Add "none" format. Allowing to use "project mode" without producing a bundle that needs to be consumed through another bundler.
-
c7ddd46: Improve Sass compatibility by making sure PostCSS runs after Sass has finished and also ensuring that PostCSS process the Sass pipeline.
Fixes #198 Fixes #228
-
aec9ac4: Forks webpack-remove-empty-script into 10up-toolkit and remove the ansis dependency.
- 80e858f: fix how block editor styles get handled if useBlockAssets option is not set
- 80e858f: fix how block editor styles get handled if useBlockAssets option is not set
- 8bbd562: fix regression in block file names in dist folder if useBlockAssets option is not set
- 8bbd562: fix regression in block file names in dist folder if useBlockAssets option is not set
- 2e67b06: Replaces
squoosh
with a custom implementation usingsharp
for optimizing images. - d60ce6c: Refine the way block assets get handled. 10up-toolkit will now create Webpack entrypoints for any assets that are defined in any block.json files automatically for you. So no need to manually adding manual entrypoints per block.
- bc89638: Fix how webpack handles addition of new block.json files during watch mode
- 2e67b06: Replaces
squoosh
with a custom implementation usingsharp
for optimizing images.
- bc89638: Fix how webpack handles addition of new block.json files during watch mode
- d60ce6c: Refine the way block assets get handled. 10up-toolkit will now create Webpack entrypoints for any assets that are defined in any block.json files automatically for you. So no need to manually adding manual entrypoints per block.
-
64134a9: Adding unmissable notice (error) when using HMR and SCRIPT_DEBUG is not set to true
The recommended way of including the
fast-refresh.php
file is now the following:$is_local_env = in_array( wp_get_environment_type(), [ 'local', 'development' ], true ); $is_local_url = strpos( home_url(), '.test' ) || strpos( home_url(), '.local' ); $is_local = $is_local_env || $is_local_url; if ( $is_local && file_exists( __DIR__ . '/dist/fast-refresh.php' ) ) { require_once __DIR__ . '/dist/fast-refresh.php'; TenUpToolkit\set_dist_url_path( basename( __DIR__ ), TENUP_THEME_DIST_URL, TENUP_THEME_DIST_PATH ); }
-
86d68ac: Update
devServer
so the overlay only shows up on errors. UpdateStyleLintPlugin
so it setsfailOnError
tofalse
, similarly toEslintPlugin
.
- da9c394: Treat js files inside
block
orblocks
directories as blocks. #204
- c206d75: Remove grid autoprefixer. See #197
- f33afc6: Fix react-refresh-runtime entrypoint
- @10up/babel-preset-default@2.0.3
- @10up/eslint-config@2.4.6
- @10up/stylelint-config@2.0.1
- c206d75: Remove grid autoprefixer. See #197
- f33afc6: Fix react-refresh-runtime entrypoint
All notable changes to this project will be documented in this file, per the Keep a Changelog standard.
- Changed: 10up-toolkit no longer transpiles
@10up/block-components
. Make sure to use the latest version of@10up/block-components
that already ships transpiled code. #181 - Changed [BREAKING CHANGE]: Stop injecting
wp-polyfill
as dependency of scripts built by 10up-toolkit. #193. - Updated: Dependencies #182
- Changed [BREAKING CHANGE]: Stylelint and eslint are now peerDependencies. This is a breaking change only for those not using npm >= 7. #179
- Fixed:
dev-server
flag #178 - Added:
--target
option #176 - Added: Basic support for
exports
package.json field in package mode. #170
- Changed - Updated
@wordpress/eslint-plugin
to 11.0.0 to resolved an issue with conflicting prettier deps.
- Reverted - 10up's eslint plugin
- Added - Introduced the
--analyze
option to the build to enable webpack-bundle-analyzer #148 - Added - Introduced HMR and React Fast Refresh #150
- Added - Introduced
TenUpToolkitTscPlugin
that runs tsc both on build and watch if tsconfig.json is present. #151 - Changed - Eslint and stylelint now only lint changed files when building with webpack (lintDirtyModulesOnly) #146
- Changed - Replaced
imagemin-webpack-plugin
withimage-minimizer-webpack-plugin
#147 - Changed - Dropped
imagemin
in favor ofsquoosh
#157 - Changed - Updated
@svgr/webpack
to 6.2.1 and removedpostcss-object-fit-image
as it's not necessary. - Deprecated - BrowserSync #159
- Fix double dot issue in CopyWebpack plugin
- Stop removing viewbox in svgs.
- Added
.ico
and.otf
files to be copied via copy-webpack-plugin. - Updated eslint-config and eslint to 8.
- Updated several dependencies.
- Updated to postcss-preset-env 7.0 and switched from postcss-nested to postcss-nesting (BREAKING CHANGE)
- Disable polyfill for CSS custom properties.
- Removed wordpress/jest-preset-default and now shipping a custom jest config. Jest has also been updated to the latest version.
- [Security] Updated deps
- Fixed: Allows passing a
--port
flag to browser-sync10up-toolkit start|watch --port=3002
#95 - Fixed: dev-server public path #98
- Fixed empty scripts output when a CSS entry is added.#91
- Updated deps 82
- Remove husky from 10up-toolkit [81] (Updated: Husky to 6.x)
- Fixed PostCSS nested plugin. props @rdimascio
- Fixed: Typo in HtmlWebpackPlugin where it was looking for the template in public folder instead of folder. Additionally, it now only defines a custom template if it is defined in the project.
- Fixed: webpack externals definitions #67
- Fixed: Regex in asset/resources. #63
- Fixed: Babel transpilation for publishing packages
["sourceType": "unambiguous"]
. #63 - Fixed: Webpack Externals definition #63
- Update: Prettier to 1.3.0 and stop using version range. #64
- Added: Support for CSS Modules. #65
- Exit with an error code if build fails
- Update @10up/eslint-config to 2.3.5
- Update @10up/babel-preset-defaylt to 1.1.2
- Add TypeScript support
- Update @10up/stylelint-config to 1.1.1
- Adds cache busting to chunk files generated via Webpack code splitting.
- Added support for SCSS and Sass files.
- Adds support for authoring libraries.
- Deprecate 10up-scripts command and exposes a new 10up-toolkit command.
- Disables webpack css-loader url resolution #39
- Only load and run the postcss-editor-styles plugin when processing editor-style.css #41
- Fixes a bug where webpack was not targeting the same browsers as babel, causing code to not run on older browsers like IE 11. #35
- Updates eslint to 2.3.4 to address #27
- Updates postcss.config.js to include missing packages and to fix a bug where editor styles wasn't being wrapped with the
.editor-styles-wrapper
class.