Skip to content

Commit 86b3a95

Browse files
committed
adds base config files
1 parent cca5820 commit 86b3a95

File tree

6 files changed

+88
-0
lines changed

6 files changed

+88
-0
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
end_of_line = lf
5+
insert_final_newline = true
6+
indent_style = space
7+
indent_size = 2
8+
9+
[*.php]
10+
indent_style = tab
11+
indent_size = 4
12+
13+
[*.md]
14+
indent_style = space
15+
indent_size = 4

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/vendor
2+
composer.lock
3+
_book

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# WP Contruct
2+
3+
## Plugin Edition
4+
5+
Base library with plugin functionality to be extended on WordPress plugins
6+
7+
This library aims to gather some core logic usually needed in csrui plugins
8+
making it lighter on the final plugin side, remove code duplication and easier
9+
extending.

composer.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "csrui/wp-construct-plugin",
3+
"description": "Base library with plugin functionality to be extended on WordPress plugins",
4+
"license": "MIT",
5+
"keywords": ["wp", "wordpress"],
6+
"authors": [
7+
{
8+
"name": "Gulbenkian",
9+
"email": "[email protected]"
10+
}
11+
],
12+
"require": {},
13+
"require-dev": {
14+
"phpunit/phpunit": "4.0.*"
15+
},
16+
"autoload": {
17+
"psr-4": {
18+
"csrui\\WPConstruct\\Plugin\\": "lib"
19+
}
20+
}
21+
}

phpcs.ruleset.xml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="log-Base">
3+
<description>log coding standards for WordPress projects.</description>
4+
5+
<exclude-pattern>*/phpunit.xml*</exclude-pattern>
6+
<exclude-pattern>*/languages/*</exclude-pattern>
7+
<exclude-pattern>*/tests/*</exclude-pattern>
8+
9+
<exclude-pattern>*/node_modules/*</exclude-pattern>
10+
<exclude-pattern>*/vendor/*</exclude-pattern>
11+
12+
<!-- Yoda conditions, we must ignore -->
13+
<rule ref="WordPress.PHP.YodaConditions.NotYoda">
14+
<severity>0</severity>
15+
</rule>
16+
17+
<!-- Ignore lowercase filenames -->
18+
<rule ref="Generic.Files.LowercasedFilename.NotFound">
19+
<severity>0</severity>
20+
</rule>
21+
22+
<rule ref="WordPress-Extra" />
23+
</ruleset>

phpunit.xml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnFailure="false"
11+
syntaxCheck="false">
12+
<testsuites>
13+
<testsuite name="WP Construct Plugin Test Suite">
14+
<directory suffix=".php">./tests/</directory>
15+
</testsuite>
16+
</testsuites>
17+
</phpunit>

0 commit comments

Comments
 (0)