Skip to content

Commit 3efbc0c

Browse files
committed
update deps
1 parent 56dec0e commit 3efbc0c

File tree

19 files changed

+2868
-36156
lines changed

19 files changed

+2868
-36156
lines changed

.dockerignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules
2+
dist
3+
.git

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = true
12+
insert_final_newline = true
13+
14+
[Makefile]
15+
indent_style = tab

.github/workflows/main.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v5
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 24
21+
cache: 'npm'
22+
- run: npm ci
23+
24+
deploy:
25+
needs: build
26+
runs-on: ubuntu-latest
27+
if: ${{ github.event_name == 'push' }}
28+
29+
steps:
30+
- uses: actions/checkout@v5
31+
32+
- uses: docker/setup-buildx-action@v3
33+
34+
- name: Log in to GitHub Container Registry
35+
uses: docker/login-action@v3
36+
with:
37+
registry: ghcr.io
38+
username: ${{ github.actor }}
39+
password: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- name: Build and push
42+
uses: docker/build-push-action@v6
43+
with:
44+
context: .
45+
push: true
46+
cache-from: ghcr.io/${{ github.repository }}:latest
47+
cache-to: type=inline
48+
tags: ghcr.io/${{ github.repository }}:latest

.github/workflows/v2.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Python CI
2+
3+
on:
4+
push:
5+
branches:
6+
- v2_bug_fixes
7+
pull_request:
8+
branches:
9+
- v2_bug_fixes
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- uses: actions/checkout@v5
17+
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 24
21+
cache: 'npm'
22+
- run: npm ci
23+
24+
deploy:
25+
needs: build
26+
runs-on: ubuntu-latest
27+
if: ${{ github.event_name == 'push' }}
28+
29+
steps:
30+
- uses: actions/checkout@v5
31+
32+
- uses: docker/setup-buildx-action@v3
33+
34+
- name: Log in to GitHub Container Registry
35+
uses: docker/login-action@v3
36+
with:
37+
registry: ghcr.io
38+
username: ${{ github.actor }}
39+
password: ${{ secrets.GITHUB_TOKEN }}
40+
41+
- name: Build and push
42+
uses: docker/build-push-action@v6
43+
with:
44+
context: .
45+
push: true
46+
cache-from: ghcr.io/${{ github.repository }}:v2
47+
cache-to: type=inline
48+
tags: ghcr.io/${{ github.repository }}:v2

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+
dist

.npmrc

Whitespace-only changes.

Dockerfile.production

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM node:24-alpine
2+
3+
WORKDIR /app
4+
5+
COPY package*.json ./
6+
7+
RUN npm ci
8+
9+
COPY . .
10+
11+
RUN npm run build
12+
13+
CMD ["npx", "vite", "preview"]

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
install:
2+
npm ci
3+
4+
start:
5+
npm run dev
6+
7+
build:
8+
npm run build
9+
10+
preview:
11+
npm run preview
12+
13+
test:
14+
npm run test
15+
16+
compose-production:
17+
docker compose -f docker-compose.production.yml down -v --remove-orphans
18+
docker compose -f docker-compose.production.yml build
19+
docker compose -f docker-compose.production.yml up --abort-on-container-exit

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
# Products-store-hexlet
1+
## To start
22

3-
## To start:
43
### `npm start`
54

65
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.
6+
77
### `npm run build`
88

99
Builds the app for production to the `build` folder.\
1010
It correctly bundles React in production mode and optimizes the build for the best performance.
1111

1212
---
1313

14-
[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://hexlet.io/?utm_source=github&utm_medium=referral&utm_campaign=hexlet&utm_content=hexlet-basics)
15-
16-
This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io/?utm_source=github&utm_medium=referral&utm_campaign=hexlet&utm_content=hexlet-basics).
14+
[![Hexlet Ltd. logo](https://raw.githubusercontent.com/Hexlet/assets/master/images/hexlet_logo128.png)](https://hexlet.io/?utm_source=github&utm_medium=referral&utm_campaign=hexlet-components&utm_content=products-store)
1715

18-
See most active contributors on [hexlet-friends](https://friends.hexlet.io/).
16+
This repository is created and maintained by the team and the community of Hexlet, an educational project. [Read more about Hexlet](https://hexlet.io/?utm_source=github&utm_medium=referral&utm_campaign=hexlet-components&utm_content=products-store).

docker-compose.production.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
3+
services:
4+
app:
5+
build:
6+
context: .
7+
dockerfile: Dockerfile.production
8+
environment:
9+
PORT: "8080"
10+
ports:
11+
- "8080:8080"

0 commit comments

Comments
 (0)