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:
|
install:
|
||||||
bun install
|
bun install
|
||||||
|
|
||||||
# Run the development server
|
|
||||||
dev:
|
dev:
|
||||||
bun run --watch src/index.ts
|
bun run --watch src/index.ts
|
||||||
|
|
||||||
# Build the project
|
|
||||||
build:
|
build:
|
||||||
bun build --compile --minify --target bun --outfile server ./src/index.ts
|
bun build --compile --minify --target bun --outfile server ./src/index.ts
|
||||||
|
|
||||||
# Run tests
|
|
||||||
test:
|
test:
|
||||||
bun test
|
bun test
|
||||||
|
|
||||||
check:
|
check:
|
||||||
bunx tsc --noEmit --skipLibCheck
|
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:
|
clean:
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
|
|
||||||
# Format the code
|
|
||||||
format:
|
format:
|
||||||
bun run prettier . --write
|
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