Skip to content

Commit

Permalink
Merge pull request #544 from xwp/release/0.1.0
Browse files Browse the repository at this point in the history
Release 0.1.0
  • Loading branch information
derekherman committed Mar 1, 2021
2 parents 9417a88 + 41c347f commit a67be3e
Show file tree
Hide file tree
Showing 727 changed files with 386,900 additions and 339 deletions.
35 changes: 35 additions & 0 deletions .babelrc.js
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' ],
},
},
};
1 change: 1 addition & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
extends @wordpress/browserslist-config
17 changes: 17 additions & 0 deletions .coveralls.yml
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
36 changes: 36 additions & 0 deletions .dev-lib
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
}
18 changes: 18 additions & 0 deletions .editorconfig
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
13 changes: 13 additions & 0 deletions .env.dist
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
7 changes: 7 additions & 0 deletions .eslintignore
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/*
37 changes: 37 additions & 0 deletions .eslintrc.json
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"
}
}
62 changes: 62 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
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. -->
33 changes: 33 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
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. -->
9 changes: 9 additions & 0 deletions .github/ISSUE_TEMPLATE/help_request.md
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!
10 changes: 10 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
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).
16 changes: 16 additions & 0 deletions .gitignore
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/
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
engine-strict = true
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lts/*
6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"parenSpacing": true,
"trailingComma": "es5",
"jsxBracketSameLine": false
}
13 changes: 13 additions & 0 deletions .rtlcssrc
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
}
7 changes: 7 additions & 0 deletions .stylelintignore
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
14 changes: 14 additions & 0 deletions .stylelintrc.json
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"] } ]
}
}
Loading

0 comments on commit a67be3e

Please sign in to comment.