@live-codes/browser-compilers 0.4.4 → 0.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-codes/browser-compilers",
3
- "version": "0.4.4",
3
+ "version": "0.4.9",
4
4
  "description": "Compilers that run in the browser, for use in livecodes.io",
5
5
  "author": "Hatem Hosny",
6
6
  "license": "MIT",
@@ -21,7 +21,7 @@ function mkdirp(dir) {
21
21
  }
22
22
  }
23
23
 
24
- var vendor_modules = path.resolve(__dirname + '/../vendor_modules/src');
24
+ var vendor_modules_src = path.resolve(__dirname + '/../vendor_modules/src');
25
25
  var targetDir = path.resolve(__dirname + '/../dist');
26
26
 
27
27
  /** @type {Partial<esbuild.BuildOptions>} */
@@ -75,21 +75,21 @@ esbuild.buildSync({
75
75
  // asciidoctor.css
76
76
  mkdirp(targetDir + '/asciidoctor.css');
77
77
  fs.copyFileSync(
78
- path.resolve(vendor_modules + '/asciidoctor.css/asciidoctor.css'),
78
+ path.resolve(vendor_modules_src + '/asciidoctor.css/asciidoctor.css'),
79
79
  path.resolve(targetDir + '/asciidoctor.css/asciidoctor.css'),
80
80
  );
81
81
 
82
82
  // stylus
83
83
  mkdirp(targetDir + '/stylus');
84
84
  fs.copyFileSync(
85
- path.resolve(vendor_modules + '/stylus/stylus.min.js'),
85
+ path.resolve(vendor_modules_src + '/stylus/stylus.min.js'),
86
86
  path.resolve(targetDir + '/stylus/stylus.min.js'),
87
87
  );
88
88
 
89
89
  // pug
90
90
  mkdirp(targetDir + '/pug');
91
91
  fs.copyFileSync(
92
- path.resolve(vendor_modules + '/pug/pug.min.js'),
92
+ path.resolve(vendor_modules_src + '/pug/pug.min.js'),
93
93
  path.resolve(targetDir + '/pug/pug.min.js'),
94
94
  );
95
95
 
@@ -147,7 +147,7 @@ esbuild.buildSync({
147
147
  // clientside-haml-js
148
148
  mkdirp(targetDir + '/clientside-haml-js');
149
149
  fs.copyFileSync(
150
- path.resolve(vendor_modules + '/clientside-haml-js/haml.js'),
150
+ path.resolve(vendor_modules_src + '/clientside-haml-js/haml.js'),
151
151
  path.resolve(targetDir + '/clientside-haml-js/haml.js'),
152
152
  );
153
153
 
@@ -163,12 +163,12 @@ esbuild.build({
163
163
  // livescript
164
164
  mkdirp(targetDir + '/livescript');
165
165
  fs.copyFileSync(
166
- path.resolve(vendor_modules + '/livescript/livescript-min.js'),
166
+ path.resolve(vendor_modules_src + '/livescript/livescript-min.js'),
167
167
  path.resolve(targetDir + '/livescript/livescript-min.js'),
168
168
  );
169
169
  // prelude.ls (livescript base library)
170
170
  fs.copyFileSync(
171
- path.resolve(vendor_modules + '/livescript/prelude-browser-min.js'),
171
+ path.resolve(vendor_modules_src + '/livescript/prelude-browser-min.js'),
172
172
  path.resolve(targetDir + '/livescript/prelude-browser-min.js'),
173
173
  );
174
174
 
@@ -205,25 +205,36 @@ esbuild.build({
205
205
  globalName: 'windicss',
206
206
  });
207
207
 
208
- // malinajs
209
- mkdirp(targetDir + '/malinajs');
208
+ // JSCPP
209
+ mkdirp(targetDir + '/jscpp');
210
210
  fs.copyFileSync(
211
- path.resolve(vendor_modules + '/malinajs/acorn.js'),
212
- path.resolve(targetDir + '/malinajs/acorn.js'),
211
+ path.resolve(vendor_modules_src + '/jscpp/JSCPP.es5.min.js'),
212
+ path.resolve(targetDir + '/jscpp/JSCPP.es5.min.js'),
213
+ );
214
+
215
+ // wacl
216
+ mkdirp(targetDir + '/wacl');
217
+ mkdirp(targetDir + '/wacl/tcl');
218
+ fs.copyFileSync(
219
+ path.resolve(vendor_modules_src + '/wacl/tcl/wacl.js'),
220
+ path.resolve(targetDir + '/wacl/tcl/wacl.js'),
213
221
  );
214
222
  fs.copyFileSync(
215
- path.resolve(vendor_modules + '/malinajs/astring.js'),
216
- path.resolve(targetDir + '/malinajs/astring.js'),
223
+ path.resolve(vendor_modules_src + '/wacl/tcl/wacl.wasm'),
224
+ path.resolve(targetDir + '/wacl/tcl/wacl.wasm'),
217
225
  );
218
226
  fs.copyFileSync(
219
- path.resolve(vendor_modules + '/malinajs/cjs2es.js'),
220
- path.resolve(targetDir + '/malinajs/cjs2es.js'),
227
+ path.resolve(vendor_modules_src + '/wacl/tcl/wacl-custom.data'),
228
+ path.resolve(targetDir + '/wacl/tcl/wacl-custom.data'),
221
229
  );
222
230
  fs.copyFileSync(
223
- path.resolve(vendor_modules + '/malinajs/csstree.js'),
224
- path.resolve(targetDir + '/malinajs/csstree.js'),
231
+ path.resolve(vendor_modules_src + '/wacl/tcl/wacl-library.data'),
232
+ path.resolve(targetDir + '/wacl/tcl/wacl-library.data'),
225
233
  );
234
+
235
+ // turbopascal
236
+ mkdirp(targetDir + '/turbopascal');
226
237
  fs.copyFileSync(
227
- path.resolve(vendor_modules + '/malinajs/malina.js'),
228
- path.resolve(targetDir + '/malinajs/malina.js'),
238
+ path.resolve(vendor_modules_src + '/turbopascal/turbopascal.js'),
239
+ path.resolve(targetDir + '/turbopascal/turbopascal.js'),
229
240
  );
@@ -10,12 +10,12 @@ clientside-haml-js: [MIT License](https://github.com/uglyog/clientside-haml-js/b
10
10
 
11
11
  CoffeeScript: [MIT License](https://github.com/jashkenas/coffeescript/tree/07f644c39223e016aceedd2cd71b5941579b5659)
12
12
 
13
+ JSCPP: [MIT License](https://github.com/felixhao28/JSCPP/blob/befbd6b48666007151c259c5dd291ab028ad4c04/LICENSE)
14
+
13
15
  Less: [Apache License 2.0](https://github.com/less/less.js/blob/870f9b2d8136bfbcdc9e1293bb0def51b54f9276/LICENSE)
14
16
 
15
17
  LiveScript: [MIT License](https://github.com/gkz/LiveScript/blob/bd9faa4d484b6abb110473f96c28bf8686e7b7a0/LICENSE)
16
18
 
17
- Malina.js: [MIT License](https://github.com/malinajs/malinajs/blob/a30da278cd1b3291749a1ddf6423fd7dc7c85bc4/LICENSE)
18
-
19
19
  MDX: [MIT License](https://github.com/mdx-js/mdx/blob/02509286b5a39d6df233225545cf87e070130588/license)
20
20
 
21
21
  Monaco-editor: [MIT License](https://github.com/microsoft/monaco-editor/blob/f849d3f2653d1097652a7d9e1d01d242cc225da8/LICENSE.md)
@@ -46,6 +46,10 @@ Stylus: [MIT License](https://github.com/stylus/stylus/blob/59bc665db295981d4e3f
46
46
 
47
47
  Svelte: [MIT License](https://github.com/sveltejs/svelte/blob/dafbdc286eef3de2243088a9a826e6899e20465c/LICENSE)
48
48
 
49
- wasm-refmt:[MIT License](https://github.com/xtuc/webassemblyjs/blob/45f733aa96476d74c8ac57598e13406a48a6fdc8/LICENSE)
49
+ turbopascal: [BSD 2-Clause License](https://github.com/MikeRalphson/turbopascal/blob/cfcc5ee6d93f32664bb6127aa751c68841ca5c1d/LICENSE)
50
+
51
+ wacl: [BSD 3-Clause License](https://github.com/ecky-l/wacl/blob/9daacabb0102a9986f33263261350edfeebdd83b/LICENSE)
52
+
53
+ wasm-refmt: [MIT License](https://github.com/xtuc/webassemblyjs/blob/45f733aa96476d74c8ac57598e13406a48a6fdc8/LICENSE)
50
54
 
51
55
  Windi CSS: [MIT License](https://github.com/windicss/windicss/blob/bcd50d877e62630f191602ddeabd9f677cc6d90c/LICENSE)