-
Notifications
You must be signed in to change notification settings - Fork 13
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
Update package.json
dependencies
#113
Changes from 17 commits
6c14de5
6ae7c89
4d57f54
894bbd2
4257b76
480bc1f
44e145c
a1040d9
9e436e8
7a3702e
741b3dc
3f2db9d
e977888
80f5564
ed33b35
a363e13
a746ca5
3298f02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
version: 2.1 | ||
|
||
orbs: | ||
node: circleci/[email protected] | ||
node: circleci/[email protected] | ||
php: circleci/[email protected] | ||
|
||
references: | ||
PLUGIN_PATH: &PLUGIN_PATH | ||
|
@@ -18,15 +19,6 @@ commands: | |
steps: | ||
- run: composer remove --dev phpunit/phpunit && composer install && npm ci && npm run build | ||
|
||
install-composer: | ||
description: "Installing Composer" | ||
steps: | ||
- run: | ||
command: | | ||
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | ||
EXPECTED_SIGNATURE=$(curl -s https://composer.github.io/installer.sig) | ||
ACTUAL_SIGNATURE=$(php -r "echo hash_file('sha384', 'composer-setup.php');") | ||
[[ "$EXPECTED_SIGNATURE" == "$ACTUAL_SIGNATURE" ]] && sudo php composer-setup.php --install-dir=/bin --filename=composer || exit 1 | ||
nodegit-workaround: | ||
description: "Ensure nodegit runs without error" | ||
steps: | ||
|
@@ -38,8 +30,7 @@ jobs: | |
name: php | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: '14.18.1' | ||
- node/install | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It looks like the orb now finds the Node version from |
||
- nodegit-workaround | ||
- set-up-packages | ||
- run: npm run lint | ||
|
@@ -61,8 +52,7 @@ jobs: | |
MYSQL_ROOT_PASSWORD: wordpress | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: '14.18.1' | ||
- node/install | ||
- nodegit-workaround | ||
- run: | ||
name: Installing WordPress and setting up tests | ||
|
@@ -88,8 +78,7 @@ jobs: | |
executor: php | ||
steps: | ||
- checkout | ||
- node/install: | ||
node-version: '14.18.1' | ||
- node/install | ||
- nodegit-workaround | ||
- run: HUSKY_SKIP_INSTALL=1 npm ci && npm run test:js -- --maxWorkers=2 | ||
|
||
|
@@ -99,16 +88,10 @@ jobs: | |
steps: | ||
- checkout | ||
- run: sudo apt-get update && sudo apt-get install php php-xml | ||
- install-composer | ||
- node/install: | ||
node-version: '14.18.1' | ||
- php/install-composer | ||
- nodegit-workaround | ||
- set-up-packages | ||
- run: npm run wp-env start && npm run test:e2e | ||
- run: | ||
command: | | ||
if [ -d artifacts ]; then cp -r artifacts /tmp/; fi; | ||
when: on_fail | ||
- store_artifacts: | ||
path: /tmp/artifacts/ | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
"plugin:import/recommended", | ||
"plugin:eslint-comments/recommended", | ||
"plugin:jsx-a11y/recommended", | ||
"plugin:testing-library/recommended", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It sounds like this doesn't exist anymore |
||
"plugin:jest-dom/recommended", | ||
"plugin:react-hooks/recommended" | ||
], | ||
|
@@ -61,7 +60,7 @@ | |
], | ||
"rules": { | ||
"jest/expect-expect": "off", | ||
"jest/lowercase-name": [ | ||
"jest/prefer-lowercase-title": [ | ||
"error", | ||
{ | ||
"ignore": [ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module.exports = { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To replace |
||
presets: [ | ||
'@wordpress/default', | ||
], | ||
}; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,35 +1,28 @@ | ||
/** | ||
* Colors | ||
* | ||
* The variables below are taken from Gutenberg's styling in _colors.scss. | ||
* | ||
* @see https://github.com/WordPress/gutenberg/blob/master/assets/stylesheets/_colors.scss | ||
*/ | ||
/* The variables below are taken from Gutenberg's styling in _colors.scss: https://github.com/WordPress/gutenberg/blob/master/assets/stylesheets/_colors.scss */ | ||
|
||
// Hugo's new WordPress shades of gray, from http://codepen.io/hugobaeta/pen/grJjVp. | ||
/* Hugo's new WordPress shades of gray, from http://codepen.io/hugobaeta/pen/grJjVp. */ | ||
$black: #000; | ||
$dark-gray-900: #191e23; | ||
$dark-gray-800: #23282d; | ||
$dark-gray-700: #32373c; | ||
$dark-gray-600: #40464d; | ||
$dark-gray-500: #555d66; // Use this most of the time for dark items. | ||
$dark-gray-500: #555d66; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. To address new linting rules. I'm not sure why this isn't allowed. |
||
$dark-gray-400: #606a73; | ||
$dark-gray-300: #6c7781; // Lightest gray that can be used for AA text contrast. | ||
$dark-gray-300: #6c7781; | ||
$dark-gray-200: #7e8993; | ||
$dark-gray-150: #8d96a0; // Lightest gray that can be used for AA non-text contrast. | ||
$dark-gray-150: #8d96a0; | ||
$dark-gray-100: #8f98a1; | ||
$light-gray-900: #a2aab2; | ||
$light-gray-800: #b5bcc2; | ||
$light-gray-700: #ccd0d4; | ||
$light-gray-600: #d7dade; | ||
$light-gray-500: #e2e4e7; // Good for "grayed" items and borders. | ||
$light-gray-400: #e8eaeb; // Good for "readonly" input fields and special text selection. | ||
$light-gray-500: #e2e4e7; | ||
$light-gray-400: #e8eaeb; | ||
$light-gray-300: #edeff0; | ||
$light-gray-200: #f3f4f5; | ||
$light-gray-100: #f8f9f9; | ||
$white: #fff; | ||
|
||
// Dark opacities, for use with light themes. | ||
$dark-opacity-900: rgba(#000510, 0.9); | ||
$dark-opacity-800: rgba(#00000a, 0.85); | ||
$dark-opacity-700: rgba(#06060b, 0.8); | ||
|
@@ -48,9 +41,8 @@ $dark-opacity-light-400: rgba(#95959c, 0.2); | |
$dark-opacity-light-300: rgba(#829493, 0.15); | ||
$dark-opacity-light-200: rgba(#8b8b96, 0.1); | ||
$dark-opacity-light-100: rgba(#747474, 0.05); | ||
$dark-opacity-background-fill: rgba($dark-gray-700, 0.7); // Similar to $dark-opacity-light-200, but more opaque. | ||
$dark-opacity-background-fill: rgba($dark-gray-700, 0.7); | ||
|
||
// Light opacities, for use with dark themes. | ||
$light-opacity-900: rgba($white, 1); | ||
$light-opacity-800: rgba($white, 0.9); | ||
$light-opacity-700: rgba($white, 0.85); | ||
|
@@ -69,10 +61,8 @@ $light-opacity-light-400: rgba($white, 0.25); | |
$light-opacity-light-300: rgba($white, 0.2); | ||
$light-opacity-light-200: rgba($white, 0.15); | ||
$light-opacity-light-100: rgba($white, 0.1); | ||
$light-opacity-background-fill: rgba($light-gray-300, 0.8); // Similar to $light-opacity-light-200, but more opaque. | ||
$light-opacity-background-fill: rgba($light-gray-300, 0.8); | ||
|
||
// Additional colors. | ||
// Some are from https://make.wordpress.org/design/handbook/foundations/colors/. | ||
$blue-wordpress-700: #00669b; | ||
$blue-dark-900: #0071a1; | ||
|
||
|
@@ -88,7 +78,6 @@ $blue-medium-100: #e5f5fa; | |
$blue-medium-highlight: #b3e7fe; | ||
$blue-medium-focus: #007cba; | ||
|
||
// Alert colors. | ||
$alert-yellow: #f0b849; | ||
$alert-red: #d94f4f; | ||
$alert-green: #4ab866; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this PR, just a simplification