Skip to content

Commit 45297ca

Browse files
authored
Merge pull request #1 from sebastianjnuwu/main
chore(release): add version 1.0.2 with new build method, Webpack setu…
2 parents f57e414 + 9de4d26 commit 45297ca

21 files changed

+239
-1191
lines changed

.acode/zip.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import {
2+
readdirSync,
3+
readFileSync,
4+
statSync,
5+
createWriteStream,
6+
} from "node:fs";
7+
import { join } from "node:path";
8+
import jszip from "jszip";
9+
const zip = new jszip();
10+
11+
const plugin = join("plugin.json");
12+
const readme = join("readme.md");
13+
const license = join("LICENSE");
14+
const icon = join("icon.png");
15+
const folder = join("build");
16+
const file = join("plugin.zip");
17+
18+
zip.file("icon.png", readFileSync(icon));
19+
zip.file("plugin.json", readFileSync(plugin));
20+
zip.file("readme.md", readFileSync(readme));
21+
zip.file("LICENSE", readFileSync(license));
22+
23+
loadFile("", folder);
24+
25+
zip
26+
.generateNodeStream({ type: "nodebuffer", streamFiles: true })
27+
.pipe(createWriteStream(file));
28+
29+
function loadFile(root, folder) {
30+
const distFiles = readdirSync(folder);
31+
for (const file of distFiles) {
32+
zip.file(join(root, file), readFileSync(join(folder, file)));
33+
}
34+
}

.babelrc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"presets": ["@babel/preset-env"],
3+
"env": {
4+
"test": {
5+
"presets": ["@babel/env"]
6+
}
7+
},
8+
"plugins": [
9+
"html-tag-js/jsx/jsx-to-tag.js",
10+
"html-tag-js/jsx/syntax-parser.js",
11+
["@babel/plugin-transform-runtime"]
12+
],
13+
"compact": true
14+
}

.github/workflows/spell-check.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Spell Check Action ✨🔤
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
spell-check:
9+
timeout-minutes: 5
10+
name: Check Spelling 📚
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout Repository 📂
15+
uses: actions/checkout@v4
16+
17+
- name: Run Spelling Check 🔎
18+
uses: crate-ci/typos@master
19+
with:
20+
config: ./typos.toml
21+

.gitignore

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
node_modules
1+
node_modules/
2+
package-lock.json
23
yarn.lock
3-
dist.zip
4-
dist
4+
build
5+
*.zip

.vscode/pack-zip.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

biome.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3+
"formatter": {
4+
"enabled": true,
5+
"indentStyle": "space",
6+
"indentWidth": 2,
7+
"lineWidth": 80
8+
},
9+
"linter": {
10+
"enabled": true,
11+
"rules": {
12+
"recommended": true
13+
}
14+
},
15+
"organizeImports": {
16+
"enabled": true
17+
},
18+
"files": {
19+
"ignore": ["node_modules", "build"]
20+
}
21+
}

esbuild.config.mjs

Lines changed: 0 additions & 57 deletions
This file was deleted.

0 commit comments

Comments
 (0)