Skip to content

Commit a67be3e

Browse files
authored
Merge pull request #544 from xwp/release/0.1.0
Release 0.1.0
2 parents 9417a88 + 41c347f commit a67be3e

File tree

727 files changed

+386900
-339
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

727 files changed

+386900
-339
lines changed

.babelrc.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* Copyright 2020 Google LLC
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
module.exports = {
18+
presets: [ '@wordpress/default' ],
19+
plugins: [
20+
'@wordpress/babel-plugin-import-jsx-pragma',
21+
'@babel/transform-react-jsx',
22+
'@babel/plugin-proposal-optional-chaining',
23+
],
24+
env: {
25+
test: {
26+
plugins: [ 'transform-require-context' ],
27+
},
28+
development: {
29+
plugins: [ 'istanbul' ],
30+
},
31+
teste2e: {
32+
plugins: [ 'istanbul' ],
33+
},
34+
},
35+
};

.browserslistrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
extends @wordpress/browserslist-config

.coveralls.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2020 Google LLC
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
15+
service_name: travis-ci
16+
coverage_clover: build/logs/clover.xml
17+
json_path: build/logs/coveralls-upload.json

.dev-lib

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
DEFAULT_BASE_BRANCH=develop
2+
ASSETS_DIR=wp-assets
3+
README_MD_TITLE="Material Design for WordPress"
4+
CHECK_SCOPE=all
5+
DOCKER_PHPUNIT_BIN=bin/phpunit.sh
6+
TRAVIS_CI_COM_URL=true
7+
8+
source ./bin/includes.sh
9+
10+
function can_run_e2e() {
11+
if command_exists "curl" && is_wp_available "$1"; then
12+
return 0
13+
fi
14+
15+
return 1
16+
}
17+
18+
function run_tests {
19+
if [ "$TRAVIS" != true ]; then
20+
echo ""
21+
echo "## Linting"
22+
npm run lint
23+
24+
echo ""
25+
echo "## JavaScript tests"
26+
npm run test:js
27+
28+
if can_run_e2e "localhost:8088"; then
29+
echo ""
30+
echo "## E2E tests"
31+
npm run test:e2e
32+
fi
33+
34+
echo ""
35+
fi
36+
}

.editorconfig

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# WordPress Coding Standards
2+
# https://make.wordpress.org/core/handbook/coding-standards/
3+
4+
root = true
5+
6+
[*]
7+
charset = utf-8
8+
end_of_line = lf
9+
insert_final_newline = true
10+
trim_trailing_whitespace = true
11+
indent_style = tab
12+
13+
[{.babelrc,.eslintrc,.rtlcssrc,*.json,*.yml}]
14+
indent_style = space
15+
indent_size = 2
16+
17+
[{*.md}]
18+
trim_trailing_whitespace = false

.env.dist

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# MySQL
2+
MYSQL_ROOT_PASSWORD=root
3+
MYSQL_DATABASE=wordpress
4+
MYSQL_USER=wordpress
5+
MYSQL_PASSWORD=wordpress
6+
7+
# WordPress
8+
WP_VERSION=5.6
9+
WP_DB_USER=wordpress
10+
WP_DB_PASSWORD=wordpress
11+
12+
# PHP
13+
PHP_VERSION=php7.4-apache

.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
**/*.min.js
2+
**/bin/**
3+
**/node_modules/**
4+
**/vendor/**
5+
**/assets/js/*.js
6+
build/*
7+
built/*

.eslintrc.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"extends": [
3+
"plugin:@wordpress/eslint-plugin/recommended"
4+
],
5+
"overrides": [
6+
{
7+
"files":[
8+
"**/__tests__/**/*.js",
9+
"**/test/*.js",
10+
"**/?(*.)test.js",
11+
"tests/js/**/*.js"
12+
],
13+
"extends": [
14+
"plugin:jest/all"
15+
],
16+
"rules": {
17+
"jest/lowercase-name": [
18+
"error",
19+
{
20+
"ignore": [ "describe" ]
21+
}
22+
],
23+
"no-undef": "off",
24+
"jest/no-hooks": "off",
25+
"jest/prefer-expect-assertions": "off",
26+
"jest/prefer-inline-snapshots": "off"
27+
}
28+
}
29+
],
30+
"rules": {
31+
"no-console": "off",
32+
"no-nested-ternary": "off",
33+
"jsx-a11y/click-events-have-key-events": "off",
34+
"react-hooks/rules-of-hooks": "error",
35+
"react-hooks/exhaustive-deps": "warn"
36+
}
37+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
5+
---
6+
7+
## Bug Description
8+
9+
<!-- Please describe clearly and concisely what the bug is. -->
10+
11+
## Expected Behaviour
12+
13+
<!-- Please describe clearly and concisely what the expected behaviour should be. -->
14+
15+
## Steps to reproduce
16+
17+
<!-- Please provide detailed steps on how to reproduce the bug. Provide a URL where the issue can be seen on the frontend when possible, otherwise go to “View source” in the browser and copy all to paste in a [Gist](https://gist.github.com/) and share it. -->
18+
1. Go to '...'
19+
2. Click on '....'
20+
3. Scroll down to '....'
21+
4. See error
22+
23+
## Screenshots
24+
25+
<!-- If applicable, please add screenshots to help explain your problem. Bonus points for videos! -->
26+
27+
## Additional context
28+
29+
<!-- Please complete the following information. -->
30+
- WordPress version:
31+
- Plugin version:
32+
- Gutenberg plugin version (if applicable):
33+
- PHP version:
34+
- OS:
35+
- Browser: [e.g. chrome, safari]
36+
- Device: [e.g. iPhone6]
37+
38+
<!-- Please add any additional information about the bug. Ideal dumping your [Site Health](https://wordpress.org/support/wordpress-version/version-5-2/#site-health-check) information here as well. -->
39+
40+
---------------
41+
42+
_Do not alter or remove anything below. The following sections will be managed by moderators only._
43+
44+
## Acceptance criteria
45+
46+
* <!-- One or more bullet points for acceptance criteria. -->
47+
48+
## Implementation brief
49+
50+
* <!-- One or more bullet points for how to technically resolve the issue. For significant Implementation Design, it is ok use a Google document **accessible by anyone**. -->
51+
52+
## QA testing instructions
53+
54+
* <!-- One or more bullet points to describe how to test the implementation in QA. -->
55+
56+
## Demo
57+
58+
* <!-- A video or screenshots demoing the implementation. -->
59+
60+
## Changelog entry
61+
62+
* <!-- One sentence summarizing the PR, to be used in the changelog. -->
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
5+
---
6+
7+
## Feature description
8+
9+
<!-- Please describe clear and concisely which problem the feature would solve or which publisher needs it would address. -->
10+
11+
---------------
12+
13+
_Do not alter or remove anything below. The following sections will be managed by moderators only._
14+
15+
## Acceptance criteria
16+
17+
* <!-- One or more bullet points for acceptance criteria. -->
18+
19+
## Implementation brief
20+
21+
* <!-- One or more bullet points for how to technically resolve the issue. For significant Implementation Design, it is ok use a Google document **accessible by anyone**. -->
22+
23+
## QA testing instructions
24+
25+
* <!-- One or more bullet points to describe how to test the implementation in QA. -->
26+
27+
## Demo
28+
29+
* <!-- A video or screenshots demoing the implementation. -->
30+
31+
## Changelog entry
32+
33+
* <!-- One sentence summarizing the PR, to be used in the changelog. -->

0 commit comments

Comments
 (0)