forked from jhipster/prettier-java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjustfile
More file actions
51 lines (39 loc) · 1.09 KB
/
justfile
File metadata and controls
51 lines (39 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Kempt - Prettier Java Plugin with Allman-style braces
# List all available commands
default:
@just --list --unsorted
# Build the project
build:
yarn build
# Run tests
test:
yarn test
# Run lint
lint:
yarn lint
# Run all checks (build, lint, test)
ci:
yarn ci
# Create a local package for testing
pack:
#!/usr/bin/env bash
set -euo pipefail
# Ensure local-packages directory exists
mkdir -p local-packages
# Create the package
npm pack --pack-destination=./local-packages ./packages/prettier-plugin-java
echo "✅ Package created successfully!"
echo "📦 Package location: ./local-packages/kempt-$(node -pe "require('./packages/prettier-plugin-java/package.json').version").tgz"
# Install the local package in other projects
install-local:
./install-local.sh
# Clean build artifacts
clean:
rm -rf packages/prettier-plugin-java/dist
rm -rf packages/java-parser/dist
rm -rf local-packages/*.tgz
rm -rf node_modules
rm -rf packages/*/node_modules
# Update test outputs
update-test-outputs:
yarn update-test-outputs