-
-
Notifications
You must be signed in to change notification settings - Fork 88
Conversation
UPDATE: the following are not upgrade instructions for Tailwind 1.0 in Sage. They are instructions for testing out this PR on presumably a fresh install of Sage. Proceed at your own risk. @brandontamm Set this in your "require-dev": {
"roots/sage-installer": "dev-tailwind-1.0.0"
} Then run: # Updates Sage installer
$ composer update --dev roots/sage-installer
# Select Tailwind
$ ./vendor/bin/sage preset I might be able to get around to finishing this PR, but I can’t promise we’ll get it into Sage 9 anytime soon. We’ve been moving our focus to Sage 10 which uses Laravel Mix, so Tailwind support will be 100% easier. If you do find anything that needs to be changed, let us know or make a PR targeting this branch. |
Re-running the preset will replace everything in here (the styles only if you tell it to). So you might want to make a backup of those files if you don’t already have them committed. |
Looks like that particular error is just a result of the v1 change to the tailwind config... I found an error though prior to that when I run yarn command: warning " > stylelint-webpack-plugin@0.10.5" has incorrect peer dependency "webpack@^1.13.2 || ^2.7.0 || ^3.11.0 || ^4.4.0". multiple errors later on .. |
To rule out any issues that may have arose from my custom environment .. I spun up a vanilla environment, downloaded vanilla sage theme v9.0.9 and ran the commands you listed above..I still got the same errors and I believe there are dependency issues related to the stylelint-webpack-plugin... Were you able to successfully upgrade to v1.0.0 using your commands on vanilla sage v9.0.9? Here is the full terminal output in a pastebin - https://pastebin.com/5bmDQk4Z |
And one more time for good measure :) - https://pastebin.com/wsjvAi4a |
This seams a bit weird, but I think its a good demonstration of Tailwind.
@brandontamm I guess I hadn’t bumped the Tailwind version in As far as I’m concerned, this is ready for review/merge once Tailwind 1.0.0 releases. |
Excellent! I noticed the commits and was kind of learning along with you when you were adding to the configuration and plugin. I really like the revamp on the config and plugins!
Brandon Tamm
Sent from Mobile
… On May 10, 2019, at 2:31 AM, Nathan Knowler ***@***.***> wrote:
@brandontamm I guess I hadn’t bumped the Tailwind version in package.json since I was waiting until it was closer to release. A good chunk of the errors you were experiencing was because of that. Now I have the package version set to 1.0.0 which might not work, but at least NPM/Yarn should prompt you to install an available version. I also fixed all the colours and I made a plugin which accounts for the global styles (uses theme values to override Tailwind’s base styles — I think that’s pretty great).
As far as I’m concerned, this is ready for review/merge once Tailwind 1.0.0 releases.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Still getting all the errors on a vanilla Sage installation. I was able to select v1.0.0-beta8 |
Does |
Tailwind 1.0.0 is released now. I ran a test with the official release and everything is running fine. |
Can you share the dependency versions you are using for sage? I am using:
|
@brandontamm Can you move your issue over to our discourse — it’s not related to Tailwind 1.0.0 being implemented into Sage. I am using the latest Node LTS release (10.15.3) as installed with NVM. See our getting started documentation to properly set up your development environment to use Sage. Also it looks like you are using an unsupported version of webpack with Sage 9. |
I’ve begun updating the Tailwind stubs for its 1.0.0 release based on the draft upgrade guide.
TODO:
addBase
for setting base styles (e.g. heading sizes)