Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions .changeset/mean-fans-do.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
"@hyperbook/fs": minor
"hyperbook": minor
"@hyperbook/provider": minor
"@hyperbook/shell": minor
"@hyperbook/toc": minor
"@hyperbook/types": minor
"@platforms/web": minor
---

Extract core funcationality from platfrom web into separate packages. This helps us to support more platforms.
5 changes: 5 additions & 0 deletions .changeset/short-deers-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"hyperbook-studio": minor
---

Show a full preview of a Hyperbook and a Hyperlibrary. This uses the new packages under the hood.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,21 @@ development server and edit the files in the website folder.

```
pnpm install
pnpm hyperbook:build
pnpm build
pnpm website:dev en
pnpm website:dev de
```

## Platform

If you want to work on a platform, run the following commands:

```
pnpm install
pnpm build
pnpm platform:web:dev
```

## Maintainer

Mike Barkmin • [Twitter](https://twitter.com/mikebarkmin) • [GitHub](https://github.com/mikebarkmin/)
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,14 @@
"private": true,
"scripts": {
"preinstall": "npx only-allow pnpm",
"prepare": "husky install",
"prepare": "husky install && node scripts/setup.mjs",
"dev": "node scripts/watcher.mjs",
"build": "pnpm -r build",
"lint": "pnpm -r lint",
"hyperbook:build": "pnpm --filter hyperbook build",
"version-packages": "changeset version",
"release": "changeset publish",
"platform:web:dev": "pnpm --filter @platforms/web dev",
"examples:setup": "cd examples && HYPERBOOK_LOCAL_DEV=1 node ../packages/hyperbook/dist/index.js setup",
"examples:build": "cd examples && HYPERBOOK_LOCAL_DEV=1 node ../packages/hyperbook/dist/index.js build",
"website:setup": "cd website && HYPERBOOK_LOCAL_DEV=1 node ../packages/hyperbook/dist/index.js setup",
Expand Down
9 changes: 9 additions & 0 deletions packages/fs/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# @hyperbook/fs

## Installation

```sh
yarn add @hyperbook/fs
# or
npm i @hyperbook/fs
```
48 changes: 48 additions & 0 deletions packages/fs/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
{
"name": "@hyperbook/fs",
"version": "0.0.0",
"author": "Mike Barkmin",
"homepage": "https://github.com/openpatch/hyperbook#readme",
"license": "MIT",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"types": "dist/index.d.ts",
"typings": "dist/index.d.ts",
"sideEffects": false,
"exports": {
".": {
"require": "./dist/index.cjs.js",
"default": "./dist/index.esm.mjs"
}
},
"files": [
"dist"
],
"publishConfig": {
"access": "public"
},
"repository": {
"type": "git",
"url": "git+https://github.com/openpatch/hyperbook.git",
"directory": "packages/fs"
},
"bugs": {
"url": "https://github.com/openpatch/hyperbook/issues"
},
"scripts": {
"prebuild": "rimraf dist",
"version": "pnpm build",
"lint": "tsc --noEmit",
"build": "pnpm build:pkg && pnpm build:types",
"build:pkg": "node ../../scripts/build.mjs",
"build:types": "tsc --project tsconfig.build.json --declaration --emitDeclarationOnly"
},
"dependencies": {
"chalk": "5.1.2",
"find-up": "^6.3.0",
"gray-matter": "4.0.3"
},
"devDependencies": {
"@hyperbook/types": "workspace:*"
}
}
Loading