Skip to content

Generate Music Lyrics Slide With Customizable Background.

Notifications You must be signed in to change notification settings

kennarddh/react-music-lyrics

Repository files navigation

React JS Boilerplate

Guide

Install Dependencies

npm install

Environment Variables

All environment variables for react application must start with APP_ prefix

To change env prefix change add or remove string from envPrefix variable in vite.config.json

Environtment variables can be accesed using env.<name> or import.meta.env.<name>. Prefix must be included.

Declare env types in src/env.d.ts in ImportMetaEnv interface

The environment variables can be found and modified in the .env file. They come with these default values:

# Port number (optional, default: 3000)
PORT=3000

# Open browser on start (optional, default: true) if value is other than "true" it will be read as false
OPEN_BROWSER=true

Available Scripts

In the project directory, you can run:

Start

Start development build

npm start

Build

build for production.

npm run build

Preview

Preview production build

npm run preview

Clean

Removes all the files generated by the build process.

npm run clean

Lint Check

Finds errors in your code.

npm run lint:check

Lint Fix

Fixes linting errors.

npm run lint:fix

Prettier fix

Fix the code formatting.

npm run prettier:fix

Prettier check

Check the code formatting.

npm run prettier:check

Test

Run all tests

npm run test

Watch test

Watch changed test

npm run test:watch

Watch all test

Watch all test

npm run test:watch:all

Test coverage

Run test coverage

npm run test:coverage

Test changed

Run tests related to changed files based on git (uncommitted files)

npm run test:changed

Note

  • Babel is only for jest to transpile typescript code. If you don't want to use babel you can use vitest
  • tsconfig.json is for react app typescript configuration
  • tsconfig.node.json is for vite and other development tools typescript configuration that will not be included in build result
  • If you want to disable pre-commit or pre-push git hook you can remove the hook inside .husky directory
  • If you want to disable dependabot you need to remove .github/dependabot.yml
  • If you want to disable codeql analysis you need to remove .github/workflows/codeql-analysis.yml

Releases

No releases published

Packages

No packages published