Skip to content

Commit 9b3cca0

Browse files
chore: normalize
1 parent 9c4e927 commit 9b3cca0

4 files changed

Lines changed: 22 additions & 5 deletions

File tree

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@
2020
"url": "https://prose.org/"
2121
},
2222
"scripts": {
23-
"build": "./tools/build.sh"
23+
"build": "./tools/build.sh",
24+
"dev": "./tools/dev.sh"
2425
},
2526
"devDependencies": {
2627
"chappe": "1.9.8"

tools/build.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
ABSPATH=$(cd "$(dirname "$0")"; pwd)
1212
BASE_DIR="$ABSPATH/../"
13+
1314
: ${COMMAND:=build}
1415

1516
pushd "$BASE_DIR" > /dev/null

tools/dev.sh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
#!/usr/bin/env bash
2+
3+
##
4+
# Prose - Docs
5+
# Build script
6+
#
7+
# Copyright 2025, Prose Foundation
8+
# Author: Valerian Saliou https://valeriansaliou.name/
9+
##
10+
11+
ABSPATH=$(cd "$(dirname "$0")"; pwd)
12+
BASE_DIR="$ABSPATH/../"
13+
14+
pushd "$BASE_DIR" > /dev/null
15+
COMMAND=serve ./tools/build.sh "$1"
16+
rc=$?
17+
popd > /dev/null
18+
19+
exit $rc

tools/serve.sh

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)