-
Notifications
You must be signed in to change notification settings - Fork 95
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 #141 from envato/develop
Launch version 2 of plugin.
- Loading branch information
Showing
50 changed files
with
6,542 additions
and
2,138 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
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,26 @@ | ||
{ | ||
"boss": true, | ||
"curly": true, | ||
"eqeqeq": true, | ||
"eqnull": true, | ||
"es3": true, | ||
"expr": true, | ||
"immed": true, | ||
"noarg": true, | ||
"nonbsp": true, | ||
"onevar": true, | ||
"quotmark": "single", | ||
"trailing": true, | ||
"undef": true, | ||
"unused": true, | ||
|
||
"browser": true, | ||
|
||
"globals": { | ||
"_": false, | ||
"Backbone": false, | ||
"jQuery": false, | ||
"JSON": false, | ||
"wp": 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
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
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 |
---|---|---|
@@ -1,8 +1,22 @@ | ||
{ | ||
"require": { | ||
"php": ">=5.2.7" | ||
}, | ||
"require-dev": { | ||
"satooshi/php-coveralls": "dev-master" | ||
} | ||
"name": "envato/wp-envato-market", | ||
"description": "WordPress Theme & Plugin management for the Envato Market.", | ||
"type": "wordpress-plugin", | ||
"dist": { | ||
"url": "[email protected]:envato/wp-envato-market.git", | ||
"type": "git" | ||
}, | ||
"license": "GPL", | ||
"authors": [ | ||
{ | ||
"name": "Envato", | ||
"homepage": "https://envato.com" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.4.0" | ||
}, | ||
"require-dev": { | ||
"satooshi/php-coveralls": "^1.0" | ||
} | ||
} |
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 |
---|---|---|
|
@@ -4,15 +4,15 @@ We're really excited that you are interested in contributing to the Envato Marke | |
|
||
## Issue Reporting Guidelines | ||
|
||
- The issue list of this repo is **exclusively** for bug reports and feature requests. For simple questions, please use [Gitter](https://gitter.im/envato/wp-envato-market). | ||
- Try to search for your issue, it may have already been answered or even fixed in the `wip` (Work in Progress) branch. | ||
- The issue list of this repo is **exclusively** for bug reports and feature requests. | ||
- Try to search for your issue, it may have already been answered or even fixed in the `develop` branch. | ||
- Check if the issue is reproducible with the latest stable version. If you are using a pre-release, please indicate the specific version you are using. | ||
- It is **required** that you clearly describe the steps necessary to reproduce the issue you are running into. Issues without clear reproducible steps will be closed immediately. | ||
- If your issue is resolved but still open, don't hesitate to close it. In case you found a solution by yourself, it could be helpful to explain how you fixed it. | ||
|
||
## Pull Request Guidelines | ||
|
||
- Checkout a topic branch from `wip` and merge back against `wip`. | ||
- Checkout a topic branch from `develop` and merge back against `develop`. | ||
- If you are not familiar with branching please read [_A successful Git branching model_](http://nvie.com/posts/a-successful-git-branching-model/) before you go any further. | ||
- **DO NOT** check-in the `dist` directory in your commits. | ||
- Follow the [WordPress Coding Standards](https://make.wordpress.org/core/handbook/coding-standards/). | ||
|
@@ -26,25 +26,50 @@ We're really excited that you are interested in contributing to the Envato Marke | |
|
||
## Development Setup | ||
|
||
You will need [Node.js](http://nodejs.org), [Grunt](http://gruntjs.com), & [PHPUnit](https://phpunit.de/getting-started.html) installed on your system. To run the unit tests you must be developing within the WordPress Core. The simplest method to get a testing environment up is by using [Varying Vagrant Vagrants](https://github.com/Varying-Vagrant-Vagrants/VVV). However, if you are using MAMP then the following command will clone `trunk`. | ||
#### Install VaryingVagrantVagrants | ||
|
||
To clone the WordPress Core | ||
- Install Vagrant/VirtualBox/Plugins by following [these instructions](https://varyingvagrantvagrants.org/docs/en-US/installation/software-requirements/) then: | ||
- `git clone -b master git://github.com/Varying-Vagrant-Vagrants/VVV.git ~/vagrant-local/` | ||
- `cd ~/vagrant-local/` | ||
- `vagrant up` (can take 30-60mins first time) | ||
- Test you can access `http://src.wordpress-develop.test/` from your browser. | ||
- Note: If you see `phpcs not found` or composer errors during setup it means you need a Github token, try running a manual provision to get prompted for a Github token: `vagrant ssh` then once connected run `sudo /vagrant/provision/provision.sh` and follow the prompts. | ||
|
||
``` bash | ||
$ git clone git://develop.git.wordpress.org/trunk/ | ||
``` | ||
#### Setup a new WordPress site for local development. | ||
|
||
To clone this repository | ||
``` bash | ||
$ git clone --recursive [email protected]:envato/wp-envato-market.git envato-market | ||
``` | ||
- `cd ~/vagrant-local/` | ||
- `cp vvv-config.yml vvv-custom.yml` | ||
- edit `vvv-custom.yml` and add a new entry under `sites:` like this: | ||
``` | ||
envato-market: | ||
repo: https://github.com/dtbaker/vvv.envato-market.test.git | ||
hosts: | ||
- vvv.envato-market.test | ||
``` | ||
- `vagrant reload --provision` | ||
- Confirm you can access the new site here: `http://vvv.envato-market.test/` | ||
- Confirm you can login here: `http://vvv.envato-market.test/wp-admin/` (default login is dev/dev) | ||
- Confirm the WordPress plugin is activated. | ||
|
||
To install packages | ||
#### Confirm grunt works: | ||
|
||
``` bash | ||
# npm install -g grunt-cli | ||
$ npm install | ||
``` | ||
- `cd ~/vagrant-local/www/envato-market/docroot/wp-content/plugins/envato-market/` | ||
- `grunt` | ||
- Note: If you receive any 'node rebuild' error, try running `npm rebuild` | ||
|
||
#### Confirm tests run via VVV | ||
|
||
- `cd ~/vagrant-local/www/envato-market/docroot/wp-content/plugins/envato-market/` | ||
- `grunt phpunit` | ||
|
||
#### Make changes: | ||
|
||
- Make changes to the github repository at `~/vagrant-local/www/envato-market/docroot/wp-content/plugins/envato-market/` | ||
- Test changes via `http://vvv.envato-market.test` | ||
- Commit changes to a new branch and make a pull request against the `develop` branch. | ||
|
||
|
||
## Grunt tasks: | ||
|
||
To lint: | ||
|
||
|
@@ -78,7 +103,7 @@ $ grunt makepot | |
|
||
The default task (simply running `grunt`) will do the following: `jshint -> css -> uglify`. | ||
|
||
### PHPUnit Testing | ||
## PHPUnit Testing | ||
|
||
Run tests: | ||
|
||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Submodule dev-lib
updated
23 files
+18 −0 | .editorconfig | |
+5 −2 | .eslintrc | |
+1 −0 | .jscsrc | |
+22 −22 | .jshintrc | |
+29 −16 | .travis.yml | |
+21 −0 | LICENSE.txt | |
+225 −103 | check-diff.sh | |
+14 −14 | class-wordpress-readme-parser.php | |
+2 −2 | diff-tools/class-git-patch-checker.php | |
+5 −4 | generate-markdown-readme | |
+46 −0 | install-pre-commit-hook.sh | |
+0 −0 | install-shared-pre-commit-hook.sh | |
+19 −0 | package.json | |
+0 −10 | phpcs.ruleset.xml | |
+30 −0 | phpcs.xml | |
+22 −3 | phpunit-plugin-bootstrap.php | |
+1 −0 | phpunit-plugin.xml | |
+14 −1 | pre-commit | |
+36 −8 | readme.md | |
+2 −0 | svn-push | |
+2 −2 | travis.after_script.sh | |
+17 −0 | travis.install.sh | |
+3 −1 | travis.script.sh |
Oops, something went wrong.