forked from babashka/sci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
min.js.edn
66 lines (58 loc) · 2 KB
/
min.js.edn
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
;; borrowed from axel-f with lots of with gratitute
;; https://github.com/xapix-io/axel-f/blob/9bb72e13699b9559142392c4fa19041b1d072244/axel_f.min.js.edn
{:output-to "out/min/sci.min.js"
:output-dir "out/min"
:optimizations :advanced
:main "sci.impl.js"
:aot-cache true
:compiler-stats true
:pretty-print false
:elide-asserts true
:parallel-build true
:checked-arrays :warn
:static-fns true
:fn-invoke-direct true
:warnings {:fn-deprecated false}
:optimize-constants true
:output-wrapper "/**
* Small Clojure Compiler v0.0.9-alpha
*
* Copyright 2019 Michiel Borkent
*
* Licensed under Eclipse Public License;
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* https://github.com/borkdude/sci/blob/master/LICENSE
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an \"AS IS\" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
(function (definition) {
// This file will function properly as a <script> tag, or a module
// using CommonJS and NodeJS or RequireJS module formats. In
// Common/Node/RequireJS, the module exports the sci API and when
// executed as a simple <script>, it creates a sci global
// instead.
// Wrapper gratefully adapted from:
// https://github.com/kriskowal/q/blob/v1/q.js
// https://github.com/swannodette/mori/blob/master/support/wrapper.js
// https://github.com/tonsky/datascript/tree/master/release-js
// CommonJS
if (typeof exports === \"object\") {
module.exports = definition();
// RequireJS
} else if (typeof define === \"function\" && define.amd) {
define(definition);
// <script>
} else {
sci = definition();
}
})(function () {
return function () {
%s
return this.sci.impl.js;
}.call({});
});"}