File tree Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Expand file tree Collapse file tree 3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -269,6 +269,7 @@ let runtime_set =
269
269
array ;
270
270
format ;
271
271
string ;
272
+ bytes;
272
273
float ;
273
274
hash ;
274
275
oo ;
Original file line number Diff line number Diff line change 4
4
# ocamlbuild -use-ocamlfind -no-hygiene -syntax camlp4o -pkgs js_of_ocaml,js_of_ocaml.syntax,js_of_ocaml.toplevel exports.byte
5
5
6
6
ocamlbuild -lflags -no-check-prims -use-ocamlfind -no-hygiene -pkgs compiler-libs.bytecomp -no-links jsoo_exports.byte
7
- js_of_ocaml -I +compiler-libs --toplevel +dynlink.js +toplevel.js +weak.js _build/jsoo_exports.byte -I ./runtime/ --file js.cmi:/cmis -o _build/exports.js
7
+ js_of_ocaml -I +compiler-libs --toplevel +dynlink.js +toplevel.js +weak.js _build/jsoo_exports.byte -I ./runtime/ --file js.cmi:/cmis js_unsafe.cmi:/cmis js_re.cmi:/cmis -o _build/exports.js
8
8
9
9
rm -rf $BUCKLESCRIPT_DOC /js-demo/exports.js && cp _build/exports.js $BUCKLESCRIPT_DOC /js-demo/
10
10
11
- # ocamlbuild -use-ocamlfind -no-hygiene -no-links js_generate_require.byte --
12
- # rm -rf $BUCKLESCRIPT_DOC/js-demo/pre_load.js
13
- # cp ./pre_load.js $BUCKLESCRIPT_DOC/js-demo/
14
- # # TODO: build with amd first
15
- # cp ../lib/amdjs/*.js $BUCKLESCRIPT_DOC/js-demo/stdlib
11
+ ocamlbuild -use-ocamlfind -no-hygiene -no-links js_generate_require.byte --
12
+ rm -rf $BUCKLESCRIPT_DOC /js-demo/pre_load.js
13
+ cp ./pre_load.js $BUCKLESCRIPT_DOC /js-demo/
14
+ # TODO: build with amd first
15
+ cp ../lib/amdjs/* .js $BUCKLESCRIPT_DOC /js-demo/stdlib
16
16
17
17
18
18
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ let () =
39
39
Ext_pervasives. with_file_as_chan " ./pre_load.js"
40
40
(fun chan ->
41
41
output_string chan
42
- (Printf. sprintf " require([%s], function(){}) "
42
+ (Printf. sprintf " function start(gist){ require([%s], function(){loadGist(gist)})} "
43
43
(String. concat " ,"
44
44
(List. map (Printf. sprintf " %S" )
45
45
(std_files @ runtime_files)
You can’t perform that action at this time.
0 commit comments