Commit 89856eb 1 parent 4500925 commit 89856eb Copy full SHA for 89856eb
File tree 2 files changed +16
-2
lines changed
2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change 1
1
name = " Norganic"
2
2
uuid = " dfab6fa2-2962-42ba-9a10-aa3aeb79a0e4"
3
3
authors = [
" Hugo Levy-Falk <[email protected] > and contributors" ]
4
- version = " 0.1.15 "
4
+ version = " 0.1.17 "
5
5
6
6
[deps ]
7
7
Comonicon = " 863f3e99-da2a-4334-8734-de3dacbe5542"
8
8
JSON = " 682c06a0-de6a-54ab-a142-c8b1cf79cde6"
9
9
Norg = " 64228516-68de-4e23-8112-6940bc1970d1"
10
+ SnoopPrecompile = " 66db9d55-30c0-4569-8b51-7e840670fc0c"
10
11
11
12
[compat ]
12
13
Comonicon = " 1"
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ Convert Norg to HTML.
10
10
function _html (input:: IO , output:: IO )
11
11
s = read (input, String)
12
12
res = norg (HTMLTarget (), s)
13
- write (output, s )
13
+ write (output, string (res) )
14
14
end
15
15
16
16
function _html (input:: IO , output:: String )
@@ -71,4 +71,17 @@ Your solvent-free Norg compiler.
71
71
"""
72
72
@main
73
73
74
+ using SnoopPrecompile
75
+
76
+ @precompile_setup begin
77
+ output_file = tempname ()
78
+ input_file = Norg. NORG_SPEC_PATH
79
+ @precompile_all_calls begin
80
+ # all calls in this block will be precompiled, regardless of whether
81
+ # they belong to your package or not (on Julia 1.8 and higher)
82
+ html (input= input_file, output= output_file)
83
+ json (input= input_file, output= output_file)
84
+ end
85
+ end
86
+
74
87
end
You can’t perform that action at this time.
0 commit comments