You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Deleted (D) bud.config.js, tailwind.config.js, theme.json, yarn.lock, editor.css, editor.js, app.css, app.js.
- Modified (M):
- README
- functions.php to use an array variable for the required files (in the Register Sage Theme Files section), for easier reading.
- jsconfig.json to include jQuery type acquisition.
- package.json to remove Roots Bud and Tailwind CSS packages, and added the required packages for Laravel Mix to function.
- style.css to change name of the theme, add my links, and various other details.
- filters.php to add default Lorum Ipsum content to new posts.
- setup.php to remove Roots Bundle nonsense and add back the Sage 9 enqueue scripts and styles, plus critical css.
- Added (A):
- The styles directory structure from Sage 9 (common, components, layouts), and various SCSS files.
- webpack.mix.js to add Laravel Mix settings.
- admin.php to output a new footer message in the admin.
- helpers.php to add helper functions like asset_path to get the path of the asset.
- The config directory from Sage 9, and the assets.php to change the manifest name to mix-manifest (otherwise errors occur) and view.php to add SVG and SVG_ICONS namespaces to the @include directive.
- main.js without any routes rubbish.
- Scripts templates directory for the new front-page.js and template-contact.js
- svg and icons directory in the images directory.
- main.scss to add back the Sage 9 SCSS module includes.
Copy file name to clipboardExpand all lines: README.md
+45-12Lines changed: 45 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -18,32 +18,57 @@
18
18
</a>
19
19
</p>
20
20
21
-
<palign="center">Advanced WordPress starter theme with Tailwind CSS and Laravel Blade</p>
21
+
<palign="center">Advanced WordPress starter theme with <del>Tailwind CSS</del> SASS/SCSS and Laravel Blade</p>
22
+
<palign="center">Adapted and edited by <ahref="https://github.com/yCodeTech"target="_blank">@yCodeTech</a> for usage with <ahref="https://laravel-mix.com/"target="_blank">Laravel Mix</a>.</p>
Sage is an open source project and completely free to use. If you've benefited from our projects and would like to support our future endeavors, please consider [sponsoring Roots](https://github.com/sponsors/roots).
- Modern frontend development workflow powered by [Bud](https://bud.js.org/)
42
-
- Out of the box support for [Tailwind CSS](https://tailwindcss.com/)
36
+
- Modern frontend development workflow powered by ~~[Bud](https://bud.js.org/)~~[Laravel Mix](https://laravel-mix.com/)
37
+
- Out of the box support for ~~[Tailwind CSS](https://tailwindcss.com/)~~[SASS](https://sass-lang.com/)
38
+
- Out of the box support for [log1x/sage-directives](https://github.com/log1x/sage-directives)
43
39
44
40
## Getting Started
45
41
46
-
See the [Sage installation documentation](https://roots.io/sage/docs/installation/).
42
+
~~See the [Sage installation documentation](https://roots.io/sage/docs/installation/).~~
43
+
44
+
This Laravel Mix adaptation of Sage 10 is for Bedrock installs. See the [Bedrock installation documentation](https://roots.io/bedrock/docs/installation/). The instructions below assumes you have knowledge of the Laravel Mix settings, and most other non-documented setting up steps.
45
+
46
+
1. Once Bedrock is installed, in the root directory, install [roots/acorn](https://github.com/roots/acorn) with `composer require roots/acorn`. Then add the following into the _scripts_ section of the _composer.json_
47
+
48
+
```json
49
+
"post-autoload-dump": [
50
+
"Roots\\Acorn\\ComposerScripts::postAutoloadDump"
51
+
]
52
+
```
53
+
54
+
2. In the _themes_ directory either clone this repository or download the zip file and unzip it into the directory.
55
+
56
+
- If cloning, you can specify the sage theme directory name in the git command, otherwise it will be the same name as this repo. Example:
(Note: the theme name in WP will be _Sage 10 Theme_, unless it's changed in the style.css file.)
63
+
64
+
3. Do a `composer install` and a `npm install` in the new sage theme directory.
65
+
4. Activate the theme in wp-admin and start coding locally with Laravel Mix.
66
+
67
+
## Laravel Mix Commands
68
+
69
+
`npx mix watch` - Compile assets, watches the files for any changes, and start Browsersync session.
70
+
71
+
`npx mix --production` - Compile assets for production.
47
72
48
73
## Stay Connected
49
74
@@ -52,3 +77,11 @@ See the [Sage installation documentation](https://roots.io/sage/docs/installatio
52
77
- Follow [@rootswp on Twitter](https://twitter.com/rootswp)
53
78
- Read the [Roots Blog](https://roots.io/blog/)
54
79
- Subscribe to the [Roots Newsletter](https://roots.io/newsletter/)
80
+
81
+
## Sponsors
82
+
83
+
Sage is an open source project and completely free to use. If you've benefited from our projects and would like to support our future endeavors, please consider [sponsoring Roots](https://github.com/sponsors/roots).
echo'<span>Powered by <a href="http://www.wordpress.org" target="_blank">WordPress</a> | Bedrock and Sage 10 theme by <a href="https://roots.io/" target="_blank">Roots</a>, adapted and edited by <a href="https://github.com/yCodeTech" target="_blank">@yCodeTech</a></span> for usage with <a href="https://laravel-mix.com/" target="_blank">Laravel Mix</a>.';
add_filter('default_content', function ($content) {
23
+
$content = "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam venenatis arcu odio, et facilisis nibh venenatis ut. Vestibulum viverra lacus vitae lacus gravida laoreet ac at purus.
24
+
25
+
Maecenas arcu odio, suscipit id posuere vel, consequat eu orci. Nullam dictum placerat dolor, eu eleifend lacus ullamcorper ut.";
0 commit comments