-
Notifications
You must be signed in to change notification settings - Fork 8
/
Justfile
38 lines (31 loc) · 1 KB
/
Justfile
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
# Lists all available commands.
list:
just --list
# Perform a full build of the tiptap bundle.
build:
just install-prerequisites
just install-tiptap
just update-tiptap
just bundle-tiptap
just minify-tiptap
# Install dependencies
install-prerequisites:
npm install -g browserify
npm install -g uglify-js
# Run `npm install`
install-tiptap:
cd tiptap && npm install
# Run `npm update`
update-tiptap:
cd tiptap && npm update
# Bundle tiptap into a single JS file -> leptos-tiptap-build/dist/tiptap-bundle.js
bundle-tiptap:
browserify tiptap/main.js -o leptos-tiptap-build/dist/tiptap-bundle.js
# Minify a previously created tiptap bundle -> leptos-tiptap-build/dist/tiptap-bundle.min.js
minify-tiptap:
uglifyjs --compress --mangle --output leptos-tiptap-build/dist/tiptap-bundle.min.js -- leptos-tiptap-build/dist/tiptap-bundle.js
# Find the minimum supported rust version
msrv:
cargo install cargo-msrv
cargo msrv find --path leptos-tiptap
cargo msrv find --path leptos-tiptap-build