More Premium Hugo Themes Premium React Themes

Npm React

react-npm-template

Npm React

react-npm-template

Author Avatar Theme by codes-templates
Github Stars Github Stars: 17
Last Commit Last Commit: Jun 11, 2024 -
First Commit Created: Jan 15, 2024 -
Npm React screenshot

Overview:

This is a product analysis of a theme or template that is built for React projects. The theme has several key features and supports various tools and technologies. It provides a development environment, supports GitHub Actions, and includes features like styling with SASS and PostCSS, TypeScript support, unit testing, ESLint, and more. The theme also provides instructions on how to set up and configure various tokens and settings for deployment on platforms like GitHub, Netlify, and Vercel.

Features:

  • React support >=16.8.0
  • Project init with vite
  • Support cjs & esm
  • GitHub Actions support (Auto CI on pull_request / Auto Release on push tag / Auto Deploy on push & pull_request)
  • Build npm package with tsup
  • Built-in Docusaurus
  • Built-in react dev environment
  • Use browserslistrc
  • Build styles with sass & postcss (postcss-nested/ autoprefixer / cssnano)
  • Stylelint that helps you avoid errors and enforce conventions in your styles
  • Mono repo with npm
  • TypeScript support
  • Unit Testing with Vitest
  • Storybook for building UI components and pages
  • ESLint for static code analysis
  • Husky & lint-staged for code quality and formatting
  • Commitlint that helps your team adhere to a commit convention
  • Deploy Storybook on Netlify
  • MIT License

Installation:

To use the theme, follow these steps:

  1. Replace “custom-package-name” with your package name in the directory structure.
  2. Add GitHub token:
    • Go to project settings -> actions -> General.
    • Create a new token with the name “GITHUB_TOKEN”.
  3. Add NPM token:
    • Create an npm auth token.
    • Go to project settings -> secrets -> actions.
    • Create a new token with the name “NPM_TOKEN” and paste the npm token.
  4. Add Netlify token:
    • Create a netlify auth token.
    • Go to project settings -> secrets -> actions.
    • Create a new token with the name “NETLIFY_TOKEN” and paste the netlify token.
    • Create a site on Netlify.
    • Copy the site_id from your Netlify site settings.
    • Go to project settings -> secrets -> actions.
    • Create a new token with the name “NETLIFY_SITE_ID” and paste the site_id.
  5. Stop Build from Build settings of site (build-command-javascript-heap-out-of-memory).
  6. Generate VERCEL_ORG_ID / VERCEL_PROJECT_ID:
    • Run npx vercel in the project root folder.
    • Open .vercel/project.json.
    • Copy the orgId and projectId.
    • Go to project settings -> secrets -> actions.
    • Create new tokens with the names “VERCEL_ORG_ID” and “VERCEL_PROJECT_ID” and paste the corresponding values.
  7. Create a Vercel token.
    • Go to project settings -> secrets -> actions.
    • Create a new token with the name “VERCEL_TOKEN” and paste the vercel token.
  8. Change project build settings as needed.

Summary:

This theme or template is designed for React projects and provides a comprehensive set of features and tools to support development, testing, and deployment. It includes support for various technologies like TypeScript, Storybook, ESLint, and GitHub Actions. The installation process involves setting up tokens and configurations for platforms like GitHub, Netlify, and Vercel.