[wp-trac] [WordPress Trac] #45178: 5.0 About Page
WordPress Trac
noreply at wordpress.org
Thu Dec 6 15:11:03 UTC 2018
#45178: 5.0 About Page
----------------------------+--------------------------
Reporter: pixelverbieger | Owner: lonelyvegan
Type: task (blessed) | Status: reopened
Priority: normal | Milestone: 5.0
Component: Help/About | Version: 5.0
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+--------------------------
Comment (by aduth):
On the libraries list, while it's a good reflection of those which are
directly referenced for standalone script handles, there are some which
aren't reflected but rather are bundled within the `@wordpress/` packages
and provide immense value.
My suggestions would be:
- Prune polyfills
- Consolidate duplicates
- Add a few hand-selected ones from bundled packages.†
† My metric here is very rough, but a general gauge of "We'd be in a very
hard spot if these didn't exist"
Practically speaking, from the list above, this means:
Remove:
- Babel Polyfill
- Closest
- FormData
- Polyfill.io
- ReactDom
- watwg-fetch ''(sic)''
Add:
- [https://redux.js.org/ Redux] (state management underpinning
`@wordpress/data`)
- [http://showdownjs.com/ Showdown] (markdown parser, critical to Markdown
paste to blocks conversion)
- [https://www.npmjs.com/package/tinycolor2 tinycolor2] (color utilities
used for contrast accessibility warnings, most readable color suggestions)
- [https://github.com/tildeio/simple-html-tokenizer simple-html-tokenizer]
(key component to block validation)
Here's also a full list of package "dependencies" entries:
{{{
⇒ n_
n_ > _.uniq( _.flatten( require( 'fs' ).readdirSync( './packages' ).map( (
pkgName ) => Object.entries( require( './packages/' + pkgName +
'/package.json' ).dependencies || {} ).reduce( ( result, [ key, value ] )
=> [ ...result, key ], [] ) ) ) ).filter( ( pkgName ) => !
pkgName.startsWith( '@wordpress/' ) )
[ '@babel/runtime',
'lodash',
'memize',
'rememo',
'uuid',
'gettext-parser',
'@babel/plugin-proposal-async-generator-functions',
'@babel/plugin-proposal-object-rest-spread',
'@babel/plugin-transform-react-jsx',
'@babel/plugin-transform-runtime',
'@babel/preset-env',
'babel-core',
'classnames',
'url',
'hpq',
'showdown',
'simple-html-tokenizer',
'tinycolor2',
'clipboard',
'diff',
'dom-scroll-into-view',
'moment',
'mousetrap',
're-resizable',
'react-click-outside',
'react-dates',
'equivalent-key-map',
'escape-string-regexp',
'is-promise',
'redux',
'turbo-combine-reducers',
'moment-timezone',
'refx',
'inherits',
'jquery',
'react-autosize-textarea',
'redux-multi',
'redux-optimist',
'tinymce',
'traverse',
'react',
'react-dom',
'babel-eslint',
'eslint-plugin-jsx-a11y',
'eslint-plugin-react',
'sprintf-js',
'tannin',
'jest-matcher-utils',
'babel-jest',
'enzyme',
'enzyme-adapter-react-16',
'jest-enzyme',
'webpack-sources',
'postcss',
'rungen',
'chalk',
'cross-spawn',
'eslint',
'jest',
'npm-package-json-lint',
'read-pkg-up',
'resolve-bin',
'qs' ]
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/45178#comment:129>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list