Skip to content

Commit

Permalink
Update default tailwindConfig property (#866)
Browse files Browse the repository at this point in the history
* Update tailwindConfig property to default to local tailwind.config.js file

* update example

* Create two-days-cry.md
  • Loading branch information
stramel authored Jul 27, 2021
1 parent 40bcb12 commit 6ca6d54
Show file tree
Hide file tree
Showing 18 changed files with 40 additions and 18 deletions.
22 changes: 22 additions & 0 deletions .changeset/two-days-cry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
"astro": patch
"create-astro": patch
"@example/blog-multiple-authors": patch
"@example/blog": patch
"@example/docs": patch
"@example/framework-lit": patch
"@example/framework-multiple": patch
"@example/framework-preact": patch
"@example/framework-react": patch
"@example/framework-solid": patch
"@example/framework-svelte": patch
"@example/framework-vue": patch
"@example/portfolio": patch
"@example/starter": patch
"@example/with-markdown-plugins": patch
"@example/with-markdown": patch
"@example/with-tailwindcss": patch
"docs": patch
---

Update default `tailwindConfig` property to use the common value
2 changes: 1 addition & 1 deletion docs/src/pages/reference/configuration-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default {
},
devOptions: {
port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
// component renderers which are enabled by default
renderers: [
Expand Down
2 changes: 1 addition & 1 deletion examples/blog-multiple-authors/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: ['@astrojs/renderer-preact'],
};
2 changes: 1 addition & 1 deletion examples/blog/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: ['@astrojs/renderer-preact'],
};
2 changes: 1 addition & 1 deletion examples/docs/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: ['@astrojs/renderer-preact'],
};
2 changes: 1 addition & 1 deletion examples/framework-lit/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: ['@astrojs/renderer-lit'],
};
2 changes: 1 addition & 1 deletion examples/framework-multiple/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: ['@astrojs/renderer-preact', '@astrojs/renderer-react', '@astrojs/renderer-svelte', '@astrojs/renderer-vue', '@astrojs/renderer-solid'],
};
2 changes: 1 addition & 1 deletion examples/framework-preact/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: ['@astrojs/renderer-preact'],
};
2 changes: 1 addition & 1 deletion examples/framework-react/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: ['@astrojs/renderer-react'],
};
2 changes: 1 addition & 1 deletion examples/framework-solid/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: ['@astrojs/renderer-solid'],
};
2 changes: 1 addition & 1 deletion examples/framework-svelte/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: ['@astrojs/renderer-svelte'],
};
2 changes: 1 addition & 1 deletion examples/framework-vue/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: ['@astrojs/renderer-vue'],
};
2 changes: 1 addition & 1 deletion examples/portfolio/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: ['@astrojs/renderer-preact'],
};
2 changes: 1 addition & 1 deletion examples/starter/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
};
2 changes: 1 addition & 1 deletion examples/with-markdown-plugins/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
};
2 changes: 1 addition & 1 deletion examples/with-tailwindcss/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: ['@astrojs/renderer-preact'],
};
4 changes: 2 additions & 2 deletions packages/astro/test/fixtures/lit-element/astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ export default {
},
devOptions: {
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},
renderers: [
'@astrojs/renderer-lit'
]
};
};
2 changes: 1 addition & 1 deletion packages/create-astro/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const createConfig = ({ renderers }: { renderers: string[] }) => {
devOptions: {
// hostname: 'localhost', // The hostname to run the dev server on.
// port: 3000, // The port to run the dev server on.
// tailwindConfig: '', // Path to tailwind.config.js if used, e.g. './tailwind.config.js'
// tailwindConfig: './tailwind.config.js', // Path to tailwind.config.js
},`,
` renderers: ${JSON.stringify(renderers, undefined, 2)
.split('\n')
Expand Down

0 comments on commit 6ca6d54

Please sign in to comment.