@live-codes/browser-compilers 0.5.9 → 0.5.11

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-codes/browser-compilers",
3
- "version": "0.5.9",
3
+ "version": "0.5.11",
4
4
  "description": "Compilers that run in the browser, for use in livecodes.io",
5
5
  "author": "Hatem Hosny",
6
6
  "license": "MIT",
@@ -21,6 +21,7 @@
21
21
  "prepare-release": "run-s reset build test cov release",
22
22
  "reset": "git clean -dfx && git reset --hard && npm i",
23
23
  "clean": "recursive-delete dist",
24
+ "postinstall": "patch-package",
24
25
  "prepush": "run-s fix build"
25
26
  },
26
27
  "dependencies": {
@@ -31,6 +32,20 @@
31
32
  "@testing-library/dom": "8.12.0",
32
33
  "@testing-library/jest-dom": "5.16.3",
33
34
  "@testing-library/react": "12.1.4",
35
+ "@tokencss/postcss": "0.0.5",
36
+ "@unocss/core": "0.45.21",
37
+ "@unocss/preset-attributify": "0.45.21",
38
+ "@unocss/preset-icons": "0.45.21",
39
+ "@unocss/preset-mini": "0.45.21",
40
+ "@unocss/preset-tagify": "0.45.21",
41
+ "@unocss/preset-typography": "0.45.21",
42
+ "@unocss/preset-uno": "0.45.21",
43
+ "@unocss/preset-web-fonts": "0.45.21",
44
+ "@unocss/preset-wind": "0.45.21",
45
+ "@unocss/transformer-attributify-jsx": "0.45.21",
46
+ "@unocss/transformer-compile-class": "0.45.21",
47
+ "@unocss/transformer-directives": "0.45.21",
48
+ "@unocss/transformer-variant-group": "0.45.21",
34
49
  "@webassemblyjs/wast-refmt": "1.11.1",
35
50
  "babel-preset-solid": "1.3.5",
36
51
  "dts-bundle": "0.7.3",
@@ -40,6 +55,7 @@
40
55
  "eslint": "8.11.0",
41
56
  "less": "4.1.2",
42
57
  "lightningcss-wasm": "1.14.0",
58
+ "patch-package": "6.4.7",
43
59
  "postcss": "8.4.6",
44
60
  "postcss-preset-env": "7.3.1",
45
61
  "react": "17.0.2",
@@ -0,0 +1,13 @@
1
+ diff --git a/node_modules/@tokencss/postcss/dist/config.js b/node_modules/@tokencss/postcss/dist/config.js
2
+ index d8b826f..c1bd7cb 100644
3
+ --- a/node_modules/@tokencss/postcss/dist/config.js
4
+ +++ b/node_modules/@tokencss/postcss/dist/config.js
5
+ @@ -1,4 +1,7 @@
6
+ -import load from "@proload/core";
7
+ +// import load from "@proload/core";
8
+ +const load = async (_, __) => ({});
9
+ +load.use = (_) => {};
10
+ +
11
+ load.use([{
12
+ name: "@proload/plugin-json",
13
+ extensions: ["json", "jsonc"]
@@ -309,3 +309,21 @@ esbuild.build({
309
309
  globalName: 'lightningcss',
310
310
  define: { 'import.meta.url': 'location' },
311
311
  });
312
+
313
+ // unocss
314
+ esbuild.build({
315
+ ...baseOptions,
316
+ entryPoints: ['vendor_modules/imports/unocss.js'],
317
+ outfile: 'dist/unocss/unocss.js',
318
+ globalName: 'unocss',
319
+ plugins: nodePolyfills,
320
+ });
321
+
322
+ // tokencss
323
+ esbuild.build({
324
+ ...baseOptions,
325
+ entryPoints: ['vendor_modules/imports/tokencss.js'],
326
+ outfile: 'dist/tokencss/tokencss.js',
327
+ globalName: 'tokencss',
328
+ plugins: nodePolyfills,
329
+ });
@@ -62,6 +62,8 @@ svgbob-wasm: [Apache License 2.0](https://github.com/agoose77/svgbob-wasm/blob/4
62
62
 
63
63
  turbopascal: [BSD 2-Clause License](https://github.com/MikeRalphson/turbopascal/blob/cfcc5ee6d93f32664bb6127aa751c68841ca5c1d/LICENSE)
64
64
 
65
+ UnoCSS: [MIT License](https://github.com/unocss/unocss/blob/f375524d9bca3f2f8b445b322ec0fc3eb124ec3c/LICENSE)
66
+
65
67
  wacl: [BSD 3-Clause License](https://github.com/ecky-l/wacl/blob/9daacabb0102a9986f33263261350edfeebdd83b/LICENSE)
66
68
 
67
69
  wasm-refmt: [MIT License](https://github.com/xtuc/webassemblyjs/blob/45f733aa96476d74c8ac57598e13406a48a6fdc8/LICENSE)
@@ -0,0 +1,4 @@
1
+ // @ts-ignore
2
+ import tokencss from '@tokencss/postcss';
3
+
4
+ export { tokencss };
@@ -0,0 +1,22 @@
1
+ // from https://cdn.jsdelivr.net/npm/unocss@0.45.21/dist/index.mjs
2
+
3
+ export * from '@unocss/core';
4
+ export { default as presetUno } from '@unocss/preset-uno';
5
+ export { default as presetAttributify } from '@unocss/preset-attributify';
6
+ export { default as presetTagify } from '@unocss/preset-tagify';
7
+ // @ts-ignore
8
+ export { default as presetIcons } from '@unocss/preset-icons/browser';
9
+ export { default as presetWebFonts } from '@unocss/preset-web-fonts';
10
+ export { default as presetTypography } from '@unocss/preset-typography';
11
+ export { default as presetMini } from '@unocss/preset-mini';
12
+ export { default as presetWind } from '@unocss/preset-wind';
13
+ export { default as transformerDirectives } from '@unocss/transformer-directives';
14
+ export { default as transformerVariantGroup } from '@unocss/transformer-variant-group';
15
+ export { default as transformerCompileClass } from '@unocss/transformer-compile-class';
16
+ export { default as transformerAttributifyJsx } from '@unocss/transformer-attributify-jsx';
17
+
18
+ function defineConfig(config) {
19
+ return config;
20
+ }
21
+
22
+ export { defineConfig };