File tree 4 files changed +9
-8
lines changed
4 files changed +9
-8
lines changed Original file line number Diff line number Diff line change 19
19
with :
20
20
fetch-depth : 0
21
21
- run : cargo install bonnie wasm-pack
22
- - run : cargo install perseus-cli --version 0.3.0-beta.14
22
+ - run : cargo install perseus-cli --version 0.3.0-beta.15
23
23
- run : npm install
24
24
working-directory : website
25
25
- name : Build website
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ site.subcommands.serve.desc = "serves the site's exported content"
35
35
site.subcommands.tinker.cmd = [
36
36
" cd website" ,
37
37
" perseus tinker"
38
-
39
38
]
40
39
site.subcommands.tinker.desc = " runs tinkers on the website"
41
40
site.subcommands.build-tailwind.cmd = [
@@ -51,6 +50,7 @@ site.subcommands.build-tailwind.subcommands.prod.desc = "builds a tailwind style
51
50
site.subcommands.deploy.cmd = [
52
51
" bonnie site build-tailwind prod" ,
53
52
" cd website" ,
53
+ " PERSEUS_BASE_PATH=http://localhost:8080/perseus perseus tinker" ,
54
54
# Point this live version of the CLI at the given example
55
55
" PERSEUS_BASE_PATH=http://localhost:8080/perseus perseus deploy -e"
56
56
@@ -59,6 +59,7 @@ site.subcommands.deploy.desc = "builds the website for production and finalizes
59
59
site.subcommands.deploy-prod.cmd = [
60
60
" bonnie site build-tailwind prod" ,
61
61
" cd website" ,
62
+ " PERSEUS_BASE_PATH=http://localhost:8080/perseus perseus tinker" ,
62
63
# Point this live version of the CLI at the given example
63
64
" PERSEUS_BASE_PATH=https://arctic-hen7.github.io/perseus perseus deploy -e"
64
65
]
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ readme = "./README.md"
13
13
14
14
[dependencies ]
15
15
# We use the current version of Perseus, not the local one
16
- perseus = { version = " 0.3.0-beta.14 " , features = [ " translator-fluent" ] }
16
+ perseus = { version = " 0.3.0-beta.15 " , features = [ " translator-fluent" ] }
17
17
sycamore = " 0.6"
18
18
sycamore-router = " 0.6"
19
19
serde = " 1"
@@ -24,4 +24,4 @@ pulldown-cmark = "0.8"
24
24
lazy_static = " 1"
25
25
web-sys = { version = " 0.3" , features = [ " Event" , " EventTarget" ] }
26
26
wasm-bindgen = " 0.2"
27
- # perseus-size-opt = "0.1"
27
+ perseus-size-opt = " 0.1"
Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ mod components;
2
2
mod error_pages;
3
3
mod templates;
4
4
5
- use perseus:: define_app;
6
- // use perseus_size_opt::{perseus_size_opt, SizeOpts};
5
+ use perseus:: { define_app, Plugins } ;
6
+ use perseus_size_opt:: { perseus_size_opt, SizeOpts } ;
7
7
8
8
define_app ! {
9
9
templates: [
@@ -15,6 +15,6 @@ define_app! {
15
15
locales: {
16
16
default : "en-US" ,
17
17
other: [ ]
18
- }
19
- // plugins: Plugins::new().plugin(perseus_size_opt() , SizeOpts::default())
18
+ } ,
19
+ plugins: Plugins :: new( ) . plugin( perseus_size_opt, SizeOpts :: default ( ) )
20
20
}
You can’t perform that action at this time.
0 commit comments