This commit is contained in:
parent
56cc37de7e
commit
81633cda04
72 changed files with 1299 additions and 37 deletions
8
.github/workflows/deploy.yml
vendored
8
.github/workflows/deploy.yml
vendored
|
|
@ -5,7 +5,7 @@ on:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
jobs:
|
jobs:
|
||||||
svelte-storybook:
|
theia-storybook:
|
||||||
name: Deploy ${{ env.GITHUB_REPOSITORY }}
|
name: Deploy ${{ env.GITHUB_REPOSITORY }}
|
||||||
runs-on: ubuntu-22.04
|
runs-on: ubuntu-22.04
|
||||||
steps:
|
steps:
|
||||||
|
|
@ -23,6 +23,6 @@ jobs:
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
push: true
|
push: true
|
||||||
context: packages/svelte
|
context: packages/theia
|
||||||
file: packages/svelte/Dockerfile.storybook
|
file: packages/theia/Dockerfile.storybook
|
||||||
tags: git.palko.ca/${{ env.GITHUB_REPOSITORY }}-svelte-storybook:latest
|
tags: git.palko.ca/${{ env.GITHUB_REPOSITORY }}-theia-storybook:latest
|
||||||
|
|
@ -3,9 +3,7 @@
|
||||||
"private": true,
|
"private": true,
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"workspaces": [
|
"workspaces": [],
|
||||||
"packages/svelte"
|
|
||||||
],
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"lint": "prettier --check . && eslint .",
|
"lint": "prettier --check . && eslint .",
|
||||||
|
|
@ -24,4 +22,4 @@
|
||||||
"prettier-plugin-svelte": "^3.2.6",
|
"prettier-plugin-svelte": "^3.2.6",
|
||||||
"prettier-plugin-tailwindcss": "^0.6.5"
|
"prettier-plugin-tailwindcss": "^0.6.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -4,6 +4,7 @@ WORKDIR /opt/build
|
||||||
|
|
||||||
COPY . .
|
COPY . .
|
||||||
RUN bun install --frozen-lockfile \
|
RUN bun install --frozen-lockfile \
|
||||||
|
&& bunx svelte-kit sync \
|
||||||
&& bun run build-storybook
|
&& bun run build-storybook
|
||||||
|
|
||||||
FROM nginx:alpine3.21
|
FROM nginx:alpine3.21
|
||||||
|
|
|
||||||
|
|
@ -1,27 +0,0 @@
|
||||||
{
|
|
||||||
"lockfileVersion": 1,
|
|
||||||
"workspaces": {
|
|
||||||
"": {
|
|
||||||
"name": "svelte-components",
|
|
||||||
"devDependencies": {
|
|
||||||
"@types/bun": "latest",
|
|
||||||
},
|
|
||||||
"peerDependencies": {
|
|
||||||
"typescript": "^5.0.0",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
"packages": {
|
|
||||||
"@types/bun": ["@types/bun@1.2.4", "", { "dependencies": { "bun-types": "1.2.4" } }, "sha512-QtuV5OMR8/rdKJs213iwXDpfVvnskPXY/S0ZiFbsTjQZycuqPbMW8Gf/XhLfwE5njW8sxI2WjISURXPlHypMFA=="],
|
|
||||||
|
|
||||||
"@types/node": ["@types/node@22.13.9", "", { "dependencies": { "undici-types": "~6.20.0" } }, "sha512-acBjXdRJ3A6Pb3tqnw9HZmyR3Fiol3aGxRCK1x3d+6CDAMjl7I649wpSd+yNURCjbOUGu9tqtLKnTGxmK6CyGw=="],
|
|
||||||
|
|
||||||
"@types/ws": ["@types/ws@8.5.14", "", { "dependencies": { "@types/node": "*" } }, "sha512-bd/YFLW+URhBzMXurx7lWByOu+xzU9+kb3RboOteXYDfW+tr+JZa99OyNmPINEGB/ahzKrEuc8rcv4gnpJmxTw=="],
|
|
||||||
|
|
||||||
"bun-types": ["bun-types@1.2.4", "", { "dependencies": { "@types/node": "*", "@types/ws": "~8.5.10" } }, "sha512-nDPymR207ZZEoWD4AavvEaa/KZe/qlrbMSchqpQwovPZCKc7pwMoENjEtHgMKaAjJhy+x6vfqSBA1QU3bJgs0Q=="],
|
|
||||||
|
|
||||||
"typescript": ["typescript@5.8.2", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-aJn6wq13/afZp/jT9QZmwEjDqqvSGp1VT5GVg+f/t6/oVyrgXM6BY1h9BRh/O5p3PlUPAe+WuiEZOmb/49RqoQ=="],
|
|
||||||
|
|
||||||
"undici-types": ["undici-types@6.20.0", "", {}, "sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg=="],
|
|
||||||
}
|
|
||||||
}
|
|
||||||
11
packages/theia/Dockerfile.storybook
Normal file
11
packages/theia/Dockerfile.storybook
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
FROM oven/bun:1.2-alpine AS build
|
||||||
|
|
||||||
|
WORKDIR /opt/build
|
||||||
|
|
||||||
|
COPY . .
|
||||||
|
RUN bun install --frozen-lockfile \
|
||||||
|
&& bun run build-storybook
|
||||||
|
|
||||||
|
FROM nginx:alpine3.21
|
||||||
|
|
||||||
|
COPY --from=build --chown=1000:1000 /opt/build/storybook-static /usr/share/nginx/html
|
||||||
|
|
@ -1,5 +1,6 @@
|
||||||
# Svelte Components
|
# Theia
|
||||||
|
|
||||||
|
Common Svelte components
|
||||||
|
|
||||||
To run:
|
To run:
|
||||||
|
|
||||||
1278
packages/theia/bun.lock
Normal file
1278
packages/theia/bun.lock
Normal file
File diff suppressed because it is too large
Load diff
|
|
@ -1,5 +1,5 @@
|
||||||
{
|
{
|
||||||
"name": "@atlas/svelte",
|
"name": "@atlas/theia",
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"version": "1.0.5-alpha",
|
"version": "1.0.5-alpha",
|
||||||
"exports": {
|
"exports": {
|
||||||
Loading…
Add table
Reference in a new issue