Skip to content

Commit 8985237

Browse files
authored
chore: add bin scripts (#96)
1 parent 7516a00 commit 8985237

7 files changed

Lines changed: 38 additions & 0 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ docs/_build
1111
docs/doctrees
1212

1313
build
14+
!bin/build
1415
node_modules
1516
npm-debug.log
1617
ios

bin/build

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Build the project
5+
echo "Building project..."
6+
pnpm build

bin/fmt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Format/lint code
5+
echo "Formatting and linting code..."
6+
pnpm fix

bin/setup

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Install or upgrade dependencies
5+
echo "Installing dependencies..."
6+
pnpm install

bin/start

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Start the project (build and run the wizard)
5+
echo "Starting project..."
6+
pnpm build
7+
pnpm try

bin/test

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Run tests (includes linting and formatting)
5+
echo "Running tests..."
6+
pnpm test

bin/update

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
set -e
3+
4+
# Update dependencies after a pull
5+
echo "Updating dependencies..."
6+
./bin/setup

0 commit comments

Comments
 (0)