Skip to content

Commit

Permalink
Add examples
Browse files Browse the repository at this point in the history
  • Loading branch information
nika-begiashvili committed Jan 24, 2024
1 parent 07f4eae commit 8fa201e
Show file tree
Hide file tree
Showing 32 changed files with 3,098 additions and 24 deletions.
3 changes: 2 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
test
lib
lib
examples
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
<img src="https://img.shields.io/npm/v/libarchive.js.svg"
alt="npm version">
</a>
<a href="https://travis-ci.com/nika-begiashvili/libarchivejs">
<img src="https://travis-ci.com/nika-begiashvili/libarchivejs.svg?branch=master"
alt="build status">
</a>
<a href="https://github.com/nika-begiashvili/libarchivejs/blob/master/LICENSE">
<img src="https://img.shields.io/npm/l/libarchive.js.svg"
alt="license">
Expand Down
2 changes: 1 addition & 1 deletion dist/libarchive.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 20 additions & 0 deletions examples/esbuild/build.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import { build } from "esbuild";
import { copy } from "esbuild-plugin-copy";

build({
entryPoints: ["index.js"],
bundle: true,
outfile: "./dist/index.js",
external: ["./worker-bundle.js"],
format: "esm",
plugins: [
copy({
resolveFrom: "cwd",
assets: {
from: ["node_modules/libarchive.js/dist/*"],
to: ["./dist/"],
},
watch: true,
}),
],
});
Loading

0 comments on commit 8fa201e

Please sign in to comment.