Skip to content

Commit 83a2d26

Browse files
committed
Deprecate module
1 parent b8b5617 commit 83a2d26

File tree

1 file changed

+2
-90
lines changed

1 file changed

+2
-90
lines changed

README.md

Lines changed: 2 additions & 90 deletions
Original file line numberDiff line numberDiff line change
@@ -1,91 +1,3 @@
1-
<h1 align="center">Asset bundler for Deno apps</h1>
1+
# Deprecated
22

3-
<p align="center">
4-
<img src="https://raw.githubusercontent.com/jacoborus/deno-buckets/main/example/deno-bucket-logo.svg" alt="deno-buckets logo"><br>
5-
<b>deno-buckets</b><br>
6-
</p>
7-
8-
<p align="center">
9-
<a href="https://doc.deno.land/https/raw.githubusercontent.com%2Fjacoborus%2Fdeno-buckets%2Fmain%2Fmod.ts">
10-
<img src="https://doc.deno.land/badge.svg" alt="deno doc">
11-
</a>
12-
<a href="https://github.com/jacoborus/deno-buckets/blob/main/LICENSE">
13-
<img alt="GitHub License" src="https://img.shields.io/github/license/jacoborus/deno-buckets">
14-
</a>
15-
<a href="https://github.com/jacoborus/deno-buckets/releases">
16-
<img alt="GitHub release (latest by date)" src="https://img.shields.io/github/v/release/jacoborus/deno-buckets">
17-
</a>
18-
</p>
19-
20-
Buckets is a wrapper around the native
21-
[Deno emit](https://github.com/denoland/deno_emit), it allows you to select
22-
source files, and then bundle their resolved default exports.
23-
24-
## Example
25-
26-
**data.ts:**
27-
28-
```typescript
29-
// is-deno-bucket
30-
export default Deno.readTextFileSync("./lorem.txt");
31-
```
32-
33-
**app.ts:**
34-
35-
```typescript
36-
import data from "./data.ts";
37-
console.log(data);
38-
```
39-
40-
Then run: `buckets app.ts > app.bundle.js`:
41-
42-
```typescript
43-
// app.bundle.js
44-
const __default = "Lorem ipsum dolor sit amet\n";
45-
console.log(__default);
46-
```
47-
48-
## Usage
49-
50-
Add the comment `// is-deno-bucket` at the beginning of the files you want to
51-
resolve before bundling. Then, bundle your app with **deno-buckets**. Only the
52-
`default` export will be resolved.
53-
54-
### CLI
55-
56-
Install:
57-
58-
```sh
59-
deno install --allow-net --allow-read --allow-write --allow-env https://deno.land/x/buckets/buckets.ts
60-
```
61-
62-
Run:
63-
64-
```sh
65-
buckets <entry_path> [import_map_path] > out.js
66-
```
67-
68-
Buckets will look for `deno.json` or `deno.jsonc` in the current folder. To use
69-
a different imports map, pass it's path as the second argument
70-
71-
Alternatively, you can use it directly from the deno.land/x source:
72-
73-
```sh
74-
deno run --allow-read --allow-write --allow-net --allow-env https://deno.land/x/buckets@v0.7.0/buckets.ts your_entry_file.ts > bundle.js
75-
```
76-
77-
### API
78-
79-
```typescript
80-
import { bundle } from "https://deno.land/x/buckets/mod.ts";
81-
82-
const content = await bundle("./app.ts", "deno.json");
83-
Deno.writeTextFileSync("app.bundle.js", content);
84-
```
85-
86-
<br>
87-
88-
---
89-
90-
© 2021 [Jacobo Tabernero Rey](http://jacoborus.codes) - Released under
91-
[MIT License](https://raw.github.com/jacoborus/deno-buckets/main/LICENSE)
3+
https://github.com/denoland/deno/issues/11073

0 commit comments

Comments
 (0)