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

add: Support for Next 13 #242

Merged
merged 1 commit into from
Jan 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 21 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,29 @@ Scaffold a new project of your choice of framework, with tailwindcss
npx twify@latest create vite <my-app-directory>

# Or with preferred package Manager

# Yarn
npx twify@latest yarn create vite <my-app-directory>
# PNPM
npx twify@latest pnpm create vite <my-app-directory>
```

Above the project that is specified is `vite`. You can choose any of the following.

Supported Projects are:
**Project Usage**:

Below commands will install the `@latest` versions of the respective frameworks.

- `create next <my-app-directory>` - (Latest Next JS)
- `create nuxt <my-app-directory>` - (Nuxt 2)
- `create nuxt3 <my-app-directory>` - (Nuxt 3)
- `create svelte <my-app-directory>` - (Svelte Kit)
- `create remix <my-app-directory>` - (Latest Remix)
- `create react <my-app-directory>` - (Latest CRA)
- `create angular <my-app-directory>` - (Latest Angular)
- `create laravel <my-app-directory>` - (Latest Laravel)
| **Framework** | **Command** |
| ---------------- | ------------------------------------------ |
| Next 13 | `npx twify@latest create next <my-app>` |
| Remix | `npx twify@latest create remix <my-app>` |
| Nuxt 2 | `npx twify@latest create nuxt <my-app>` |
| Nuxt 3 | `npx twify@latest create nuxt3 <my-app>` |
| Svelte Kit | `npx twify@latest create svelte <my-app>` |
| Laravel Vite | `npx twify@latest create laravel <my-app>` |
| Vite | `npx twify@latest create vite <my-app>` |
| Angular | `npx twify@latest create angular <my-app>` |
| Create React App | `npx twify@latest create react <my-app>` |

You can pass all the framework specific flags as well like the following,

Expand Down Expand Up @@ -95,7 +102,7 @@ Below are the list of Supported Projects,

| **Framework** | **Javascript** | **Typescript** |
| ---------------- | ------------------ | ------------------ |
| Next JS | :white_check_mark: | :white_check_mark: |
| Next 13 | :white_check_mark: | :white_check_mark: |
| Remix | :white_check_mark: | :white_check_mark: |
| Nuxt 2 | :white_check_mark: | :white_check_mark: |
| Nuxt 3 | :white_check_mark: | :white_check_mark: |
Expand All @@ -104,7 +111,9 @@ Below are the list of Supported Projects,
| Vite | :white_check_mark: | :white_check_mark: |
| Angular | :white_check_mark: | :white_check_mark: |
| Create React App | :white_check_mark: | :white_check_mark: |
| Gatsby | :o: WIP | :o: WIP |
| Solid JS | :o: WIP | :o: WIP |
| Astro | :o: WIP | :o: WIP |
| Qwik | :o: WIP | :o: WIP |

## :microscope: Testing

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "twify",
"version": "0.4.1",
"version": "0.4.2",
"description": "A Tool to Setup TailwindCSS in your Project with a Single Command",
"bin": {
"twify": "dist/main.js"
Expand Down
2 changes: 2 additions & 0 deletions src/frameworks/nextjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ const NextJS: Framework = {
content: [
'./pages/**/*.{js,ts,jsx,tsx}',
'./components/**/*.{js,ts,jsx,tsx}',
'./src/**/*.{js,ts,jsx,tsx}',
'./app/**/*.{js,ts,jsx,tsx}',
],
steps: [],
};
Expand Down
2 changes: 2 additions & 0 deletions tests/__snapshots__/drivers.spec.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ exports[`Drivers > has a list of drivers 1`] = `
"content": [
"./pages/**/*.{js,ts,jsx,tsx}",
"./components/**/*.{js,ts,jsx,tsx}",
"./src/**/*.{js,ts,jsx,tsx}",
"./app/**/*.{js,ts,jsx,tsx}",
],
"cssLocation": "./styles/globals.css",
"initCommands": [
Expand Down