@live-codes/browser-compilers 0.1.1 → 0.2.0
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/README.md +1 -1
- package/dist/monaco-editor/editor.worker.js +36 -36
- package/package.json +3 -11
- package/scripts/vendors.js +0 -102
- package/vendor-licenses.md +1 -25
- package/dist/asciidoctor/asciidoctor.min.js +0 -1463
- package/dist/babel/babel.min.js +0 -13
- package/dist/es-module-shims/es-module-shims.min.js +0 -2
- package/dist/es-module-shims/es-module-shims.min.js.map +0 -1
- package/dist/github-markdown-css/github-markdown.css +0 -985
- package/dist/marked/marked.min.js +0 -6
- package/dist/normalize.css/normalize.css +0 -349
- package/dist/prettier/standalone.js +0 -55
- package/dist/reset-css/reset.css +0 -52
- package/dist/sass.js/sass.sync.js +0 -826
- package/dist/tailwindcss/tailwindcss.js +0 -203
- package/dist/typescript/typescript.min.js +0 -256
package/scripts/vendors.js
CHANGED
|
@@ -21,12 +21,6 @@ function mkdirp(dir) {
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
-
function deleteContent(file, content) {
|
|
25
|
-
var data = fs.readFileSync(file, 'utf-8');
|
|
26
|
-
var newValue = data.replace(content, '');
|
|
27
|
-
fs.writeFileSync(file, newValue, 'utf-8');
|
|
28
|
-
}
|
|
29
|
-
|
|
30
24
|
var node_modules = path.resolve(__dirname + '/../node_modules');
|
|
31
25
|
var vendor_modules = path.resolve(__dirname + '/../vendor_modules/src');
|
|
32
26
|
var targetDir = path.resolve(__dirname + '/../dist');
|
|
@@ -71,43 +65,6 @@ entryFiles.forEach(async (file) => {
|
|
|
71
65
|
await parcelBundler.bundle();
|
|
72
66
|
});
|
|
73
67
|
|
|
74
|
-
// Patch and build Typescript
|
|
75
|
-
var tsOutDir = path.resolve(__dirname + '/../vendor_modules/src/typescript');
|
|
76
|
-
if (!fs.existsSync(tsOutDir)) {
|
|
77
|
-
fs.mkdirSync(tsOutDir);
|
|
78
|
-
}
|
|
79
|
-
fs.copyFileSync(
|
|
80
|
-
path.resolve(
|
|
81
|
-
__dirname +
|
|
82
|
-
'/../node_modules/monaco-editor/esm/vs/language/typescript/lib/typescriptServices.js',
|
|
83
|
-
),
|
|
84
|
-
path.resolve(tsOutDir + '/typescriptServices.js'),
|
|
85
|
-
);
|
|
86
|
-
fs.appendFileSync(
|
|
87
|
-
path.resolve(tsOutDir + '/typescriptServices.js'),
|
|
88
|
-
'export var transpile = ts.transpile;\n',
|
|
89
|
-
);
|
|
90
|
-
esbuild.buildSync({
|
|
91
|
-
...baseOptions,
|
|
92
|
-
entryPoints: ['vendor_modules/imports/typescript.js'],
|
|
93
|
-
outfile: 'dist/typescript/typescript.min.js',
|
|
94
|
-
globalName: 'typescript',
|
|
95
|
-
});
|
|
96
|
-
|
|
97
|
-
// Marked
|
|
98
|
-
mkdirp(targetDir + '/marked');
|
|
99
|
-
fs.copyFileSync(
|
|
100
|
-
path.resolve(node_modules + '/marked/marked.min.js'),
|
|
101
|
-
path.resolve(targetDir + '/marked/marked.min.js'),
|
|
102
|
-
);
|
|
103
|
-
|
|
104
|
-
// Sass
|
|
105
|
-
mkdirp(targetDir + '/sass.js');
|
|
106
|
-
fs.copyFileSync(
|
|
107
|
-
path.resolve(node_modules + '/sass.js/dist/sass.sync.js'),
|
|
108
|
-
path.resolve(targetDir + '/sass.js/sass.sync.js'),
|
|
109
|
-
);
|
|
110
|
-
|
|
111
68
|
// Less
|
|
112
69
|
esbuild.buildSync({
|
|
113
70
|
...baseOptions,
|
|
@@ -116,13 +73,6 @@ esbuild.buildSync({
|
|
|
116
73
|
globalName: 'less',
|
|
117
74
|
});
|
|
118
75
|
|
|
119
|
-
// github-markdown-css
|
|
120
|
-
mkdirp(targetDir + '/github-markdown-css');
|
|
121
|
-
fs.copyFileSync(
|
|
122
|
-
path.resolve(node_modules + '/github-markdown-css/github-markdown.css'),
|
|
123
|
-
path.resolve(targetDir + '/github-markdown-css/github-markdown.css'),
|
|
124
|
-
);
|
|
125
|
-
|
|
126
76
|
// asciidoctor.css
|
|
127
77
|
mkdirp(targetDir + '/asciidoctor.css');
|
|
128
78
|
fs.copyFileSync(
|
|
@@ -130,20 +80,6 @@ fs.copyFileSync(
|
|
|
130
80
|
path.resolve(targetDir + '/asciidoctor.css/asciidoctor.css'),
|
|
131
81
|
);
|
|
132
82
|
|
|
133
|
-
// normalize.css
|
|
134
|
-
mkdirp(targetDir + '/normalize.css');
|
|
135
|
-
fs.copyFileSync(
|
|
136
|
-
path.resolve(node_modules + '/normalize.css/normalize.css'),
|
|
137
|
-
path.resolve(targetDir + '/normalize.css/normalize.css'),
|
|
138
|
-
);
|
|
139
|
-
|
|
140
|
-
// reset-css
|
|
141
|
-
mkdirp(targetDir + '/reset-css');
|
|
142
|
-
fs.copyFileSync(
|
|
143
|
-
path.resolve(node_modules + '/reset-css/reset.css'),
|
|
144
|
-
path.resolve(targetDir + '/reset-css/reset.css'),
|
|
145
|
-
);
|
|
146
|
-
|
|
147
83
|
// stylus
|
|
148
84
|
mkdirp(targetDir + '/stylus');
|
|
149
85
|
fs.copyFileSync(
|
|
@@ -158,13 +94,6 @@ fs.copyFileSync(
|
|
|
158
94
|
path.resolve(targetDir + '/pug/pug.min.js'),
|
|
159
95
|
);
|
|
160
96
|
|
|
161
|
-
// asciidoctor
|
|
162
|
-
mkdirp(targetDir + '/asciidoctor');
|
|
163
|
-
fs.copyFileSync(
|
|
164
|
-
path.resolve(node_modules + '/@asciidoctor/core/dist/browser/asciidoctor.min.js'),
|
|
165
|
-
path.resolve(targetDir + '/asciidoctor/asciidoctor.min.js'),
|
|
166
|
-
);
|
|
167
|
-
|
|
168
97
|
// coffeescript
|
|
169
98
|
mkdirp(targetDir + '/coffeescript');
|
|
170
99
|
fs.copyFileSync(
|
|
@@ -199,19 +128,6 @@ esbuild.build({
|
|
|
199
128
|
plugins: nodePolyfills,
|
|
200
129
|
});
|
|
201
130
|
|
|
202
|
-
// tailwindcss
|
|
203
|
-
mkdirp(targetDir + '/tailwindcss');
|
|
204
|
-
fs.copyFileSync(
|
|
205
|
-
path.resolve(node_modules + '/tailwindcss-browser-plugin/dist/tailwindcss.umd.min.js'),
|
|
206
|
-
path.resolve(targetDir + '/tailwindcss/tailwindcss.js'),
|
|
207
|
-
);
|
|
208
|
-
|
|
209
|
-
// prettier
|
|
210
|
-
mkdirp(targetDir + '/prettier');
|
|
211
|
-
fs.copyFileSync(
|
|
212
|
-
path.resolve(node_modules + '/prettier/standalone.js'),
|
|
213
|
-
path.resolve(targetDir + '/prettier/standalone.js'),
|
|
214
|
-
);
|
|
215
131
|
esbuild.buildSync({
|
|
216
132
|
...baseOptions,
|
|
217
133
|
entryPoints: ['node_modules/@prettier/plugin-pug/dist/index.js'],
|
|
@@ -219,13 +135,6 @@ esbuild.buildSync({
|
|
|
219
135
|
globalName: 'pluginPug',
|
|
220
136
|
});
|
|
221
137
|
|
|
222
|
-
// babel
|
|
223
|
-
mkdirp(targetDir + '/babel');
|
|
224
|
-
fs.copyFileSync(
|
|
225
|
-
path.resolve(node_modules + '/@babel/standalone/babel.min.js'),
|
|
226
|
-
path.resolve(targetDir + '/babel/babel.min.js'),
|
|
227
|
-
);
|
|
228
|
-
|
|
229
138
|
// solid
|
|
230
139
|
esbuild.build({
|
|
231
140
|
...baseOptions,
|
|
@@ -280,17 +189,6 @@ esbuild.buildSync({
|
|
|
280
189
|
logLevel: 'error',
|
|
281
190
|
});
|
|
282
191
|
|
|
283
|
-
// es-module-shims
|
|
284
|
-
mkdirp(targetDir + '/es-module-shims');
|
|
285
|
-
fs.copyFileSync(
|
|
286
|
-
path.resolve(node_modules + '/es-module-shims/dist/es-module-shims.min.js'),
|
|
287
|
-
path.resolve(targetDir + '/es-module-shims/es-module-shims.min.js'),
|
|
288
|
-
);
|
|
289
|
-
fs.copyFileSync(
|
|
290
|
-
path.resolve(node_modules + '/es-module-shims/dist/es-module-shims.min.js.map'),
|
|
291
|
-
path.resolve(targetDir + '/es-module-shims/es-module-shims.min.js.map'),
|
|
292
|
-
);
|
|
293
|
-
|
|
294
192
|
// wast-refmt
|
|
295
193
|
esbuild.buildSync({
|
|
296
194
|
...baseOptions,
|
package/vendor-licenses.md
CHANGED
|
@@ -1,35 +1,23 @@
|
|
|
1
1
|
# Third Party Licenses
|
|
2
2
|
|
|
3
|
-
This is a list of software packages
|
|
4
|
-
|
|
5
|
-
Asciidoctor.js: [MIT License](https://github.com/asciidoctor/asciidoctor.js/blob/9d57b34084966f35d5c542ae4feed4941bf57903/LICENSE)
|
|
3
|
+
This is a list of software packages with included source code (sorted alphabetically) and links to their licenses:
|
|
6
4
|
|
|
7
5
|
asciidoctor-skins: [MIT License](https://github.com/darshandsoni/asciidoctor-skins/blob/c98a8ab9b27571e5b63d75912a3c753cc72ed8e4/LICENSE)
|
|
8
6
|
|
|
9
7
|
Autoprefixer: [MIT License](https://github.com/postcss/autoprefixer/blob/61f71e9a8613b0c90357472d58fdcce26324ef4f/LICENSE)
|
|
10
8
|
|
|
11
|
-
Babel: [MIT License](https://github.com/babel/babel/blob/672a58660f0b15691c44582f1f3fdcdac0fa0d2f/LICENSE)
|
|
12
|
-
|
|
13
9
|
clientside-haml-js: [MIT License](https://github.com/uglyog/clientside-haml-js/blob/d814d16f46e1629c149c18d7692ba16f249f436b/LICENSE)
|
|
14
10
|
|
|
15
11
|
CoffeeScript: [MIT License](https://github.com/jashkenas/coffeescript/tree/07f644c39223e016aceedd2cd71b5941579b5659)
|
|
16
12
|
|
|
17
|
-
ES Module Shims: [MIT License](https://github.com/guybedford/es-module-shims/blob/986733009f4c9374decd4c0348740134ff499157/LICENSE)
|
|
18
|
-
|
|
19
|
-
github-markdown-css: [MIT License](https://github.com/sindresorhus/github-markdown-css/blob/888d5a03223a2c14a8d3eb40e90a22f62469a46b/license)
|
|
20
|
-
|
|
21
13
|
Less: [Apache License 2.0](https://github.com/less/less.js/blob/870f9b2d8136bfbcdc9e1293bb0def51b54f9276/LICENSE)
|
|
22
14
|
|
|
23
15
|
LiveScript: [MIT License](https://github.com/gkz/LiveScript/blob/bd9faa4d484b6abb110473f96c28bf8686e7b7a0/LICENSE)
|
|
24
16
|
|
|
25
|
-
Marked: [MIT License](https://github.com/markedjs/marked/blob/57d41b88801566eb063cd66a210d7c34249cb7dc/LICENSE.md)
|
|
26
|
-
|
|
27
17
|
MDX: [MIT License](https://github.com/mdx-js/mdx/blob/02509286b5a39d6df233225545cf87e070130588/license)
|
|
28
18
|
|
|
29
19
|
Monaco-editor: [MIT License](https://github.com/microsoft/monaco-editor/blob/f849d3f2653d1097652a7d9e1d01d242cc225da8/LICENSE.md)
|
|
30
20
|
|
|
31
|
-
normalize.css: [MIT License](https://github.com/necolas/normalize.css/blob/fc091cce1534909334c1911709a39c22d406977b/LICENSE.md)
|
|
32
|
-
|
|
33
21
|
Opal: [MIT License](https://github.com/opal/opal/blob/631503c8957d1c6df60d158daf7db03b099b5129/LICENSE)
|
|
34
22
|
|
|
35
23
|
Perlito5: [Artistic License 2.0](https://github.com/fglock/Perlito/blob/f217cdac3771de31e009d4e099bac7013a619987/LICENSE.md)
|
|
@@ -40,20 +28,14 @@ PostCSS Preset Env: [CC0-1.0 License](https://github.com/csstools/postcss-preset
|
|
|
40
28
|
|
|
41
29
|
prelude<span>.ls</span>: [MIT License](https://github.com/gkz/prelude-ls/blob/41d048799bdd063e0592c1413d238ad95ceda1d9/LICENSE)
|
|
42
30
|
|
|
43
|
-
Prettier: [MIT License](https://github.com/prettier/prettier/blob/2c1b8f6fab1f9c63ab5d937908d090d8e75e8072/LICENSE)
|
|
44
|
-
|
|
45
31
|
Prettier Pug Plugin: [MIT License](https://github.com/prettier/plugin-pug/blob/27ab92b27a062bb187fc33f82b2fad436ec31c25/LICENSE)
|
|
46
32
|
|
|
47
33
|
Pug: [MIT License](https://github.com/pugjs/pug/blob/bb0731f75813aa30d8e077808b5465a67ef284ef/packages/pug/LICENSE)
|
|
48
34
|
|
|
49
|
-
reset.css: [The Unlicense](https://github.com/shannonmoeller/reset-css/blob/d4b2236cb260016e8f57d532a602b4e58acf6f03/license)
|
|
50
|
-
|
|
51
35
|
ReScript: [License](https://github.com/rescript-lang/rescript-compiler/blob/d93260cb2d4be63e387959e69f3204af85e5b1b3/LICENSE)
|
|
52
36
|
|
|
53
37
|
ReScript/React: [MIT License](https://github.com/rescript-lang/rescript-react/blob/c3017ec4bbce5847c3b2da8d2d536450a3e2fd6d/LICENSE)
|
|
54
38
|
|
|
55
|
-
Sass.js: [MIT License](https://github.com/medialize/sass.js/blob/71d9bed2cad10969efda9905aa1bddacc480f372/LICENSE)
|
|
56
|
-
|
|
57
39
|
Solid: [MIT License](https://github.com/solidjs/solid/blob/0d83a1947aab4bea4223460d6756a38374ba391e/LICENSE)
|
|
58
40
|
|
|
59
41
|
Stencil: [MIT License](https://github.com/ionic-team/stencil/blob/8d580b12b96cc5acc817d7efbd29dc7ad0d98457/LICENSE.mds)
|
|
@@ -62,10 +44,4 @@ Stylus: [MIT License](https://github.com/stylus/stylus/blob/59bc665db295981d4e3f
|
|
|
62
44
|
|
|
63
45
|
Svelte: [MIT License](https://github.com/sveltejs/svelte/blob/dafbdc286eef3de2243088a9a826e6899e20465c/LICENSE)
|
|
64
46
|
|
|
65
|
-
Tailwind CSS: [MIT License](https://github.com/tailwindlabs/tailwindcss/blob/6acb051f67e72a8061ad306a7fa385c36d955fb9/LICENSE)
|
|
66
|
-
|
|
67
|
-
TypeScript: [Apache License 2.0](https://github.com/microsoft/TypeScript/blob/8523ca4fa392b5b3d7ff28058503a12ef8569c7f/LICENSE.txt)
|
|
68
|
-
|
|
69
|
-
vue3-sfc-loader: [MIT License](https://github.com/FranckFreiburger/vue3-sfc-loader/blob/84b05a091fe5a283c7ed909c06cc31c0153ed103/LICENSE)
|
|
70
|
-
|
|
71
47
|
wasm-refmt:[MIT License](https://github.com/xtuc/webassemblyjs/blob/45f733aa96476d74c8ac57598e13406a48a6fdc8/LICENSE)
|