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.3 to 4.0.0 in /astro #25

Merged
merged 1 commit into from
Jun 22, 2023

Conversation

dependabot[bot]
Copy link
Contributor

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

Bumps @astrojs/tailwind from 3.1.3 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.3 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/tailwind@4.0.0/packages/integrations/tailwind)
    
    ---
    updated-dependencies:
    - dependency-name: "@astrojs/tailwind"
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] <support@github.com>
    @dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jun 22, 2023
    @mooxl mooxl merged commit d1f6324 into main Jun 22, 2023
    @dependabot dependabot bot deleted the dependabot/npm_and_yarn/astro/astrojs/tailwind-4.0.0 branch June 22, 2023 23:06
    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.

    1 participant