Skip to content

a1exevs/stroy-in-tekh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

355 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stroy In Tekh

Description

A website for a company OOO «StroyInTekh» (INN 3665827526) specializing in the manufacturing of storage and purification equipment.

Yarn version

v4.1.0

npm install -g corepack@0.31.0
corepack enable
yarn install

NPM version

v10.2.4

Node version

v20.9.0. Use NVM:

  1. nvm current - check current version of Node
  2. nvm list - show list of available Node versions
  3. nvm install - to install and use Node version.
  4. nvm use - set version of Node as current version

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

yarn install
yarn run dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying src/** files. The page auto-updates as you edit the files.

Available Scripts

In the project directory, you can run:

yarn dev

Runs the development server on localhost:3000.It rebuilds automatically when changes are made to the code.

yarn build

Builds the application for production.

yarn start

Starts the production server after building the project.

yarn lint

Runs ESLint for static code analysis on TypeScript and TSX files.

yarn lint:fix

Fixes errors found by ESLint in TypeScript and TSX files.

yarn format

Formats all TypeScript, CSS, and SCSS files in the src and the .storybook folder using Prettier.

yarn storybook

Runs Storybook in development mode on port 6006.

yarn test:unit

Runs unit tests using the Jest configuration.

yarn test:unit-cov

Runs unit tests with coverage calculation option.

yarn test:snap

Runs snapshot tests using the Jest configuration.

yarn test:snap-cov

Runs snapshot tests with coverage calculation option.

yarn test:snap-update

Updates snap-data of snapshot tests.

yarn test:e2e

Executes e2e tests (Playwright)

yarn test

Sequentially executes unit tests, snapshot tests, integration tests, e2e tests.

yarn docs

Generates comprehensive documentation using TypeDoc.

yarn build-storybook

Builds a static version of Storybook for deployment.

yarn chromatic

Runs Chromatic to check for visual changes in components and exits with a code 0 even if changes are detected.

yarn version:major

Increments the major version in package.json and src/app/manifest.json.
For example, changes "version": "1.2.3" to "version": "2.0.0".

yarn version:minor

Increments the minor version in package.json and src/app/manifest.json.
For example, changes "version": "1.2.3" to "version": "1.3.0".

yarn version:patch

Increments the patch version in package.json and src/app/manifest.json.
For example, changes "version": "1.2.3" to "version": "1.2.4".

yarn update-version:major

Automates the process of merging branches, increasing the major-version in the package.json file and manifest file, and committing the changes to the designated branch. This ensures the version is updated consistently and the changes are easily trackable in the repository.

yarn update-version:minor

Automates the process of merging branches, increasing the minor-version in the package.json file and manifest file, and committing the changes to the designated branch. This ensures the version is updated consistently and the changes are easily trackable in the repository.

yarn update-version:patch

Automates the process of merging branches, increasing the patch-version in the package.json file and manifest file, and committing the changes to the designated branch. This ensures the version is updated consistently and the changes are easily trackable in the repository.

yarn check-deps

Checks for outdated dependencies in the project.

yarn upgrade-deps

Upgrades all dependencies to their latest versions.

yarn postinstall

Automatically runs husky hooks for Git management and installs Playwright deps.

yarn e2e:install

Installs Playwright deps.

Release steps

  1. run yarn update-version:patch (or :minor, :major)

  2. create PR with message "[Common] Version increase vX.X.X" from "common/version-increase" into "develop"

  3. create PR with message "[Testing] Release vX.X.X" from "develop" into "testing"

  4. go to Vercel project, wait for the testing server update to complete, go to the testing site and make sure everything is working

  5. create PR with message "Release vX.X.X" from "testing" into "main"

  6. go to Amvera project, wait for the production server update to complete, go to the production site and make sure everything is working

  7. go to Github Repo Home page -> Tags -> Releases -> Draft a new release.

    a) create a new tag via "Choose a tag" autocomplete

    b) select "develop" branch as a target

    c) click the "Generate release notes" button, remove unnecessary notes if necessary, check PR messages and correct the messages if necessary (via PR editing)

    d) select "main" branch as a target

    e) click the "Publish release"

  8. checkout "testing" and pull, then merge "main" into "testing" and push

  9. checkout "develop" and pull, then merge "testing" into "develop" and push

  10. update RELEASE-NOTES.md with using generated notes in step 7, create PR with from "common/release-notes-update-vX.X.X" to "develop" message "[Common] RELEASE-NOTES.md update vX.X.X"

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.

Learn More

To learn more about Next.js, take a look at the following resources:

Repository

Link to repository https://github.com/a1exevs/stroy-in-tekh.

Link to project https://github.com/users/a1exevs/projects/6

Useful links

Browser Stack - https://www.browserstack.com/

Nu Html Checker - https://validator.w3.org/nu/

PageSpeed Insights - https://pagespeed.web.dev/

Sitemap Generator - https://www.xml-sitemaps.com/

Robots TXT Generator - https://pr-cy.ru/robots/

Schema Org - https://yandex.ru/support/webmaster/schema-org/what-is-schema-org.html

About

A website for a company "StroyInTekh" specializing in the manufacturing of storage and purification equipment.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages