-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #544 from xwp/release/0.1.0
Release 0.1.0
- Loading branch information
Showing
727 changed files
with
386,900 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* Copyright 2020 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
module.exports = { | ||
presets: [ '@wordpress/default' ], | ||
plugins: [ | ||
'@wordpress/babel-plugin-import-jsx-pragma', | ||
'@babel/transform-react-jsx', | ||
'@babel/plugin-proposal-optional-chaining', | ||
], | ||
env: { | ||
test: { | ||
plugins: [ 'transform-require-context' ], | ||
}, | ||
development: { | ||
plugins: [ 'istanbul' ], | ||
}, | ||
teste2e: { | ||
plugins: [ 'istanbul' ], | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
extends @wordpress/browserslist-config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
||
service_name: travis-ci | ||
coverage_clover: build/logs/clover.xml | ||
json_path: build/logs/coveralls-upload.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
DEFAULT_BASE_BRANCH=develop | ||
ASSETS_DIR=wp-assets | ||
README_MD_TITLE="Material Design for WordPress" | ||
CHECK_SCOPE=all | ||
DOCKER_PHPUNIT_BIN=bin/phpunit.sh | ||
TRAVIS_CI_COM_URL=true | ||
|
||
source ./bin/includes.sh | ||
|
||
function can_run_e2e() { | ||
if command_exists "curl" && is_wp_available "$1"; then | ||
return 0 | ||
fi | ||
|
||
return 1 | ||
} | ||
|
||
function run_tests { | ||
if [ "$TRAVIS" != true ]; then | ||
echo "" | ||
echo "## Linting" | ||
npm run lint | ||
|
||
echo "" | ||
echo "## JavaScript tests" | ||
npm run test:js | ||
|
||
if can_run_e2e "localhost:8088"; then | ||
echo "" | ||
echo "## E2E tests" | ||
npm run test:e2e | ||
fi | ||
|
||
echo "" | ||
fi | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# WordPress Coding Standards | ||
# https://make.wordpress.org/core/handbook/coding-standards/ | ||
|
||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
indent_style = tab | ||
|
||
[{.babelrc,.eslintrc,.rtlcssrc,*.json,*.yml}] | ||
indent_style = space | ||
indent_size = 2 | ||
|
||
[{*.md}] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# MySQL | ||
MYSQL_ROOT_PASSWORD=root | ||
MYSQL_DATABASE=wordpress | ||
MYSQL_USER=wordpress | ||
MYSQL_PASSWORD=wordpress | ||
|
||
# WordPress | ||
WP_VERSION=5.6 | ||
WP_DB_USER=wordpress | ||
WP_DB_PASSWORD=wordpress | ||
|
||
# PHP | ||
PHP_VERSION=php7.4-apache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
**/*.min.js | ||
**/bin/** | ||
**/node_modules/** | ||
**/vendor/** | ||
**/assets/js/*.js | ||
build/* | ||
built/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{ | ||
"extends": [ | ||
"plugin:@wordpress/eslint-plugin/recommended" | ||
], | ||
"overrides": [ | ||
{ | ||
"files":[ | ||
"**/__tests__/**/*.js", | ||
"**/test/*.js", | ||
"**/?(*.)test.js", | ||
"tests/js/**/*.js" | ||
], | ||
"extends": [ | ||
"plugin:jest/all" | ||
], | ||
"rules": { | ||
"jest/lowercase-name": [ | ||
"error", | ||
{ | ||
"ignore": [ "describe" ] | ||
} | ||
], | ||
"no-undef": "off", | ||
"jest/no-hooks": "off", | ||
"jest/prefer-expect-assertions": "off", | ||
"jest/prefer-inline-snapshots": "off" | ||
} | ||
} | ||
], | ||
"rules": { | ||
"no-console": "off", | ||
"no-nested-ternary": "off", | ||
"jsx-a11y/click-events-have-key-events": "off", | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
|
||
--- | ||
|
||
## Bug Description | ||
|
||
<!-- Please describe clearly and concisely what the bug is. --> | ||
|
||
## Expected Behaviour | ||
|
||
<!-- Please describe clearly and concisely what the expected behaviour should be. --> | ||
|
||
## Steps to reproduce | ||
|
||
<!-- 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. --> | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
|
||
## Screenshots | ||
|
||
<!-- If applicable, please add screenshots to help explain your problem. Bonus points for videos! --> | ||
|
||
## Additional context | ||
|
||
<!-- Please complete the following information. --> | ||
- WordPress version: | ||
- Plugin version: | ||
- Gutenberg plugin version (if applicable): | ||
- PHP version: | ||
- OS: | ||
- Browser: [e.g. chrome, safari] | ||
- Device: [e.g. iPhone6] | ||
|
||
<!-- 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. --> | ||
|
||
--------------- | ||
|
||
_Do not alter or remove anything below. The following sections will be managed by moderators only._ | ||
|
||
## Acceptance criteria | ||
|
||
* <!-- One or more bullet points for acceptance criteria. --> | ||
|
||
## Implementation brief | ||
|
||
* <!-- 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**. --> | ||
|
||
## QA testing instructions | ||
|
||
* <!-- One or more bullet points to describe how to test the implementation in QA. --> | ||
|
||
## Demo | ||
|
||
* <!-- A video or screenshots demoing the implementation. --> | ||
|
||
## Changelog entry | ||
|
||
* <!-- One sentence summarizing the PR, to be used in the changelog. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
|
||
--- | ||
|
||
## Feature description | ||
|
||
<!-- Please describe clear and concisely which problem the feature would solve or which publisher needs it would address. --> | ||
|
||
--------------- | ||
|
||
_Do not alter or remove anything below. The following sections will be managed by moderators only._ | ||
|
||
## Acceptance criteria | ||
|
||
* <!-- One or more bullet points for acceptance criteria. --> | ||
|
||
## Implementation brief | ||
|
||
* <!-- 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**. --> | ||
|
||
## QA testing instructions | ||
|
||
* <!-- One or more bullet points to describe how to test the implementation in QA. --> | ||
|
||
## Demo | ||
|
||
* <!-- A video or screenshots demoing the implementation. --> | ||
|
||
## Changelog entry | ||
|
||
* <!-- One sentence summarizing the PR, to be used in the changelog. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
name: Help Request | ||
about: Please post help requests or ‘how to’ questions in support forum | ||
|
||
--- | ||
|
||
For general, technical and product help requests, please post it on the [Material Design plugin support forum](https://wordpress.org/support/plugin/material-design/). Support will not be provided on GitHub. | ||
|
||
Thank you! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
## Summary | ||
|
||
<!-- Please reference the issue this PR addresses. --> | ||
Fixes # | ||
|
||
## Checklist | ||
|
||
- [ ] My pull request is addressing an [open issue](https://github.com/xwp/material-design-wp-plugin/issues) (please create one otherwise). | ||
- [ ] My code is tested and passes existing [tests](https://github.com/xwp/material-design-wp-plugin/contributing.md#scripts). | ||
- [ ] My code follows the [Contributing Guidelines](https://github.com/xwp/material-design-wp-plugin/contributing.md) (updates are often made to the guidelines, check it out periodically). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.DS_Store | ||
._.DS_Store | ||
.env | ||
.idea | ||
composer.lock | ||
material-design.zip | ||
yarn.lock | ||
assets/css/* | ||
!assets/css/src/ | ||
assets/js/* | ||
bin/local-dev/mysql/ | ||
bin/local-dev/wordpress/html/ | ||
build/ | ||
node_modules/ | ||
tests/coverage | ||
vendor/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
engine-strict = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"singleQuote": true, | ||
"parenSpacing": true, | ||
"trailingComma": "es5", | ||
"jsxBracketSameLine": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"options": { | ||
"autoRename": false, | ||
"autoRenameStrict": false, | ||
"blacklist":{}, | ||
"clean": true, | ||
"greedy": false, | ||
"processUrls": false, | ||
"stringMap":[] | ||
}, | ||
"plugins": [ ], | ||
"map": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/assets/css/*.css | ||
/bin | ||
/build | ||
/node_modules | ||
/tests | ||
/vendor | ||
/assets/css/src/mixins.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"extends": "stylelint-config-wordpress", | ||
"rules": { | ||
"font-weight-notation": null, | ||
"function-url-quotes": null, | ||
"max-line-length": null, | ||
"no-descending-specificity": null, | ||
"no-duplicate-selectors": null, | ||
"number-leading-zero": null, | ||
"selector-class-pattern": null, | ||
"selector-type-no-unknown": [ true, { "ignore": ["custom-elements"] } ], | ||
"at-rule-no-unknown": [ true, { "ignoreAtRules": ["mixin"] } ] | ||
} | ||
} |
Oops, something went wrong.