Skip to content

Commit

Permalink
Merge branch '2.x' into feature/magic-tag-reference-for-templates
Browse files Browse the repository at this point in the history
  • Loading branch information
sc0ttkclark authored Mar 18, 2020
2 parents a02c699 + 72934ca commit 1568913
Show file tree
Hide file tree
Showing 474 changed files with 104,978 additions and 63,325 deletions.
9 changes: 9 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"presets": [ "env" ],
"plugins": [
[ "module-resolver", {
"alias": { "pods-dfv": "./ui/js/pods-dfv" }
} ],
"transform-html-import-to-string"
]
}
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This file is for unifying the coding style for different editors and IDEs
# editorconfig.org
# https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties

# WordPress Coding Standards
# http://make.wordpress.org/core/handbook/coding-standards/

root = true

[*]
charset = utf-8
indent_style = tab
insert_final_newline = true
trim_trailing_whitespace = true
# spaces_around_operators = true
# spaces_around_brackets = both

[*.{txt,md}]
trim_trailing_whitespace = false

[*.{yml,json}]
indent_style = space
indent_size = 2
32 changes: 32 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"parserOptions": {
"ecmaVersion": 2016,
"sourceType": "module"
},

"extends": [
"wordpress",
"plugin:react/recommended"
],

"rules": {
"object-curly-spacing": ["error", "always"],

"space-in-parens": ["error", "always"],

"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "always",
"asyncArrow": "always"
}],

"lines-around-comment": [ "error", {
"beforeLineComment": false,
"beforeBlockComment": false
}],

"space-unary-ops": [ "error", {
"nonwords": false
}]
}
}
39 changes: 36 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,46 @@
* text=auto

# Ignore
/sources export-ignore

# Directories
/.wordpress-org export-ignore
/.github export-ignore
/bin export-ignore
/docs export-ignore
/tests export-ignore
/ui/js/pods-dfv/src export-ignore
/ui/js/pods-dfv/pods-dfv.min.js.map export-ignore
/ui/styles/src export-ignore

# Files
.gitattributes export-ignore
.gitignore export-ignore

.babelrc export-ignore
.editorconfig export-ignore
.env export-ignore
.env.example export-ignore
.eslintrc.json export-ignore
.jshintrc export-ignore
.scrutinizer.yml export-ignore
.travis.yml export-ignore
composer.json export-ignore

CODEOWNERS export-ignore
CONTRIBUTING.md export-ignore
Gruntfile.js export-ignore
README.md export-ignore
TESTS.md export-ignore
codeception.dist.yml export-ignore
codeception.example.yml export-ignore
composer.json export-ignore
git-workflow.md export-ignore
kill-travis.php export-ignore
grunt-workflow.md export-ignore
jest-setup-wordpress-globals.js export-ignore
jest.config.json export-ignore
package.json export-ignore
phpcs.xml.dist export-ignore
phpunit.xml.dist export-ignore
rollup.config.js export-ignore
webpack.common.js export-ignore
webpack.dev.js export-ignore
webpack.prod.js export-ignore
12 changes: 12 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# These are supported funding model platforms

github: # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: https://friends.pods.io # Replace with a single custom sponsorship URL
48 changes: 48 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
---
name: Bug report
about: Create a report to help us improve

---

**Describe the bug**
<!-- Please provide a clear and concise description of what the bug is. -->

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

## Pods Version
Please provide the version of Pods you are running:

## WordPress Environment
<!-- This is REQUIRED for Bug Reports, so we can check for conflicts, version issues, etc. -->
<details>

Copy and paste your Tools > Site Health > Info. Use the 'Copy Site Info to Clipboard' and paste the results over this line.

</details>

## Pods Package Export (helpful!)
<!-- Please include the Pods Package Export as it will be helpful in reproducing your issues. -->
<!-- To access: Pods Admin, Components, Migrate: Packages, Enable. -->
<!-- Then Pods Admin, Migrate: Packages, Export and Copy and Paste the JSON here OR -->
<!-- Save to a text file and upload to this bug report -->
```
Copy and Paste the JSON Export from **Pods Admin, Migrate: Packages, Export** in WordPress admin here
```

**Additional context**
Add any other context about the problem here.

**Possible Workaround**
If you have discovered a workaround, please include it below.

17 changes: 17 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Feature request
about: Suggest an idea for this project

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
4 changes: 4 additions & 0 deletions .github/issue_label_bot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
label-alias:
bug: 'Type: Bug'
feature_request: 'Type: Enhancement'
question: 'Type: Support'
17 changes: 17 additions & 0 deletions .github/workflows/mt-code-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: MT Code Review
on:
pull_request:
paths-ignore:
- 'lang/**'
- '**.txt'
- '**.md'
- '.editorconfig'
- 'CODEOWNERS'
jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: moderntribe/action-tribe-phpcs@master
with:
github-bot-token: ${{ secrets.GH_BOT_TOKEN }}
16 changes: 16 additions & 0 deletions .github/workflows/wordpress-plugin-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@master
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,12 @@ composer.lock
npm-debug.log

# PHPunit config
phpunit.xml
phpunit.xml

# Source maps should just be built locally
ui/js/pods-ui-ready.min.js.map
/package-lock.json
/phpcs.xml

# PHPCS reports
phpcs-report-*.txt
31 changes: 31 additions & 0 deletions .jshintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"esversion": 6,
"mocha": true,
"module": true,
"node": true,
"browser": true,

"trailing": true,
"white": true,
"noempty": true,
"nomen": true,
"noarg": true,
"smarttabs": true,
"eqeqeq": true,
"newcap": true,
"nocomma": true,
"immed": true,
"nonbsp": true,
"bitwise": true,
"curly": true,
"undef": true,
"nonew": true,
"forin": true,

"globals": {
"jQuery": false,
"_": false,
"Backbone": false,
"Marionette": false
}
}
Loading

0 comments on commit 1568913

Please sign in to comment.