Skip to content

Commit 7b9d46b

Browse files
committed
xxx
2 parents b334b89 + 1b7672e commit 7b9d46b

17 files changed

Lines changed: 1722 additions & 345 deletions

File tree

.dockerignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
dist
2+
node_modules
3+
docker
4+
.dockerignore
5+
.git
6+
.github
7+
.gitignore
8+
.yarn
9+
.pnp.cjs*
10+
.pnp.loader.mjs
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: gh-pages-deploy
2+
run-name: FancyWeb GH Pages deploy
3+
on:
4+
push:
5+
branches:
6+
- 'deploy'
7+
jobs:
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: '22.18'
15+
- name: Enable and set up Yarn
16+
run: |
17+
corepack enable
18+
yarn set version 4.9.2
19+
- name: Install packages and build
20+
run: |
21+
yarn install --check-cache
22+
yarn run build-main
23+
- name: Get production artifact
24+
uses: actions/upload-artifact@v4
25+
with:
26+
name: production-build
27+
path: dist

.github/workflows/main-deployment.yml

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

.github/workflows/static.yml

Whitespace-only changes.

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,9 @@ dist-ssr
2626

2727
*storybook.log
2828
storybook-static
29+
30+
# yarn PnP files
31+
.pnp.cjs*
32+
.pnp.loader.mjs
33+
34+
.vim

.yarnrc.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Run Storybook: `yarn run storybook`
3030
Builds are being preparing and be ready soon. Wait a bit.
3131

3232
## Alternative development way with docker
33-
Run compose: `docker compose up`
33+
Run compose: `docker compose -f docker/docker-compose.yaml up --watch`
3434

3535
### Technical support and donations
3636

docker-compose.yaml

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

docker/Dockerfile

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
FROM node:lts-alpine
1+
FROM node:current-alpine
22

3-
EXPOSE 5173
4-
ENV COREPACK_ENABLE_DOWNLOAD_PROMPT=0
5-
RUN mkdir -p /opt/app && corepack enable && corepack install --global pnpm
3+
WORKDIR /opt/fancyweb-ng
4+
5+
COPY package.json yarn.lock ./
6+
7+
RUN corepack enable && yarn set version 4.9.2
68

7-
WORKDIR /opt/app
8-
USER node
9+
RUN yarn install
910

10-
ENTRYPOINT ["docker/start_dev.sh"]
11+
COPY . ./
12+
13+
EXPOSE 5173

docker/docker-compose.yaml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
services:
2+
fancyweb-ng:
3+
container_name: fancyweb-ng
4+
tty: true
5+
build:
6+
context: ../
7+
dockerfile: docker/Dockerfile
8+
no_cache: true
9+
command: yarn run dev-main
10+
develop:
11+
watch:
12+
- path: ../src
13+
action: sync
14+
target: /opt/fancyweb-ng/src
15+
ignore:
16+
- node_modules
17+
- dist
18+
- action: rebuild
19+
path: packaje.json
20+
ports:
21+
- 5173:5173

0 commit comments

Comments
 (0)