Skip to content

Commit

Permalink
bump version & esm & async & implement TurboWarp#1587
Browse files Browse the repository at this point in the history
  • Loading branch information
FurryR committed Jul 4, 2024
1 parent 7d4ba64 commit 9cfd61f
Show file tree
Hide file tree
Showing 17 changed files with 323 additions and 274 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_modules
# Final built website and localizations
build
build-l10n
cache

# Various operating system caches
thumbs.db
Expand Down
16 changes: 9 additions & 7 deletions development/build-production.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
const pathUtil = require("path");
const Builder = require("./builder");
import pathUtil from "node:path";
import Builder from "./builder.js";
import urlUtil from "node:url";

const outputDirectory = pathUtil.join(__dirname, "../build");
const l10nOutput = pathUtil.join(__dirname, "../build-l10n");
const dirname = pathUtil.dirname(urlUtil.fileURLToPath(import.meta.url));
const outputDirectory = pathUtil.join(dirname, "../build");
const l10nOutput = pathUtil.join(dirname, "../build-l10n");

const builder = new Builder("production");
const build = builder.build();
const build = await builder.build();

build.export(outputDirectory);
await build.export(outputDirectory);
console.log(`Built to ${outputDirectory}`);

build.exportL10N(l10nOutput);
await build.exportL10N(l10nOutput);
console.log(`Exported L10N to ${l10nOutput}`);
Loading

0 comments on commit 9cfd61f

Please sign in to comment.