Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
This repository is built to provide a ready-to-go template for the projects that are using NextJS, Tailwind, Storybook, eslint, jest, prettier in them.
Next.js Tailwind Storybook with CI/CD is a GitHub template that scaffolds a Next.js 13 app pre-configured with Tailwind CSS, Storybook, Jest, React Testing Library, ESLint, and Prettier, including a GitHub Actions workflow for linting and unit tests.
This template provides a ready-to-go starter repository for web projects built on Next.js 13, Tailwind CSS, Storybook, Jest, React Testing Library, ESLint, and Prettier. It outputs a functioning Next.js application with all tooling wired together, so developers can generate a new repo from the template and immediately run yarn dev to start at localhost:3000 or yarn storybook for the component library at localhost:6006. The template was authored by Showrin and is distributed under the MIT License.
tests.yml workflow runs ESLint and unit tests on every push to the origin, with room to add more actions in .github/workflows.index.js, optional subComponents, a .stories.jsx Storybook file, and a .test.jsx file, keeping both Storybook and Jest consistent.jsconfig.json defines @/ as an alias for the root directory, enabling absolute imports throughout the app..storybook folder includes main.js, preview.js, appTheme.js, manager.js, and manager-head.html for customizing the component preview, theme, and meta tags.yarn build creates a production build, yarn start serves it on port 3000, and yarn build-storybook exports a static Storybook site for deployment.[DOMAIN-NAME].vercel.app URL.yarn to install dependencies, then yarn dev for a working site at localhost:3000.yarn storybook to view and interact with all stories at localhost:6006, using the provided Storybook theming and JS doc support to document components.yarn test to execute all *.test.jsx and *.test.ts files, or yarn test:watch for real-time feedback; the included CI action runs the same checks on every push.After generating a new repository from the template, the workflow is: clone the repo, run yarn to install dependencies, and use the pre-added package scripts to develop, test, lint, and build. The repository already contains a GitHub Actions workflow that triggers on every push, and config files for Next.js, Tailwind, Jest, ESLint, Prettier, and Storybook are all present so you can modify behavior by editing the respective configuration files.
Yes, the repository is open source under an MIT License. Note that when you create a repository from this template, you should replace the license with your own project's license.
Click the generate a new repo using this template link in the README, give the repository a name and description, then click Create repository from template. You can leave the Include all branches option unchecked.
The template was built with NodeJS 16.10.0, Next.js 13.3.0, React 18.2.0, Tailwind CSS 3.3.1, Storybook 7.0.5, Jest 29.5.0, and React Testing Library 14.0.0, among others.
Yes, a GitHub Action in tests.yml runs JavaScript linting and unit tests on every commit pushed to origin. You can add more workflow files in the .github/workflows folder.
Yes, the README includes a detailed guideline: go to Vercel's dashboard, import the GitHub repository, add environment variables from your .env file, and click Deploy. You'll get a URL in the form of [DOMAIN-NAME].vercel.app.
