10up-toolkit

Official 10up asset building toolkit.

Downloads
127.2K
Stars
113
Committers
25

Bot releases are visible (Hide)

10up-toolkit - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • 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.
    Update StyleLintPlugin so it sets failOnError to false, similarly to EslintPlugin.

props @Antonio-Laguna @nicholasio

10up-toolkit - [email protected]

Published by github-actions[bot] over 2 years ago

Patch Changes

  • da9c394: Treat js files inside block or blocks directories as blocks. #204

props @tlovett1

10up-toolkit - [email protected]

Published by nicholasio over 2 years ago

Minor Changes

All notable changes to this project will be documented in this file, per the Keep a Changelog standard.

10up-toolkit - [email protected]

Published by github-actions[bot] over 2 years ago

Minor Changes

All notable changes to this project will be documented in this file, per the Keep a Changelog standard.

10up-toolkit - [email protected]

Published by nicholasio over 2 years ago

  • 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 dependecy 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

props: @nicholasio @Antonio-Laguna

10up-toolkit - [email protected]

Published by nicholasio over 2 years ago

  • Fixed: dev-server flag #178
  • Added: --target option #176
  • Added: Basic support for exports package.json field in package mode. #170

props @nicholasio

10up-toolkit - [email protected]

Published by nicholasio over 2 years ago

Users should no longer get warnings or errors about conflicting prettier dependencies. Additionally running npm ls prettier will no longer show the wp fork of prettier as being installed.

10up-toolkit - 10up-toolkit v3.0.0

Published by nicholasio over 2 years ago

10up-toolkit

  • 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 with image-minimizer-webpack-plugin #147
  • Changed - Droped imagemin in favor of squoosh #157
  • Changed - Updated @svgr/webpack to 6.2.1 and removed postcss-object-fit-image as it's not necessary.
  • Deprecated - BrowserSync #159

@10up/eslint-config

2.4.2

@10up/stylelint-config

1.1.4

  • Changed: Replaced stylelint-declaration-use-variable (deprecated) with stylelint-declaration-strict-value #160

props: @nicholasio @fabiankaegy

10up-toolkit - [email protected]

Published by nicholasio over 2 years ago

  • 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 to use eslint 8.
  • Updated deps

props @Antonio-Laguna @nicholasio

10up-toolkit - 10up-toolkit v2

Published by nicholasio almost 3 years ago

10up-toolkit

  • 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.
  • Removed: IE 11 support. [BREAKING CHANGE]

babel-preset-default

  • Removed: IE 11 support. [BREAKING CHANGE]
  • Updated dependencies

eslint-config

  • Updated dependencies

stylelint-config

  • updated dependencies
  • Change Stylelint configuration to allow color properties to use any of the global CSS values without a variable.

Migrating from v1

  • 10up-toolkit no longs ships code compatible with IE 11, if you're currently supporting IE 11 you will need to drop support for IE 11 or manually modify the webpack and babel config (not recommended)
  • postcss-preset-env has been updated to 7.0 and postcss-nested has been replaced with postcss-nesting. If your project uses postcss-nested syntax, you will need to update it to be compatible with postcss-nesting syntax.

props @nicholasio @rdimascio @Antonio-Laguna @ian-pvd

10up-toolkit - [email protected]

Published by nicholasio almost 3 years ago

[Security] Updated deps

10up-toolkit - 1.0.12

Published by nicholasio about 3 years ago

  • Fixed: BrowserSync Config #105
  • Fixed: webpack watch command #105
  • Updated deps
10up-toolkit - [email protected]

Published by nicholasio about 3 years ago

  • Fixed: Allows passing a --port flag to browser-sync 10up-toolkit start|watch --port=3002 #95
  • Fixed: dev-server public path #98
10up-toolkit - [email protected]

Published by nicholasio about 3 years ago

  • Fixed empty scripts output when a CSS entry is added.#91
10up-toolkit - [email protected]

Published by nicholasio over 3 years ago

10up-toolkit

[1.0.9]

  • Updated deps 82
  • Remove husky from 10up-toolkit [81] (Updated: Husky to 6.x)

@10up/babel-preset-default

[1.2.0]

  • Removed: @wordpress/babel-preset-default is not a dependency anymore, instead, we bring in the specific WordPress config needed. 82
  • Updated deps 82

@10up/eslint-config

[2.3.6]

  • Updated deps 82
10up-toolkit - [email protected]

Published by nicholasio over 3 years ago

  • Fixed PostCSS nested plugin. props @rdimascio
  • Fixed: Typo in HtmlWebpackPlugin where it was looking for the template in pulic folder instead of public folder. Additionally, it now only defines a custom template if it is defined in the project.
10up-toolkit - @10up/[email protected]

Published by nicholasio over 3 years ago

  • Add stylelint support for mixins. Props @rdimascio
10up-toolkit - [email protected]

Published by nicholasio over 3 years ago

Fixed: Babel error when running jest.
Added: Webpack dev server

10up-toolkit - [email protected]

Published by nicholasio over 3 years ago

  • 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
10up-toolkit - [email protected]

Published by nicholasio over 3 years ago

1.0.4

  • Exit with an error code if build fails