Skip to content

Commit e50f0c9

Browse files
committed
fix: repo urls & add docker file
1 parent 980ae1a commit e50f0c9

6 files changed

Lines changed: 48 additions & 8 deletions

File tree

.dockerignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.git
2+
.github
3+
node_modules
4+
**/node_modules
5+
dist
6+
**/dist
7+
coverage
8+
playwright-report
9+
test-results
10+
.pnpm-store
11+
.DS_Store

Dockerfile.demo

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
FROM node:20-alpine AS build
2+
WORKDIR /app
3+
4+
RUN corepack enable && corepack prepare pnpm@9.15.0 --activate
5+
6+
COPY package.json pnpm-lock.yaml pnpm-workspace.yaml ./
7+
COPY packages/core/package.json packages/core/package.json
8+
COPY packages/react/package.json packages/react/package.json
9+
COPY apps/demo/package.json apps/demo/package.json
10+
11+
RUN pnpm install --frozen-lockfile
12+
13+
COPY . .
14+
15+
RUN pnpm -r build
16+
17+
FROM node:20-alpine AS runner
18+
WORKDIR /app
19+
20+
ENV NODE_ENV=production
21+
ENV PORT=4173
22+
23+
RUN corepack enable && corepack prepare pnpm@9.15.0 --activate
24+
25+
COPY --from=build /app /app
26+
27+
EXPOSE 4173
28+
29+
CMD ["sh", "-c", "pnpm --filter @protohiro/effects-demo preview --host 0.0.0.0 --port ${PORT:-4173}"]

packages/core/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ npm install @protohiro/effects-core
2020
- `toCssNumber`
2121

2222
For full project docs and examples, see:
23-
https://github.com/snwol/protoeffects
23+
https://github.com/protohiro-com/effects

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
"types": "./dist/index.d.ts",
1010
"repository": {
1111
"type": "git",
12-
"url": "git+https://github.com/snwol/protoeffects.git",
12+
"url": "git+https://github.com/protohiro-com/effects.git",
1313
"directory": "packages/core"
1414
},
15-
"homepage": "https://github.com/snwol/protoeffects#readme",
15+
"homepage": "https://github.com/protohiro-com/effects#readme",
1616
"bugs": {
17-
"url": "https://github.com/snwol/protoeffects/issues"
17+
"url": "https://github.com/protohiro-com/effects/issues"
1818
},
1919
"keywords": ["protoeffects", "css", "effects", "runtime", "utilities"],
2020
"publishConfig": {

packages/react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ export function Button() {
2626
- `useNoiseEffect`
2727

2828
For full docs and demos, see:
29-
https://github.com/snwol/protoeffects
29+
https://github.com/protohiro-com/effects

packages/react/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
"types": "./dist/index.d.ts",
1010
"repository": {
1111
"type": "git",
12-
"url": "git+https://github.com/snwol/protoeffects.git",
12+
"url": "git+https://github.com/protohiro-com/effects.git",
1313
"directory": "packages/react"
1414
},
15-
"homepage": "https://github.com/snwol/protoeffects#readme",
15+
"homepage": "https://github.com/protohiro-com/effects#readme",
1616
"bugs": {
17-
"url": "https://github.com/snwol/protoeffects/issues"
17+
"url": "https://github.com/protohiro-com/effects/issues"
1818
},
1919
"keywords": ["protoeffects", "react", "hooks", "css", "effects"],
2020
"publishConfig": {

0 commit comments

Comments
 (0)