Commit Graph

2317 Commits

Author SHA1 Message Date
Ben Word
81925de598 Patreon 2018-08-30 13:36:35 -06:00
Daniel Mejta
68f8d9791d Final filter that renders template should have PHP_INT_MAX priority. 2018-08-28 07:23:58 +02:00
Daniel Mejta
fa1681dad9 Add data from controller to comments template 2018-08-28 07:19:59 +02:00
Ben Word
8a023b4307 Merge pull request #2099 from roots/9.0.2
9.0.2
2018-08-21 15:54:44 -06:00
Ben Word
d7acd3a04f 9.0.2 2018-08-21 15:48:26 -06:00
Ben Word
0d4b251130 Merge pull request #2095 from mejta/comments-template-fix
Comments template fix
2018-08-21 15:37:22 -06:00
Ben Word
907825ee88 Merge pull request #2025 from darrenjacoby/master
Upgrade to Controller 2.1.0
2018-08-21 15:35:49 -06:00
Ben Word
3377d94f69 Merge pull request #2098 from roots/update-deps
Update dependencies
2018-08-21 15:33:09 -06:00
Ben Word
53d67e1755 Merge branch 'master' into master 2018-08-21 15:30:05 -06:00
Ben Word
b298b969cc Merge pull request #2092 from LubomirGeorgiev/uglifyjs-es5
UglifyJs: Change the ecma option from 8 to 5
2018-08-21 15:26:17 -06:00
Ben Word
c2abb7f8d4 Update dependencies 2018-08-21 15:24:47 -06:00
Ben Word
351394fb2f Merge pull request #2097 from roots/bootstrap-4.1.3
Update to Bootstrap 4.1.3
2018-08-21 15:19:46 -06:00
Ben Word
7016fa48ed Update to Bootstrap 4.1.3 2018-08-21 15:13:27 -06:00
Ben Word
32ecc08e38 Merge pull request #2096 from roots/update-sage-installer
Bump sage-installer
2018-08-21 15:08:46 -06:00
Matt Mirus
5c947b2aff Bump sage-installer 2018-08-21 14:54:35 -04:00
Daniel Mejta
75a68059f8 Fix 2018-08-21 15:40:11 +02:00
Darren Jacoby
372415045f Update composer.json 2018-08-17 10:15:25 +02:00
Lubomir Georgiev
6280fc97db UglifyJs: Change the ecma option from 8 to 5 2018-08-14 17:23:15 +03:00
Nathan Knowler
157c97b6ae Use smartStrategy to replace loaders with preset (#2084)
Using `merge.smartStrategy` with `'module.loaders' = 'replace'` to load
the preset config allows presets to override the the default webpack
config. This is necessary for the coming Tailwind preset which requires
`resolve-url-loader` and source maps to be disabled.
2018-08-11 19:32:19 -07:00
Ben Word
165a38f4d4 Merge pull request #2081 from kukac7/patch-2
missing semicolon
2018-08-09 15:11:47 -06:00
Ben Word
21b578b593 Merge pull request #2089 from Log1x/patch-1
Change language_attributes() to get_language_attributes()
2018-08-09 15:11:20 -06:00
Ben Word
7d13888557 Merge pull request #2090 from MWDelaney/master
Add searchform partial and function to replace default WordPress functionality
2018-08-09 15:05:09 -06:00
Michael W. Delaney
c1bc6ef596 Update filters.php 2018-08-08 09:55:54 -04:00
Michael W. Delaney
d13e8fd9be Update filters.php 2018-08-08 08:51:00 -04:00
Ben
e898cf1f4d Extract logic from search form template
This removes all logic from the search form Blade template, and extracts
it to the "Controller" level via Sage's filter system. It also adds a
global 'app' filter to hook into, so that the search form data will be
served on every page.
2018-08-06 13:06:34 -07:00
MWDelaney
b41047f5a1 Add text domain 2018-08-05 21:15:08 -04:00
MWDelaney
d93964b9c4 Remove gross WPCS 2018-08-05 21:06:46 -04:00
MWDelaney
1ccc2eed76 Add searchform partial and function to replace (and maintain) default WordPress functionality 2018-08-05 12:07:32 -04:00
Brandon
e84108c44d Change language_attributes() to get_language_attributes() 2018-07-31 17:25:45 -05:00
Daniel Roe
a9312c0633 Fix missing comment-reply JS (#2085) 2018-07-18 16:37:51 -06:00
Nathan Knowler
61f923413a Add support for preset specific Webpack config (#2083) 2018-07-17 10:58:16 -07:00
béla
6325f11cd6 missing semicolon 2018-07-02 00:22:37 +02:00
Tor Morten Jensen
2d9b9d16bf Fix comma dangle lint error 2018-06-20 14:50:43 +02:00
Tor Morten Jensen
2af688c4f1 Rename to event 2018-06-20 14:48:28 +02:00
Tor Morten Jensen
8f039f1944 Dispatch event when firing routes
It is especially neat when importing the scripts from the parent theme in a child theme. In one of my themes I do it like this:

```js
// routes.js
import home from './routes/home'

export default {
    home: {
      init() {
        console.log('Home route fired.')
      }
    }
}
```

  ```js
// main.js
/**
 * Parent Themes Script
 */
import '../../../../core-theme/resources/assets/scripts/main';

/**
 * Internal modules
 */
import routes from './routes'

/**
 * Hook in to the parent themes router
 */
document.addEventListener('routed', e => {
  let route = e.detail.route,
    fn = e.detail.fn;

  if (routes[route] && typeof routes[route][fn] === 'function') {
    routes[route][fn]();
  }
});
```
2018-06-20 14:08:10 +02:00
Jason Baciulis
fd2a94fa1b Add uglifyjs plugin (#2070)
* Add uglifyjs plugin and replace -p flag with --env.production
* Add uglifyjs plugin
* Configure UglifyJsPlugin to drop console and prevent eslint error
* Turn off no-console rule because uglifyjs plugin drops it in prod
2018-06-16 08:33:41 -07:00
Ben Word
093b5a6500 Merge pull request #2078 from knowler/enable-sass-comments
Enable Sass comments and run prefixing before minification
2018-06-11 11:05:12 -06:00
Nathan Knowler
4a9094b12d Add missing trailing commas in 2f51b51
Forgot to lint.
2018-06-09 10:34:55 -06:00
Nathan Knowler
405aedfb13 Run autoprefixer before minification 2018-06-09 09:49:34 -06:00
Nathan Knowler
2f51b51c95 Enable source comments in Sass 2018-06-09 09:49:08 -06:00
Rhys Braunschweig
248c569bff Normalize and enforce single quotes in styles
- Replace stylelint property in package.json with .stylelintrc.js
- Add string-quotes stylelint rule
- Fix quotes
2018-05-29 12:12:21 +02:00
Rhys Braunschweig
9040a3dc75 Normalize and enforce single quotes in scripts
- Add quotes and semi rules to ESLint
- Fix quotes and semicolons
2018-05-29 12:11:44 +02:00
Ben Word
987a1d8bb2 Merge pull request #2075 from E-VANCE/master
Proposal: Set removeViewBox to 'false' in webpack's optimization settings
2018-05-28 19:20:06 -06:00
Henning Orth
9dd101f56c Fix travis CI build error (missing trailing comma) 2018-05-28 16:50:49 +02:00
Henning Orth
d1c8a2eee7 Tweaked SVGO settings
Disable removal of the SVG viewBox by default to improve compatibility. See this Discourse thread: https://discourse.roots.io/t/svg-size-change-upon-yarn-build-production/12320
2018-05-28 16:44:12 +02:00
Ben Word
ab3763856e Merge pull request #2068 from kimhf/template-admin-compatibility
Make template() compatible with wp admin
2018-05-10 09:02:30 -06:00
Kim Helge Frimanslund
9a4b81c43a Make template() compatible with wp admin 2018-05-06 13:42:31 +02:00
Ben Word
b1f645b825 Merge pull request #2066 from roots/9.0.1
9.0.1
2018-04-30 12:52:11 -06:00
Ben Word
b6f89bf652 9.0.1 2018-04-30 12:44:52 -06:00
Ben Word
29f4b2fc62 Merge pull request #2065 from roots/bootstrap-4.1.1
Update to Bootstrap 4.1.1
2018-04-30 12:42:32 -06:00