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 #147 from studiopress/develop
Sync master with develop
- Loading branch information
Showing
30 changed files
with
5,982 additions
and
535 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 |
---|---|---|
@@ -1,2 +1,4 @@ | ||
/composer.lock | ||
/vendor/ | ||
/phpcs.xml | ||
node_modules/ | ||
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,25 @@ | ||
#!/usr/bin/env node | ||
|
||
// This script replaces the default use of `wpi18n makepot`, with custom | ||
// POT file headers. It can be run with `npm run makepot`. | ||
|
||
const chalk = require('chalk'); | ||
const wpi18n = require('node-wp-i18n'); | ||
|
||
console.log(chalk`{cyan Making pot file}...`); | ||
|
||
wpi18n.makepot( | ||
{ | ||
domainPath: 'languages', | ||
potHeaders: { | ||
'poedit': true, | ||
'x-poedit-basepath': '..', | ||
'report-msgid-bugs-to': 'StudioPress <translations@studiopress.com>', | ||
'last-translator': 'StudioPress <translations@studiopress.com>', | ||
'language-team': 'StudioPress <translations@studiopress.com>' | ||
} | ||
} | ||
).then( | ||
(result) => console.log(chalk`{cyan Pot file updated at {bold ${result.domainPath}/${result.potFile}}}`), | ||
(err) => console.log(chalk`{red ${err}}`) | ||
); |
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 @@ | ||
{ | ||
"extends": "stylelint-config-wordpress", | ||
"rules": { | ||
"no-descending-specificity": null, | ||
"no-duplicate-selectors": null | ||
} | ||
} |
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,23 +1,35 @@ | ||
{ | ||
"name": "copyblogger/genesis-sample", | ||
"description": "Genesis Sample child theme for the Genesis Framework", | ||
"require-dev": { | ||
"squizlabs/php_codesniffer": "^3.2", | ||
"wp-coding-standards/wpcs": "^0.14.1", | ||
"wimg/php-compatibility": "^8.1", | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4", | ||
"php": "^5.6|^7" | ||
}, | ||
"license": "GPL-2.0+", | ||
"authors": [ | ||
{ | ||
"name": "StudioPress", | ||
"email": "support@studiopress.com" | ||
} | ||
], | ||
"require": {}, | ||
"scripts": { | ||
"phpcs": "phpcs", | ||
"export": "git archive -o genesis-sample.zip HEAD" | ||
} | ||
"name": "studiopress/genesis-sample", | ||
"type": "wordpress-theme", | ||
"description": "Genesis Sample child theme for the Genesis Framework", | ||
"homepage": "https://github.com/studiopress/genesis-sample", | ||
"license": "GPL-2.0-or-later", | ||
"authors": [ | ||
{ | ||
"name": "StudioPress", | ||
"email": "support@studiopress.com" | ||
} | ||
], | ||
"require": { | ||
"php": "^5.2 || ^7", | ||
"composer/installers": "^1" | ||
}, | ||
"require-dev": { | ||
"php": "^5.6 || ^7", | ||
"dealerdirect/phpcodesniffer-composer-installer": "^0.4.4", | ||
"phpcompatibility/phpcompatibility-wp": "^2", | ||
"squizlabs/php_codesniffer": "^3.3.2", | ||
"wp-coding-standards/wpcs": "^1.1" | ||
}, | ||
"config": { | ||
"sort-order": true | ||
}, | ||
"scripts": { | ||
"install-codestandards": "Dealerdirect\\Composer\\Plugin\\Installers\\PHPCodeSniffer\\Plugin::run", | ||
"phpcs": "phpcs" | ||
}, | ||
"support": { | ||
"issues": "https://github.com/studiopress/genesis-sample/issues", | ||
"source": "https://github.com/studiopress/genesis-sample" | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.