Permalink
Browse files

Update Sage base to 9.0.7

Normalize and enforce single quotes in scripts

Normalize and enforce single quotes in styles

Dispatch event when firing routes

Rename to event

Fix comma dangle lint error

Bring hook run sequence in line with expected WordPress behaviour

Remove no longer needed script enqueue fix

More descriptive variable name

Fix SAGE_DIST_PATH example path

Needs the trailing slash.

Merge pull request #2123 from kimhf/hook-run-sequence

Hook run sequence fix

Double quotes for styles

Update a few dependencies - close #2117

Add CodeFirst

Update README.md

Add Tailwind custom at-rules

Update sage-installer

Fix no-extra-semi

gitignore `/vendors` not `vendors`

Update to Bootstrap 4.2.1

Require Node 8+, also test PHP 7.2 and 7.3

When you're sloppy and forget things 😇

9.0.7

Unescape post titles

Update sponsors [ci skip]

Decrease optipng level (#2143)

Filter template hierarchy for embed templates (#2145)
  • Loading branch information...
rbraunschweig authored and asuh committed May 29, 2018
1 parent bad37d1 commit 2079530ad51babe89dbd7c898147750fe1876152
@@ -1,47 +1,48 @@
module.exports = {
"root": true,
"extends": "eslint:recommended",
"globals": {
"wp": true
'root': true,
'extends': 'eslint:recommended',
'globals': {
'wp': true,
},
"env": {
"node": true,
"es6": true,
"amd": true,
"browser": true,
"jquery": true
'env': {
'node': true,
'es6': true,
'amd': true,
'browser': true,
'jquery': true,
},
"parserOptions": {
"ecmaFeatures": {
"globalReturn": true,
"generators": false,
"objectLiteralDuplicateProperties": false,
"experimentalObjectRestSpread": true
'parserOptions': {
'ecmaFeatures': {
'globalReturn': true,
'generators': false,
'objectLiteralDuplicateProperties': false,
'experimentalObjectRestSpread': true,
},
"ecmaVersion": 2017,
"sourceType": "module"
'ecmaVersion': 2017,
'sourceType': 'module',
},
"plugins": [
"import"
'plugins': [
'import',
],
"settings": {
"import/core-modules": [],
"import/ignore": [
"node_modules",
"\\.(coffee|scss|css|less|hbs|svg|json)$"
]
'settings': {
'import/core-modules': [],
'import/ignore': [
'node_modules',
'\\.(coffee|scss|css|less|hbs|svg|json)$',
],
},
"rules": {
"no-console": 0,
"comma-dangle": [
"error",
'rules': {
'no-console': 0,
'quotes': ['error', 'single'],
'comma-dangle': [
'error',
{
"arrays": "always-multiline",
"objects": "always-multiline",
"imports": "always-multiline",
"exports": "always-multiline",
"functions": "ignore"
}
]
}
}
'arrays': 'always-multiline',
'objects': 'always-multiline',
'imports': 'always-multiline',
'exports': 'always-multiline',
'functions': 'ignore',
},
],
},
};
@@ -5,5 +5,5 @@ dist
node_modules
npm-debug.log
yarn-error.log
vendor
/vendor
resources/assets/config-local.json
@@ -0,0 +1,34 @@
module.exports = {
'extends': 'stylelint-config-standard',
'rules': {
'no-empty-source': null,
'string-quotes': 'double',
'at-rule-no-unknown': [
true,
{
'ignoreAtRules': [
'extend',
'at-root',
'debug',
'warn',
'error',
'if',
'else',
'for',
'each',
'while',
'mixin',
'include',
'content',
'return',
'function',
'tailwind',
'apply',
'responsive',
'variants',
'screen',
],
},
],
},
};
@@ -1,3 +1,14 @@
### 9.0.7: December 28th, 2018
* Update sage-installer which now allows to opt-in for sending framework selection data ([#2137](https://github.com/roots/sage/pull/2137))

### 9.0.6: December 21st, 2018
* Update to Bootstrap 4.2.1 ([#2136](https://github.com/roots/sage/pull/2136))
* Do not ignore vendors for plugins ([#2132](https://github.com/roots/sage/pull/2132))
* Fix stylelint and eslint validation errors ([#2131](https://github.com/roots/sage/pull/2131))
* Hook run sequence fix ([#2123](https://github.com/roots/sage/pull/2123))
* Dispatch event when firing routes ([#2080](https://github.com/roots/sage/pull/2080))
* Normalize and enforce single quotes ([#2076](https://github.com/roots/sage/pull/2076))

### 9.0.5: September 17th, 2018
* Workaround for Bootstrap incompatibility with webpack. Fixes #2017 ([e72b490](https://github.com/roots/sage/commit/e72b4906264551dc00cd0890de74ae2bce0d77c8))

@@ -24,7 +24,7 @@ Make sure all dependencies have been installed before moving on:
* [WordPress](https://wordpress.org/) >= 4.7
* [PHP](https://secure.php.net/manual/en/install.php) >= 7.1.3 (with [`php-mbstring`](https://secure.php.net/manual/en/book.mbstring.php) enabled)
* [Composer](https://getcomposer.org/download/)
* [Node.js](http://nodejs.org/) >= 6.9.x
* [Node.js](http://nodejs.org/) >= 8.0.0
* [Yarn](https://yarnpkg.com/en/docs/install)

## Theme installation
@@ -107,7 +107,7 @@ Contributions are welcome from everyone. We have [contributing guidelines](https

Help support our open-source development efforts by [becoming a patron](https://www.patreon.com/rootsdev).

<a href="https://kinsta.com/?kaid=OFDHAJIXUDIV"><img src="https://cdn.roots.io/app/uploads/kinsta.svg" alt="Kinsta" width="200" height="150"></a> <a href="https://k-m.com/"><img src="https://cdn.roots.io/app/uploads/km-digital.svg" alt="KM Digital" width="200" height="150"></a>
<a href="https://kinsta.com/?kaid=OFDHAJIXUDIV"><img src="https://cdn.roots.io/app/uploads/kinsta.svg" alt="Kinsta" width="200" height="150"></a> <a href="https://k-m.com/"><img src="https://cdn.roots.io/app/uploads/km-digital.svg" alt="KM Digital" width="200" height="150"></a> <a href="https://www.itineris.co.uk/"><img src="https://cdn.roots.io/app/uploads/itineris.svg" alt="itineris" width="200" height="150"></a> <a href="http://www.hbgdesignlab.se/"><img src="https://cdn.roots.io/app/uploads/helsingborgdesignlab.png" alt="Helsingborg Design LAB" with="200" height="150">

## Community

@@ -38,7 +38,7 @@
*/
collect([
'index', '404', 'archive', 'author', 'category', 'tag', 'taxonomy', 'date', 'home',
'frontpage', 'page', 'paged', 'search', 'single', 'singular', 'attachment'
'frontpage', 'page', 'paged', 'search', 'single', 'singular', 'attachment', 'embed'
])->map(function ($type) {
add_filter("{$type}_template_hierarchy", __NAMESPACE__.'\\filter_templates');
});
@@ -47,6 +47,15 @@
* Render page using Blade
*/
add_filter('template_include', function ($template) {
collect(['get_header', 'wp_head'])->each(function ($tag) {
ob_start();
do_action($tag);
$output = ob_get_clean();
remove_all_actions($tag);
add_action($tag, function () use ($output) {
echo $output;
});
});
$data = collect(get_body_class())->reduce(function ($data, $class) use ($template) {
return apply_filters("sage/template/{$class}/data", $data, $template);
}, []);
@@ -52,10 +52,6 @@ function config($key = null, $default = null)
*/
function template($file, $data = [])
{
if (!is_admin() && remove_action('wp_head', 'wp_enqueue_scripts', 1)) {
wp_enqueue_scripts();
}
return sage('blade')->render($file, $data);
}
@@ -35,12 +35,12 @@
"php": ">=7.1",
"composer/installers": "~1.0",
"illuminate/support": "5.6.*",
"roots/sage-lib": "~9.0.5",
"roots/sage-lib": "~9.0.7",
"soberwp/controller": "~2.1.0"
},
"require-dev": {
"squizlabs/php_codesniffer": "^2.8.0",
"roots/sage-installer": "~1.4"
"roots/sage-installer": "~1.6"
},
"scripts": {
"test": ["phpcs"],
Oops, something went wrong.

0 comments on commit 2079530

Please sign in to comment.