Skip to content

Commit

Permalink
Remove legacy source code and tests; drop in new draft code
Browse files Browse the repository at this point in the history
  • Loading branch information
aarong committed May 7, 2024
1 parent 5633cb5 commit 024c44b
Show file tree
Hide file tree
Showing 61 changed files with 5,556 additions and 37,920 deletions.
6 changes: 3 additions & 3 deletions build.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import targets from "./targets";
// https://github.com/babel/babel/issues/5261
// You can only produce external sourcemaps using the CLI, so I write
// the maps to file myself and append a reference in the transpiled source
const srcFiles = await glob("!(main.browser).js", { cwd: "src" });
const srcFiles = await glob("!(index.browser).js", { cwd: "src" });
await Promise.all(
srcFiles.map((file) =>
(async () => {
Expand Down Expand Up @@ -59,7 +59,7 @@ import targets from "./targets";
// Create browser bundles
console.log("Bundling for the browser");
const createWebpackConfig = (sourceMaps) => ({
entry: "./src/main.browser.js",
entry: "./src/index.browser.js",
mode: "production",

module: {
Expand Down Expand Up @@ -117,7 +117,7 @@ import targets from "./targets";
output: {
filename: sourceMaps ? "bundle.withmaps.js" : "bundle.js",
path: path.resolve(__dirname, "build"),
library: "feedmeClient",
library: "FeedmeClient",
libraryExport: "default", // No .default()
libraryTarget: "umd",
},
Expand Down
12 changes: 12 additions & 0 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,11 @@
"check-types": "^11.2.3",
"component-emitter": "^1.2.1",
"debug": "^4.1.1",
"deep-freeze": "^0.0.1",
"feedme-util": "^0.3.2",
"json-expressible": "^1.0.1",
"lodash": "^4.17.4",
"make-error": "^1.3.6",
"source-map-support": "^0.5.11"
},
"devDependencies": {
Expand Down
Loading

0 comments on commit 024c44b

Please sign in to comment.