Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump @astrojs/tailwind from 3.1.0 to 4.0.0 #328

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jun 20, 2023

Bumps @astrojs/tailwind from 3.1.0 to 4.0.0.

Release notes

Sourced from @​astrojs/tailwind's releases.

@​astrojs/tailwind@​4.0.0

Major Changes

  • #7391 556fd694a Thanks @​bluwy! - Rename options config.path to configFile, and config.applyBaseStyles to applyBaseStyles. If you are using these options, you need to migrate to the new names.

    // astro.config.mjs
    import { defineConfig } from 'astro/config';
    import tailwind from '@astrojs/tailwind';
    export default defineConfig({
    integrations: [
    tailwind({
    
    
     config: {
    
    
    
       path: '...',
    
    
    
       applyBaseStyles: true,
    
    
    
     },
    
    
    
    
    
     configFile: '...',
    
    
    
     applyBaseStyles: true,
    
    }),
    ],
    });
  • #6724 3f1cb6b1a Thanks @​TomPichaud! - Let the tailwindcss PostCSS plugin load its config file itself. This changes the Tailwind config loading behaviour where it is loaded from process.cwd() instead of the project root.

    If your Tailwind config file is not located in the current working directory, you will need to configure the integration's configFile option to load from a specific path:

    // astro.config.mjs
    import { defineConfig } from 'astro/config';
    import tailwind from '@astrojs/tailwind';
    import { fileURLToPath } from 'url';
    export default defineConfig({
    integrations: [
    tailwind({
    configFile: fileURLToPath(new URL('./tailwind.config.cjs', import.meta.url)),
    }),
    ],
    });

    This change also requires a Tailwind config file to exist in your project as a fallback config is no longer provided. It is set up automatically during astro add tailwind, but if it does not exist, you can manually create a tailwind.config.cjs file in your project root:

    // tailwind.config.cjs
    /** @type {import('tailwindcss').Config} */
    module.exports = {
      content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
  • ... (truncated)

    Changelog

    Sourced from @​astrojs/tailwind's changelog.

    4.0.0

    Major Changes

    • #7391 556fd694a Thanks @​bluwy! - Rename options config.path to configFile, and config.applyBaseStyles to applyBaseStyles. If you are using these options, you need to migrate to the new names.

      // astro.config.mjs
      import { defineConfig } from 'astro/config';
      import tailwind from '@astrojs/tailwind';
      export default defineConfig({
      integrations: [
      tailwind({
      
      
       config: {
      
      
      
         path: '...',
      
      
      
         applyBaseStyles: true,
      
      
      
       },
      
      
      
      
      
       configFile: '...',
      
      
      
       applyBaseStyles: true,
      
      }),
      ],
      });
  • #6724 3f1cb6b1a Thanks @​TomPichaud! - Let the tailwindcss PostCSS plugin load its config file itself. This changes the Tailwind config loading behaviour where it is loaded from process.cwd() instead of the project root.

    If your Tailwind config file is not located in the current working directory, you will need to configure the integration's configFile option to load from a specific path:

    // astro.config.mjs
    import { defineConfig } from 'astro/config';
    import tailwind from '@astrojs/tailwind';
    import { fileURLToPath } from 'url';
    export default defineConfig({
    integrations: [
    tailwind({
    configFile: fileURLToPath(new URL('./tailwind.config.cjs', import.meta.url)),
    }),
    ],
    });

    This change also requires a Tailwind config file to exist in your project as a fallback config is no longer provided. It is set up automatically during astro add tailwind, but if it does not exist, you can manually create a tailwind.config.cjs file in your project root:

    // tailwind.config.cjs
    /** @type {import('tailwindcss').Config} */
    module.exports = {
  • ... (truncated)

    Commits

    Dependabot compatibility score

    Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


    Dependabot commands and options

    You can trigger Dependabot actions by commenting on this PR:

    • @dependabot rebase will rebase this PR
    • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
    • @dependabot merge will merge this PR after your CI passes on it
    • @dependabot squash and merge will squash and merge this PR after your CI passes on it
    • @dependabot cancel merge will cancel a previously requested merge and block automerging
    • @dependabot reopen will reopen this PR if it is closed
    • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
    • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
    • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

    Bumps [@astrojs/tailwind](https://github.com/withastro/astro/tree/HEAD/packages/integrations/tailwind) from 3.1.0 to 4.0.0.
    - [Release notes](https://github.com/withastro/astro/releases)
    - [Changelog](https://github.com/withastro/astro/blob/main/packages/integrations/tailwind/CHANGELOG.md)
    - [Commits](https://github.com/withastro/astro/commits/@astrojs/[email protected]/packages/integrations/tailwind)
    
    ---
    updated-dependencies:
    - dependency-name: "@astrojs/tailwind"
      dependency-type: direct:development
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    @dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 20, 2023
    @cloudflare-workers-and-pages
    Copy link

    cloudflare-workers-and-pages bot commented Jun 20, 2023

    Deploying with  Cloudflare Pages  Cloudflare Pages

    Latest commit: d07e81b
    Status: ✅  Deploy successful!
    Preview URL: https://f03cd0f8.patrikelfstrom.pages.dev
    Branch Preview URL: https://dependabot-npm-and-yarn-astr-8hzx.patrikelfstrom.pages.dev

    View logs

    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    dependencies Pull requests that update a dependency file
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    0 participants