The base theme consists of a bunch of files and folders that form its structure. It includes configuration files and sub-folders commonly found in React applications. The following table will guide you with the purpose of each file/folder:
File/FolderPurpose
publicContains image and other asset files to be served as-is when you build the base theme.
srcSource files for the base theme. You will spend most of your time here.
.env.exampleSample environment variables file.
.editorconfigConfiguration for the code editors. For more information, visit EditorConfig website.
.eslintignoreSpecifies the files and folders that ESLint should ignore.
.eslintrc.jsSpecifies the rules for ESLint to check against.
.gitignoreSpecifies the files and folder that Git should ignore.
.nvmrcSpecifies the Node version to use with NVM.
.prettierrcConfiguration file for Prettier formatter.
package.jsonConfigures the npm package dependencies that are available to the base theme. For more information, refer to npm’s package.json documentation.
README.mdIntroductory documentation for the base theme.
tsconfig.jsonContains TypeScript configuration for the base theme. Refer TypeScript’s TSConfig documentation for more info.
Next, let’s explore what is inside the src folder of the base theme.