Skip to content

Commit c149ca6

Browse files
committed
[chrome] update package.json and contributing.md, fix bug in dev server
1 parent b8987cd commit c149ca6

File tree

3 files changed

+13
-46
lines changed

3 files changed

+13
-46
lines changed

CONTRIBUTING.md

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,17 @@
11
# Development Setup
22

3-
Node.js 22+ and depot_tools are required for development
3+
Node.js 22+ and PNPM required for development
44

55
```bash
6-
update_depot_tools
7-
ensure_bootstrap
8-
git clone https://github.com/HeyPuter/browser.js --recursive
9-
cd browser.js
6+
git submodule update --init
107
pnpm i
11-
rustup update
12-
rustup install nightly
13-
rustup default nightly
14-
cargo install --git https://github.com/r58playz/wasm-snip
15-
cargo install wasm-bindgen-cli --version 0.2.100
16-
pnpm rewriter:build
17-
pnpm build
18-
cd dreamlandjs
19-
pnpm build
20-
cd ..
21-
cd chii
22-
pnpm init:front_end
23-
pnpm build
24-
cd ..
25-
cd playwright
26-
npm i
27-
npm run build
28-
cd web_builder
29-
npx rollup -c
30-
cd ../..
31-
cd chobitsu
32-
pnpm build
33-
cd ..
34-
cd page_inject
35-
npx rollup -c
36-
cd ..
37-
cd frontend
38-
pnpm vite build
8+
pnpm build:dreamland
9+
pnpm build (x2)
10+
pnpm dev
3911
```
4012

4113
# Incremental Build
4214

4315
```bash
44-
(cd playwright && npm run watch) &
45-
(cd playwright/web_builder && npx rollup -cw) &
46-
(pnpm dev) &
47-
(cd dreamlandjs && pnpm watch) &
48-
(cd chobitsu && pnpm webpack --watch --mode=development) &
49-
(cd page_inject && npx rollup -cw) &
50-
(cd frontend && pnpm dev) &
16+
pnpm dev
5117
```

devserver.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ const PAD_TOP = 1;
132132
const PAD_BOTTOM = 1;
133133

134134
function blackSpaces(count: number) {
135+
count = Math.abs(count);
135136
return black()(" ".repeat(count));
136137
}
137138

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,19 +2,19 @@
22
"name": "browser.js",
33
"version": "1.0.0",
44
"description": "",
5+
"type": "module",
6+
"keywords": [],
7+
"author": "",
8+
"license": "AGPL-3.0-only",
9+
"packageManager": "[email protected]",
510
"scripts": {
11+
"build": "rspack build",
612
"build:dreamland": "cd external/dreamlandjs && pnpm build",
713
"build:chrome": "cd packages/chrome && pnpm build",
814
"dev": "node --no-warnings=ExperimentalWarning devserver.ts",
9-
"build": "rspack build",
1015
"watch": "rspack build --watch",
1116
"format": "prettier --write ."
1217
},
13-
"type": "module",
14-
"keywords": [],
15-
"author": "",
16-
"license": "AGPL-3.0-only",
17-
"packageManager": "[email protected]",
1818
"devDependencies": {
1919
"@mercuryworkshop/wisp-js": "^0.4.0",
2020
"@rsdoctor/rspack-plugin": "^1.3.6",

0 commit comments

Comments
 (0)