Skip to content

Commit 67050d9

Browse files
authored
Merge branch 'main' into dependabot/npm_and_yarn/vite-5.4.21
2 parents e879b01 + 6c756dc commit 67050d9

91 files changed

Lines changed: 3203 additions & 972 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.docker/.dockerignore‎

Lines changed: 0 additions & 3 deletions
This file was deleted.

‎.docker/Dockerfile‎

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
1-
FROM node:16.18.1-alpine3.16
1+
FROM node:20-alpine
22

3-
COPY bin/entrypoint.sh /usr/local/bin/entrypoint.sh
3+
WORKDIR /usr/src/app
44

5-
RUN mkdir -p /usr/src/app \
6-
&& apk update \
7-
&& apk add --no-cache bash==5.1.16-r2 \
8-
&& rm -rf /var/cache/apk/* \
9-
&& rm -rf /tmp/*
5+
RUN apk add --no-cache bash git
106

11-
WORKDIR /usr/src/app
7+
COPY package*.json ./
8+
9+
RUN if [ -f package-lock.json ]; then \
10+
npm ci --legacy-peer-deps; \
11+
else \
12+
npm install --legacy-peer-deps; \
13+
fi
14+
15+
EXPOSE 5173
1216

13-
EXPOSE 6006
14-
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]
17+
CMD ["npm", "run", "docs:dev", "--", "--host", "0.0.0.0"]

‎.dockerignore‎

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# Dependencies
2+
node_modules/
3+
4+
# Build outputs
5+
dist/
6+
7+
# Git
8+
.git/
9+
.gitignore
10+
11+
# IDE
12+
.idea/
13+
.vscode/
14+
*.swp
15+
*.swo
16+
17+
# OS
18+
.DS_Store
19+
Thumbs.db
20+
21+
# Documentation build
22+
docs/.vitepress/dist/
23+
24+
# Test coverage
25+
coverage/
26+
27+
# Logs
28+
*.log
29+
npm-debug.log*
30+
31+
# Misc
32+
*.md
33+
!package.json
34+
!package-lock.json
35+
36+
# Local docs assets (optional exclusion)
37+
docs/.vitepress/cache/

‎.github/workflows/build-docs.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: 'Build docs 📚'
22
permissions:
33
contents: read
4+
actions: read
45

56
on: [push]
67

‎.github/workflows/deploy.yml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ permissions:
1010
contents: read
1111
pages: write
1212
id-token: write
13+
actions: read
1314

1415
concurrency:
1516
group: pages

‎.github/workflows/publish.yml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ on:
33
push:
44
branches:
55
- main
6+
permissions:
7+
id-token: write
8+
contents: read
9+
actions: read
610
jobs:
711
build:
812
runs-on: ubuntu-latest
@@ -17,6 +21,6 @@ jobs:
1721
- name: Install dependencies and build 🔧
1822
run: npm ci && npm run build
1923
- name: Publish package on NPM 📦
20-
run: npm publish
24+
run: npm publish --provenance
2125
env:
2226
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

‎README.md‎

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66

77
<div align="center">
88
<p align="center">A design system built by Sysvale, using Vue components</p>
9-
<p align="center">https://cuida.framer.wiki/</p>
10-
<p align="center">https://main--6168a1779cac8c003ab99c2d.chromatic.com</p>
11-
<p align="center">Preview da migração da documentação em VitePress: https://cuida.sysvale.com/</p
9+
<p align="center">https://cuida.sysvale.com/</p>
1210
</div>
1311

1412
## Instalando
@@ -75,13 +73,18 @@ e importe o arquivo de tokens na sua tag script.
7573
git clone https://github.com/Sysvale/cuida.git
7674
```
7775
78-
- Instale as dependências e suba o container docker:
76+
- Suba o container docker:
7977
8078
```bash
81-
docker-compose up -d
79+
./setup.sh
8280
```
8381
84-
A documentação estará disponível na porta `5173`, em [http://localhost:5173/](http://localhost:5173).
82+
A porta onde o projeto estará disponível será exibida no terminal.
83+
84+
- Instale as dependências no container:
85+
```bash
86+
./on-server.sh npm i
87+
```
8588
8689
- Caso não queira usar docker, instale as dependências com:
8790
@@ -97,15 +100,16 @@ npm i
97100
npm run docs:dev
98101
```
99102
100-
### Testando-o
103+
- Usando o container docker:
101104
102-
- Utilizando o docker:
103105
104106
```bash
105-
docker-compose exec cuida npm run test
107+
./on-server.sh npm run docs:dev
106108
```
107109
108-
ou
110+
### Testando-o
111+
112+
- Utilizando o docker:
109113
110114
```bash
111115
./on-server.sh npm run test

‎docker-compose.yml‎

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,21 @@ version: '3.7'
22

33
services:
44
cuida:
5-
container_name: main
6-
image: sysvaleops/cuida:dev-1.0
5+
container_name: cuida_dev
6+
build:
7+
context: .
8+
dockerfile: .docker/Dockerfile
79
volumes:
810
- .:/usr/src/app
11+
- node_modules:/usr/src/app/node_modules
912
ports:
10-
- 6006:6006
13+
- "5173:5173"
14+
environment:
15+
- NODE_ENV=development
16+
stdin_open: true
17+
tty: true
18+
working_dir: /usr/src/app
19+
command: ["npm", "run", "docs:dev", "--", "--host", "0.0.0.0"]
20+
21+
volumes:
22+
node_modules:

0 commit comments

Comments
 (0)