Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Packages: Move packages repository into Gutenberg #7556

Merged
merged 457 commits into from
Jul 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
457 commits
Select commit Hold shift + click to select a range
9f4cefc
camelCase for readme variable names
Sep 7, 2017
73744fa
update hook and `vendor/plugin/function` wording, removing `Name`
Sep 12, 2017
7465667
complte namespace shortening to `vendor/plugin/function`
Sep 13, 2017
18fed13
Merge pull request #13 from adamsilverstein/add-wp-hooks
Sep 22, 2017
48e6cda
Merge branch 'master' of github.com:WordPress/packages
Sep 25, 2017
5b19507
Publish
Sep 25, 2017
01902b3
add publishConfig->access:public for hooks
Sep 25, 2017
c45acef
Merge branch 'make-hooks-public'
Sep 25, 2017
cc83cde
Publish
Sep 25, 2017
5ae0096
correctly enable dashes in regexes in validateNamespace
Sep 25, 2017
5329048
Export a hooks function enabling adding hooks via composition
Sep 27, 2017
7dc5198
test hooks can be instantiated
Sep 27, 2017
8931715
Run test on objects instead of globally
Sep 27, 2017
44c0c6f
correct data return for Hooks
Sep 27, 2017
e9c7002
Rework the Hooks object, use a local HOOKS instead of global
Sep 27, 2017
7c69c03
use object based hooks throughout testing
Sep 27, 2017
3863e35
remove unused global HOOKS
Sep 27, 2017
3ccbc36
remove some logging
Sep 27, 2017
76f706a
remove extra parts from namespace in tests
Sep 27, 2017
f552dae
remov vendor/plugin prefix requirement for namespaces
Sep 27, 2017
a71e346
update docs
Sep 27, 2017
3b19868
Add a test for “Can add filters with dashes in namespaces”
Sep 28, 2017
74212b9
Merge pull request #39 from WordPress/fix/correct-namespace-check-for…
Sep 29, 2017
8fffdc8
a11y: Apply .screen-reader-text styles to container
aduth Oct 3, 2017
49e57d9
a11y: Update tests per updated style
aduth Oct 3, 2017
adf8b18
update readme, add some tests
Oct 9, 2017
5aa44bd
Merge branch 'master' of github.com:WordPress/packages
Oct 9, 2017
4f07420
Merge branch 'master' into add-hooks-via-composition
Oct 9, 2017
b8d5f28
switch naming to `createHooks` and correct tests
Oct 9, 2017
031fdfd
remove extraneous single quotes
Oct 9, 2017
4cf3749
remove the HOOKS global abstraction
Oct 12, 2017
e91f92c
update test beforeEach cleanup to match new object structure
Oct 12, 2017
5a6a918
use export defaults
Oct 12, 2017
f1c4f1f
Clean up readme for new approach
Oct 12, 2017
a38c8b5
url - add built files
Oct 22, 2017
7664e98
hooks - add built files
Oct 22, 2017
352f832
dom-ready - add built files
Oct 22, 2017
ed024aa
a11y - add built files
Oct 22, 2017
ebeb029
remove build filders from gitignore
Oct 22, 2017
efb7cec
Merge branch 'add-built-files-for-release'
Oct 22, 2017
c5594e3
Publish
Oct 22, 2017
9546ea6
re-ignore build files; didn’t resolve publishing issue
Oct 22, 2017
00650e9
Simplify dom-ready package.json, add a license field
Oct 22, 2017
46c861d
Merge branch 'package-work'
Oct 22, 2017
0ae2073
Publish
Oct 22, 2017
ba3796a
Update readmes to include `@next` in npm install line
Oct 22, 2017
60c694b
Merge branch 'clarify-installation-instructions'
Oct 22, 2017
b16c8ba
Publish
Oct 22, 2017
72f19ed
Merge branch 'master' into add-hooks-via-composition
Oct 22, 2017
2f754e1
Merge pull request #40 from WordPress/add-hooks-via-composition
Oct 22, 2017
02e01a7
Merge branch 'master' of github.com:WordPress/packages
Oct 22, 2017
04ce84e
remove the built files which were added by mistake
Oct 22, 2017
6f188eb
Merge branch 'remove-built-files'
Oct 22, 2017
d62ecb7
Publish
Oct 22, 2017
12b5c6c
Hooks: Update hooks public API to make it possible to apply to wp.hoo…
gziolo Nov 27, 2017
4ad0565
Development: Improve onboarding experience for new contributors (#46)
gziolo Nov 28, 2017
8e6bfcf
Merge pull request #42 from WordPress/fix/38-speak-region-overflow
omarreiss Nov 28, 2017
2c9059b
Update screen-reader-text CSS.
afercia Nov 28, 2017
058ca22
Merge pull request #49 from WordPress/update/screen-reader-text-css
omarreiss Nov 28, 2017
2d1f478
Hooks: Allow slashes in the namespace (#47)
gziolo Nov 28, 2017
86db232
Merge branch 'master' of github.com:WordPress/packages
Nov 28, 2017
1b693b9
Publish
Nov 28, 2017
99f5046
a11y & hooks: remove ‘@next’ from install instructions
Nov 28, 2017
2b2583c
Merge pull request #50 from WordPress/fix/update-readme-after-release
Nov 28, 2017
eeef5a8
Merge branch 'master' of github.com:WordPress/packages
Nov 29, 2017
96ec440
tag a11y and hooks at 1.0.1
Nov 29, 2017
f71e108
Merge pull request #51 from WordPress/tag-101-release
Nov 29, 2017
e0e090c
Merge branch 'master' of github.com:WordPress/packages
Nov 29, 2017
8bf8697
Trigger actions when adding or removing hooks
Dec 15, 2017
a0da7d3
add tests for expected hookAdded and hookRemoved events
Dec 15, 2017
91c32b8
these are hooks not hoods (typo)
Dec 15, 2017
80cc076
Tests: Refactor tests to use Jest mocks
gziolo Dec 19, 2017
f4ef661
Standardize format of package.json files (#54)
gziolo Dec 19, 2017
c58b48a
Merge pull request #3 from ntwb/patch-1
omarreiss Dec 19, 2017
9ddb95c
Merge branch 'feature/events-on-add-remove' of github.com:WordPress/p…
Dec 20, 2017
17cab19
Add tests for addFilter/removeFilter
Dec 20, 2017
ffaeb17
whitespace
Dec 20, 2017
9d7c064
Docs update for hooks added/removed events
Dec 20, 2017
cceb16f
Hooks: Final touches for the add/remove actions
gziolo Dec 21, 2017
cce12c7
Merge pull request #52 from WordPress/feature/events-on-add-remove
gziolo Dec 21, 2017
e3cec64
Publish
gziolo Dec 21, 2017
6cbae56
Update Lerna and Jest to the latest version (#56)
gziolo Dec 21, 2017
b99fb28
Implement autop package
aduth Dec 15, 2017
a0aa145
Port PHP wpautop faithfully to JS
aduth Dec 15, 2017
724b7c4
Merge pull request #53 from WordPress/add/wpautop
aduth Jan 4, 2018
fe778c4
docs: Update Lerna docs to use `npx`
ntwb Jan 5, 2018
9a0ffc5
Update license in `package.json` to adhere to SPDX v3.0 specification
ntwb Jan 6, 2018
e779e55
Update license in `package.json` to adhere to SPDX v3.0 specification
ntwb Jan 6, 2018
7b895a7
Enforce using the latest LTS version (8.x) of Node and up
gziolo Jan 9, 2018
daf9490
Move node version check to prebuild run script
gziolo Jan 9, 2018
75251a4
Remove superfluous `a` and use full Node.js name
ntwb Jan 9, 2018
f88a46b
Merge pull request #61 from WordPress/update/node-version
gziolo Jan 9, 2018
8471a1a
Jest-console: Add new package with console object matchers for Jest
gziolo Jan 8, 2018
5b12b26
Jest-console: Add package documentation
gziolo Jan 8, 2018
dbbcc5a
Jest-console: Integrate test matchers with packages repository
gziolo Jan 9, 2018
4c1617c
Jest-console: Fix typos in README file
gziolo Jan 10, 2018
3f4fa03
Jest-console: Whitelist folders published to npm
gziolo Jan 10, 2018
836b047
Merge pull request #60 from WordPress/add/jest-console
gziolo Jan 10, 2018
2695155
Update install instruction in README files that use beta releases (#63)
gziolo Jan 10, 2018
f420aca
Publish
gziolo Jan 10, 2018
26ef4e0
chore: Update `.editorconfig` to match WordPress' upstream
ntwb Jan 12, 2018
36999a1
chore: Use tabs for indentaion in `lerna.json`
ntwb Jan 12, 2018
cdaef5c
chore: Use tabs for indentaion in _root_ `package.json` and `package-…
ntwb Jan 12, 2018
c3902cf
chore: Use tabs for indentaion in _url_ package `package.json` and `p…
ntwb Jan 12, 2018
790bd51
chore: Use tabs for indentaion in _jest-console_ package `package.jso…
ntwb Jan 12, 2018
95c1c6b
chore: Use tabs for indentaion in _hooks_ package `package.json` and …
ntwb Jan 12, 2018
e7f0d09
chore: Use tabs for indentaion in _dom-ready_ package `package.json` …
ntwb Jan 12, 2018
f45e71e
chore: Use tabs for indentaion in _autop_ package `package.json` and …
ntwb Jan 12, 2018
6114576
chore: Use tabs for indentaion in _a11y_ package `package.json` and `…
ntwb Jan 12, 2018
d45165d
chore: Update _autop_ `package.json` fields
ntwb Jan 12, 2018
07f3600
Babel-preset-default: Add new package containing the default Babel co…
gziolo Jan 23, 2018
3d50441
Publish (#67)
gziolo Jan 23, 2018
7ee6367
Scripts: New scripts package containing test command (#62)
gziolo Jan 25, 2018
5d23873
Publish
gziolo Jan 25, 2018
31173fa
feat: Add `@wordpress/browserslist-config` package
ntwb Jan 23, 2018
31b59fc
docs: fix spelling in CHANGELOG.md and consistent formatting
ntwb Jan 26, 2018
ffffaab
chore: remove `browserslist` from `peerDependencies`
ntwb Jan 26, 2018
47e7db9
tests(browserslist-config): refactor test per coding standards
ntwb Jan 26, 2018
403e812
Packages: Make sure dependencies are properly exposed for external us…
gziolo Jan 26, 2018
7d0034c
Publish
gziolo Jan 26, 2018
324fb0c
Babel-preset-default: Makre sure transform runtime plugin is not load…
gziolo Jan 26, 2018
261f818
Publish
gziolo Jan 26, 2018
fdd1458
📦 NEW: Update Lerna to 2.8.0
Jan 25, 2018
b44fd21
chore: use tabs for indentation in `lerna.json`
ntwb Jan 26, 2018
aa821b7
build: use `browserslist-config-wordpress` Browserslist shared config…
ntwb Feb 1, 2018
4466f21
Jest preset: Add default jest preset for WordPress development (#74)
gziolo Feb 1, 2018
c3b70c1
Publish
gziolo Feb 1, 2018
0f13b89
Tests: Fix wrongly configured dependencies for Jest preset (#75)
gziolo Feb 1, 2018
ae947d0
Publish
gziolo Feb 1, 2018
47ff850
Dependencies: Update Jest preset dependencies version (#76)
gziolo Feb 1, 2018
821994f
Build: Symlink all child packages instead of using versions published…
gziolo Feb 9, 2018
b07155e
docs: add link to browserslist usage examples docs (#80)
ntwb Feb 13, 2018
8f2d224
chore(browserslist): update Browserslist to v3.0.0
ntwb Feb 13, 2018
ddc7809
chore(browserslist): update Browserslist to v3.1.0
ntwb Feb 15, 2018
7dcc942
Publish
ntwb Feb 15, 2018
9c5f33d
chore: update Lerna to 2.9.0
ntwb Feb 19, 2018
05e178c
Build: Use node script to symlink local npm dependencies (#79)
gziolo Feb 20, 2018
af48bde
docs: ❤️ Code is Poetry
ntwb Feb 13, 2018
445072e
docs: use canonical _Code is Poetry_ image and center image using HTML
ntwb Feb 20, 2018
6b94f93
Scripts: Provide the default configuration for the `test` command (#83)
gziolo Feb 21, 2018
9944a02
fix(scripts): rename script from `test-unit` to `test-unit-js` (#86)
ntwb Feb 21, 2018
092fc71
Chore: Update Jest dependencies (#87)
gziolo Feb 21, 2018
5e59924
Publish
gziolo Feb 21, 2018
79c7676
chore: remove `package-lock.json` files, lockfiles for apps, but not …
ntwb Feb 22, 2018
6c3ea1a
chore: add `package-lock.json` to `gitignore`
ntwb Feb 22, 2018
eedf9d0
chore: add `package-lock=false` in new `.npmrc` files for each package
ntwb Feb 22, 2018
88e5563
chore: add `"npmClientArgs": ["--no-package-lock"]` to Lerna `bootstr…
ntwb Feb 22, 2018
e116f2a
Remove Lerna `npmClientArgs` option
ntwb Feb 23, 2018
64e05c0
Hooks: Add baseline benchmark
aduth Feb 19, 2018
0abe667
Hooks: Avoid validating namespace in runHooks
aduth Feb 17, 2018
9c44f03
Hooks: Use null prototype object with truthy access
aduth Feb 17, 2018
223397c
Hooks: Simplify return first arg logic
aduth Feb 17, 2018
c6220a3
Hooks: Assign hooks current initial value in creation
aduth Feb 17, 2018
8d5854b
Hooks: Avoid initializing hook history if not run
aduth Feb 17, 2018
d0c807d
Merge pull request #85 from WordPress/update/run-hooks-perf
aduth Feb 27, 2018
1232b9d
Publish
aduth Feb 27, 2018
3c62e78
Wrap filename in backticks
ntwb Mar 13, 2018
712e599
Package: Add `@wordpress/custom-templated-path-webpack-plugin` package
aduth Mar 18, 2018
95dc85c
chore: add` jest-preset` keyword to `jest-preset-default`
ntwb Mar 17, 2018
ade460f
Hooks: Fix undefined arguments on consecutive action callbacks
aduth Mar 16, 2018
6be1af4
Merge pull request #90 from WordPress/fix/action-undef
aduth Mar 21, 2018
3d729f9
Hooks: Correct CHANGELOG version to 1.1.6
aduth Mar 21, 2018
1166624
Publish
aduth Mar 21, 2018
7025e0f
Merge pull request #93 from WordPress/add/custom-templated-path-plugin
aduth Mar 21, 2018
138c958
Custom Templated Path Plugin: Remove debugging statement from tests
aduth Mar 21, 2018
8770132
docs: updated handbook URL
ntwb Mar 22, 2018
0004c6a
docs: update the Browserslist example repo URL (#98)
ntwb Mar 27, 2018
ec90828
WordPress i18n package: Initial commit (#96)
youknowriad Apr 4, 2018
8009690
docs(i18n): Standardize `README.md` format
ntwb Apr 4, 2018
ddc18d0
Publish
youknowriad Apr 4, 2018
e743ff1
return a boolean from `hasHook` not the hook count
Apr 9, 2018
2b3c8bf
simplify logic
Apr 9, 2018
b4b8568
update tests to expect booleans from hasFilter/Action
Apr 9, 2018
d166c75
Clean up docs and return
Apr 9, 2018
d674f3b
Merge pull request #102 from WordPress/fix/has-return-boolean
Apr 10, 2018
d268a2f
Add `publish:check` script to run `lerna updated`
ntwb Mar 19, 2018
28b26c8
babel-preset-default: Remove babel-plugin-lodash (#109)
aduth Apr 12, 2018
9e66c08
Publish
aduth Apr 12, 2018
ed56276
i18n: Support accumulatively registering additional locale data for d…
nerrad Apr 12, 2018
2bd43bb
i18n: Memoize dcnpgettext (#101)
aduth Apr 12, 2018
21f3cea
Publish
aduth Apr 12, 2018
aac5139
Add WordCounter package (#10)
ryanwelcher Apr 24, 2018
510cd3e
Add prependHTTP() to @wordpress/url (#112)
pento Apr 25, 2018
e3547ea
Publish
pento Apr 25, 2018
28901fe
Add a publishConfig setting to wordcount's package.json, and fix the …
pento Apr 25, 2018
1c4d1b0
Improve the publishing process documentation and error checking (#115)
pento Apr 25, 2018
fdc7f0b
Add package: @wordpress/is-shallow-equal (#110)
aduth Apr 25, 2018
ee842ec
Add test for arrays being completely equal (#117)
aaronjorbin Apr 30, 2018
e83cca2
is-shallow-equal: Fall back to strict equality for non-object-like (#…
aduth May 1, 2018
ffa7b84
is-shallow-equal: Add changelog entry for 1.0.1
aduth May 1, 2018
f6477d7
wordcount: Add changelog entry for 1.0.1
aduth May 1, 2018
3dbd3a5
Publish
aduth May 1, 2018
6c114c1
Improve hooks docs (#121)
May 7, 2018
aaa44c2
Add a missing `p` in the docs remove -> removep (#120)
May 7, 2018
4892728
Fix/wordcount whitespace only error (#123)
ryanwelcher May 7, 2018
3cb9455
is-shallow-equal: Use implicit index.js for main entry (#124)
aduth May 8, 2018
aa2bfdb
Add autop@1.0.5 CHANGELOG entry
aduth May 8, 2018
fcc4098
Add hooks@1.1.7 CHANGELOG entry
aduth May 8, 2018
c8c30ff
Add is-shallow-equal@1.0.2 CHANGELOG entry
aduth May 8, 2018
c9d17f4
Add wordcount@1.0.2 CHANGELOG entry
aduth May 8, 2018
06d814e
Correct autop, hooks latest CHANGELOG versions
aduth May 8, 2018
8a2dea2
Publish
aduth May 8, 2018
240be25
Add `@wordpress/npm-package-json-lint-config` package (#119)
ntwb May 17, 2018
2bd7f09
Add wordcount@1.0.3 CHANGELOG entry
ntwb May 18, 2018
e4ef9f7
Add scripts@1.1.5 CHANGELOG entry
ntwb May 18, 2018
3fb3adc
Add npm-package-json-lint-config@1.0.0 CHANGELOG entry
ntwb May 18, 2018
00435a7
Add jest-preset-default@1.0.5 CHANGELOG entry
ntwb May 18, 2018
8f13cb8
Add jest-console@1.0.6 CHANGELOG entry
ntwb May 18, 2018
e4a5832
Add i18n@1.1.1 CHANGELOG entry
ntwb May 18, 2018
2bf33a1
Add custom-templated-path-webpack-plugin@1.0.2 CHANGELOG entry
ntwb May 18, 2018
cbb88fd
Add browserslist-config@2.1.3 CHANGELOG entry
ntwb May 18, 2018
402c261
Add babel-preset-default@1.2.1 CHANGELOG entry
ntwb May 18, 2018
14c53f7
Add babel-plugin-makepot@1.0.1 CHANGELOG entry
ntwb May 18, 2018
a113a40
Add browserslist-config@2.1.4 CHANGELOG entry
ntwb May 18, 2018
6b6a311
Add jest-preset-default@1.0.6 CHANGELOG entry
ntwb May 18, 2018
fabd540
Add jest-console@1.0.7 CHANGELOG entry
ntwb May 18, 2018
5de9931
Add a custom Lerna publish commit message (#125)
ntwb May 18, 2018
d409ace
chore(release): publish
ntwb May 18, 2018
4a991ec
Babel preset: Enable support for async generator functions (#126)
gziolo May 22, 2018
7ccb075
chore(release): publish
gziolo May 22, 2018
4beeb1a
chore: update `codecov` to v3, resolves all `npm audit` issues. (#127)
ntwb May 22, 2018
04093f5
Scripts: Add support for lint-pkg-json script (#128)
gziolo May 23, 2018
5f3ea6e
Scripts: Update changelog
gziolo May 29, 2018
187736a
chore(release): publish
gziolo May 29, 2018
7df1923
Count when a hook that doesn't have any handlers is run. (#134)
pento Jun 5, 2018
c24da3a
chore(release): publish
pento Jun 5, 2018
39314f7
Jest Console: Add new matchers for console.log and console.info (#137)
gziolo Jun 26, 2018
7694466
Add 'temp-packages/' from commit '39314f7068fb1ac5f7206ef01b0cf561b30…
omarreiss Jun 26, 2018
bc72066
Move packages from temporary directory to packages/
omarreiss Jun 26, 2018
2e1ec9e
Remove all the obsolete files from the old packages
omarreiss Jun 26, 2018
374ca8e
Synchronize package.json with the one from packages.
omarreiss Jun 26, 2018
f9ac44b
Synchronize lerna.json with the one from packages
omarreiss Jun 26, 2018
dbd509c
Remove old packages build script
omarreiss Jun 26, 2018
9c2d450
Add `is-shallow-equal/benchmark` to codecov ignore
ntwb Jun 27, 2018
a268477
Remove npm-run-all
ntwb Jun 27, 2018
92d6981
Packages: Synchronize dependencie to avoid having copies of the same …
gziolo Jun 27, 2018
b55e242
Tests: Update test config to work with local packages
gziolo Jun 27, 2018
192b4df
ESLint initial fixes via --fix
ntwb Jun 27, 2018
bdad685
Build: Make Webpack build work again :)
gziolo Jun 27, 2018
e1a4281
Build: Fix the issue with babel makepot plugin
gziolo Jun 27, 2018
d1b00d5
Packages: Fix all linter errors
gziolo Jun 27, 2018
bc6aff3
Build: Use Lerna 3 for managing packages
gziolo Jun 27, 2018
56f9852
Merge remote-tracking branch 'origin/master' into add-packages
gziolo Jun 28, 2018
cf5acdc
Packages: Fix configuration with newly introduced packages
gziolo Jun 28, 2018
713980a
Testing: Try to fix jest-console tests
gziolo Jun 28, 2018
7ec4171
Testing: Try to fix jest-console tests
gziolo Jun 28, 2018
aa17df7
Merge branch 'add-packages' of github.com:WordPress/gutenberg into ad…
ntwb Jun 28, 2018
1bc5ff6
jest-preset-default: Alphabetize dependencies
ntwb Jun 28, 2018
af26e94
Testing: Use toThrowError matcher for jest-console
gziolo Jul 6, 2018
00b3825
Merge remote-tracking branch 'origin/master' into add-packages
gziolo Jul 9, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions bin/packages/get-babel-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,17 @@
* External dependencies
*/
const { isArray, map } = require( 'lodash' );
const babelPluginTransformReactJSX = require( 'babel-plugin-transform-react-jsx' );
const babelPresetEnv = require( 'babel-preset-env' );

/**
* WordPress dependencies
*/
const babelDefaultConfig = require( '@wordpress/babel-preset-default' );

const plugins = map( babelDefaultConfig.plugins, ( plugin ) => {
if ( isArray( plugin ) && plugin[ 0 ] === babelPluginTransformReactJSX ) {
// TODO: It should become the default value when all modules are moved to packages.
return [ babelPluginTransformReactJSX, { pragma: 'createElement' } ];
}

return plugin;
} );
const plugins = babelDefaultConfig.plugins;

if ( ! process.env.SKIP_JSX_PRAGMA_TRANSFORM ) {
plugins.push( [ require( '../../packages/babel-plugin-import-jsx-pragma' ).default, {
plugins.push( [ require( '@wordpress/babel-plugin-import-jsx-pragma' ).default, {
scopeVariable: 'createElement',
source: '@wordpress/element',
isDefault: false,
Expand Down
4 changes: 4 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ coverage:
patch: off

comment: false

ignore:
- "packages/is-shallow-equal/benchmark/*"

7 changes: 5 additions & 2 deletions lerna.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{
"lerna": "2.11.0",
"commands": {
"command": {
"publish": {
"message": "chore(release): publish"
}
},
"ignoreChanges": [
"**/benchmark/*.js",
"**/test/**"
],
"packages": [
"packages/*"
],
Expand Down
Loading