Migrate examples to type: module (#4662)

* chore: move examples to type module

* chore: prefer astro.config.mjs to astro.config.js

* chore: reference CJS config file

Co-authored-by: Nate Moore <nate@astro.build>
This commit is contained in:
Nate Moore 2022-09-13 14:02:57 -05:00 committed by GitHub
parent 234057b020
commit 8cfb3fb535
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
25 changed files with 38 additions and 2 deletions

View file

@ -0,0 +1,5 @@
---
'@astrojs/tailwind': patch
---
Update README to reference a `.cjs` config file

View file

@ -1,5 +1,6 @@
{
"name": "@example/basics",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/blog",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -0,0 +1,10 @@
import { defineConfig } from 'astro/config';
// https://astro.build/config
export default defineConfig({
vite: {
ssr: {
noExternal: ['@example/my-component'],
},
},
});

View file

@ -1,5 +1,6 @@
{
"name": "@example/docs",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/framework-alpine",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/framework-lit",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/framework-multiple",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/framework-preact",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/framework-react",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/framework-solid",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/framework-svelte",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/framework-vue",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/minimal",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/non-html-pages",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/portfolio",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/ssr",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/with-markdown-plugins",
"type": "module",
"version": "0.0.2",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/with-markdown-shiki",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/with-mdx",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/with-nanostores",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/with-tailwindcss",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,5 +1,6 @@
{
"name": "@example/with-vite-plugin-pwa",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {

View file

@ -1,7 +1,7 @@
{
"name": "@example/with-vitest",
"version": "0.0.1",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "astro dev",

View file

@ -93,7 +93,7 @@ import tailwind from '@astrojs/tailwind';
export default {
integrations: [tailwind({
// Example: Provide a custom path to a Tailwind config file
config: { path: './custom-config.js' },
config: { path: './custom-config.cjs' },
})],
}
```