Skip to content

Commit

Permalink
fix: 🐛 missing docs build, and docs update
Browse files Browse the repository at this point in the history
  • Loading branch information
charlzyx committed Mar 7, 2024
1 parent 9a6b0bd commit 54af71f
Show file tree
Hide file tree
Showing 9 changed files with 30 additions and 7,614 deletions.
14 changes: 8 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,22 @@
## v2.0.0...v1.1.1


## v1.1.1...next

[compare changes](https://github.com/charlzyx/bunpkg/compare/v1.1.1...next)
[compare changes](https://github.com/charlzyx/bunpkg/compare/v2.0.0...v1.1.1)

### 🚀 Enhancements

- 🎸 replace http tgz by Bun.gunzipSync, faster! ([3dd9743](https://github.com/charlzyx/bunpkg/commit/3dd9743))
- 🎸 file browser ([2d44710](https://github.com/charlzyx/bunpkg/commit/2d44710))

### 🩹 Fixes

- 🐛 cors origin config fix ([663e3b3](https://github.com/charlzyx/bunpkg/commit/663e3b3))

### 💅 Refactors

- 💡 util -> common, use file stream ([7ec1671](https://github.com/charlzyx/bunpkg/commit/7ec1671))
- 💡 npm/esm/meta split, and rewrite cache and check ([ccaf775](https://github.com/charlzyx/bunpkg/commit/ccaf775))
- 💡 error handler, and docs update ([9a6b0bd](https://github.com/charlzyx/bunpkg/commit/9a6b0bd))

### ❤️ Contributors

- Charlzyx <[email protected]>


15 changes: 14 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
FROM node:18-alpine as docbuilder
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apk/repositories
# vocs build needs git
RUN apk add git

WORKDIR /web

COPY package.json tsconfig.json vocs.config.ts ./
COPY docs docs

RUN npm i --registry=https://registry.npmmirror.com && npm run docs:build

FROM oven/bun:slim
# FROM oven/bun
WORKDIR /app
Expand All @@ -6,9 +18,10 @@ WORKDIR /app

COPY package.json bun.lockb bunfig.toml tsconfig.json bunpkg.sh ./
COPY src src
COPY --from=docbuilder /web/docs/dist ./docs/dist

# build server
RUN bun install --production

# case by DOCKER ENV
RUN rm -rf .env

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { MetaBrowser } from '../components/MetaBrowser'
import { Codebox } from '../components/Codebox'

<HomePage.Root>
<HomePage.Tagline>bunpkg 是受到 [unpkg](https://unpkg.com) 启发而开发的一个 NPM CDN 加速服务器, <br />
<HomePage.Tagline>[bunpkg](https://bunpkg.pages.dev) 是受到 [unpkg](https://unpkg.com) 启发而开发的一个 NPM CDN 加速服务器, <br />
自部署更加友好, 并提供了额外本地文件缓存等功能</HomePage.Tagline>
<HomePage.Tagline>bunpkg is an alternative for unpkg. <br />but friendly for self-host deploy and file cache supported </HomePage.Tagline>
</HomePage.Root>
Expand Down
Binary file modified bun.lockb
Binary file not shown.
Binary file removed bunpkg.png
Binary file not shown.
2 changes: 1 addition & 1 deletion docs/components/MetaBrowser/FilesTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const FileTable = (props: {
<div className="nav-box">
<Flex justify="space-between">
<Nav link={prefix} onClickLink={setPrefix}></Nav>
<div>@{resp?.data?.info.version}</div>
<div>@{resp?.data?.info?.version}</div>
</Flex>
</div>
<Loading resp={resp} empty={props.pkgName ? "" : "Empty"}>
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,23 @@
"lru-cache": "^10.2.0",
"mime": "^3.0.0",
"nanotar": "^0.1.1",
"ofetch": "^1.3.3",
"semver": "^7.6.0",
"validate-npm-package-name": "^5.0.0"
},
"devDependencies": {
"@types/gunzip-maybe": "^1.4.2",
"@types/mime": "^3.0.4",
"@types/react": "^18.2.63",
"react-tooltip": "^5.26.3",
"@types/react-dom": "^18.2.20",
"@types/react": "^18.2.64",
"@types/react-dom": "^18.2.21",
"@types/semver": "^7.5.8",
"@types/tar-stream": "^3.1.3",
"@types/validate-npm-package-name": "^4.0.2",
"ahooks": "^3.7.10",
"bun-types": "latest",
"changelogen": "^0.5.5",
"ofetch": "^1.3.3",
"react-hot-toast": "^2.4.1",
"vocs": "^1.0.0-alpha.42"
"react-tooltip": "^5.26.3",
"semver": "^7.6.0",
"vocs": "^1.0.0-alpha.43"
}
}
Loading

0 comments on commit 54af71f

Please sign in to comment.