Skip to content

jazkarta/plone.staticresources

This branch is 352 commits behind plone/plone.staticresources:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3620e5f · Feb 10, 2023
Nov 16, 2018
Feb 10, 2023
Feb 10, 2023
Jan 26, 2018
Mar 23, 2022
Jul 8, 2022
Mar 23, 2022
Feb 10, 2023
Oct 1, 2018
Nov 14, 2019
Jun 1, 2022
Feb 10, 2023
Dec 12, 2022
Feb 1, 2020
Feb 10, 2023
Feb 8, 2019
Nov 16, 2018
Jun 27, 2022
Feb 10, 2023
Aug 12, 2022
Feb 10, 2023

Repository files navigation

plone.staticresources

This add-on contains Fonts, Icons and JavaScript used by Plone Classic-UI.

How to upgrade the resources in this package

> NOTE: > Changes to JavaScript functionality must be done outside this package. > If you want to fix something or add functionality please go to > the [mockup](https://github.com/plone/mockup.git) repository and follow the > instructions there. This package is only to deliver the generated bundles.

  1. Add plone.staticresources and mockup to checkouts.cfg in buildout.coredev and do the buildout.
  2. Update JavaScript resources in mockup and request a release on npmjs.
  3. Update dependency versions (eg. new mockup release) in package.json here.
  4. Run make all to compile the bundles and map Bootstrap icons to the registry files located in src/plone/staticresources/profiles/default/registry/icons_*.xml.
  5. Submit a Pull Request and run the tests on Jenkins.

What has changed

Since Plone 6.x we use webpack to compile bundles. See configuration in webpack.config.js.

Bundle build analyzation

https://survivejs.com/webpack/optimizing/build-analysis/ https://formidable.com/blog/2018/finding-webpack-duplicates-with-inspectpack-plugin/

Build the stats.json file:

npx yarn stats

Check dependency tree and why which package was included https://www.npmjs.com/package/whybundled

npx whybundled stats.json

Visualize dependency tree and analyze bundle size: https://www.npmjs.com/package/webpack-bundle-analyzer

npx webpack-bundle-analyzer stats.json

License

The project is licensed under the GPLv2.

Releases

No releases published

Packages

No packages published

Languages

  • Python 47.3%
  • Less 33.0%
  • JavaScript 8.7%
  • Makefile 8.2%
  • CSS 2.8%