Skip to content

Commit

Permalink
chore: update denopack and static folder (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
lucacasonato authored Nov 16, 2020
1 parent 30e8b02 commit d0d1caf
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:

strategy:
matrix:
deno: ["v1.x"] # "nightly" is broken today
os: [macOS-latest, windows-latest, ubuntu-latest]
deno: ["v1.x", "nightly"]
os: [macOS-latest, ubuntu-latest] # disable on windows-latest because fly tls aint working there

steps:
- name: Disable autocrlf
Expand Down
12 changes: 6 additions & 6 deletions deps/mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { rollup } from "https://raw.githubusercontent.com/denofn/denopack/d9b2416279ce5d9eb66af235df6bd89c1891d306/deps.ts";
export { rollup } from "https://raw.githubusercontent.com/denofn/denopack/77aa4af97421999a14a80c3497ab5dcd64bac3f0/deps.ts";
export type {
ModuleFormat,
OutputAsset,
Expand All @@ -11,13 +11,13 @@ export type {
RollupCache,
RollupOptions,
RollupOutput,
} from "https://raw.githubusercontent.com/denofn/denopack/d9b2416279ce5d9eb66af235df6bd89c1891d306/deps.ts";
} from "https://raw.githubusercontent.com/denofn/denopack/77aa4af97421999a14a80c3497ab5dcd64bac3f0/deps.ts";

export { useCache } from "https://raw.githubusercontent.com/denofn/denopack/d9b2416279ce5d9eb66af235df6bd89c1891d306/plugin/mod.ts";
export { pluginTerserTransform } from "https://raw.githubusercontent.com/denofn/denopack/d9b2416279ce5d9eb66af235df6bd89c1891d306/plugin/terserTransform/mod.ts";
export { useCache } from "https://raw.githubusercontent.com/denofn/denopack/77aa4af97421999a14a80c3497ab5dcd64bac3f0/plugin/mod.ts";
export { pluginTerserTransform } from "https://raw.githubusercontent.com/denofn/denopack/77aa4af97421999a14a80c3497ab5dcd64bac3f0/plugin/terserTransform/mod.ts";

export { persistSourceMaps } from "https://raw.githubusercontent.com/denofn/denopack/d9b2416279ce5d9eb66af235df6bd89c1891d306/cli/persistSourceMaps.ts";
export { emitFiles } from "https://raw.githubusercontent.com/denofn/denopack/d9b2416279ce5d9eb66af235df6bd89c1891d306/cli/emitFiles.ts";
export { persistSourceMaps } from "https://raw.githubusercontent.com/denofn/denopack/77aa4af97421999a14a80c3497ab5dcd64bac3f0/cli/persistSourceMaps.ts";
export { emitFiles } from "https://raw.githubusercontent.com/denofn/denopack/77aa4af97421999a14a80c3497ab5dcd64bac3f0/cli/emitFiles.ts";

// std
export * as colors from "https://deno.land/std@0.77.0/fmt/colors.ts";
Expand Down
2 changes: 1 addition & 1 deletion example/pages/_document.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function Document(props: DocumentProps) {
<head>
<meta charSet="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/style.css" />
<link rel="stylesheet" href="/static/style.css" />
</head>
<body>{props.children}</body>
</html>
Expand Down
File renamed without changes
File renamed without changes.
4 changes: 3 additions & 1 deletion src/bundle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ export async function bundle(
format: "es",
sourcemap: true,
compact: true,
chunkFileNames: "static/[name]-[hash].js",
assetFileNames: "assets/[name]-[hash][extname]",
};

const tsconfig = JSON.parse(await Deno.readTextFile(options.tsconfigPath));
Expand Down Expand Up @@ -130,7 +132,7 @@ export async function bundle(
await Deno.writeFile(path + ".gz", gz);
const br = brotliEncode(file, undefined, 11);
await Deno.writeFile(path + ".br", br);
fileStats[path.slice(outDir.length).replace("\\", "/")] = {
fileStats[path.slice(outDir.length).replaceAll("\\", "/")] = {
raw: file.length,
gzip: gz.length,
brotli: br.length,
Expand Down

0 comments on commit d0d1caf

Please sign in to comment.