Clean up justfile
This commit is contained in:
parent
0521400607
commit
419904fb3c
|
@ -0,0 +1,9 @@
|
|||
repos:
|
||||
- repo: local
|
||||
hooks:
|
||||
- id: just-format
|
||||
name: just format
|
||||
entry: just format
|
||||
language: system
|
||||
types: [file]
|
||||
files: "\\.(ts|tsx|js|jsx|json|css|scss|html|md)$"
|
19
justfile
19
justfile
|
@ -1,40 +1,21 @@
|
|||
# justfile for Elysia project
|
||||
|
||||
# Install dependencies
|
||||
install:
|
||||
bun install
|
||||
|
||||
# Run the development server
|
||||
dev:
|
||||
bun run --watch src/index.ts
|
||||
|
||||
# Build the project
|
||||
build:
|
||||
bun build --compile --minify --target bun --outfile server ./src/index.ts
|
||||
|
||||
# Run tests
|
||||
test:
|
||||
bun test
|
||||
|
||||
check:
|
||||
bunx tsc --noEmit --skipLibCheck
|
||||
|
||||
# Lint the project
|
||||
lint:
|
||||
# Add your lint command here, for example:
|
||||
# bun run lint
|
||||
echo "Linting not configured yet"
|
||||
|
||||
# Clean the project
|
||||
clean:
|
||||
rm -rf node_modules
|
||||
rm -rf dist
|
||||
|
||||
# Format the code
|
||||
format:
|
||||
bun run prettier . --write
|
||||
|
||||
# Bump version
|
||||
bump-version:
|
||||
# Add your version bump command here
|
||||
echo "Version bump not configured yet"
|
||||
|
|
Loading…
Reference in New Issue