Skip to content

Commit 4dd2380

Browse files
committed
add prettier-plugin-java
1 parent 1e272f1 commit 4dd2380

File tree

4 files changed

+271
-1
lines changed

4 files changed

+271
-1
lines changed

dist/prettier/parser-java.js

Lines changed: 175 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

Lines changed: 86 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@live-codes/browser-compilers",
3-
"version": "0.22.0",
3+
"version": "0.22.1",
44
"description": "Compilers that run in the browser, for use in livecodes.io",
55
"author": "Hatem Hosny",
66
"license": "MIT",
@@ -77,6 +77,7 @@
7777
"postcss-preset-env": "10.1.5",
7878
"posthtml": "0.16.6",
7979
"posthtml-css-modules": "0.1.3",
80+
"prettier-plugin-java": "2.6.7",
8081
"pug": "3.0.3",
8182
"react": "19.1.0",
8283
"react-dom": "19.1.0",

scripts/vendors.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,14 @@ patch('node_modules/browserslist/index.js', {
156156
});
157157
});
158158

159+
// prettier-plugin-java
160+
esbuild.build({
161+
...baseOptions,
162+
entryPoints: ['node_modules/prettier-plugin-java/dist/index.js'],
163+
outfile: 'dist/prettier/parser-java.js',
164+
globalName: 'pluginJava',
165+
});
166+
159167
// @prettier/plugin-pug
160168
esbuild.build({
161169
...baseOptions,

0 commit comments

Comments
 (0)