Skip to content

Commit

Permalink
feature: Minifier also adds the demo mode JSON (#1369)
Browse files Browse the repository at this point in the history
  • Loading branch information
NigelBreslaw authored Apr 22, 2024
1 parent 92f9d7f commit 15d98b4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions minifier/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -717,8 +717,17 @@ async function main() {

const savePath = path.join(__dirname, `json/manifest.json`);
await saveToJsonFile(uniqueJsonManifest, savePath);

// To avoid committing a 3MB JSON blob into this repo download the demo.json file
// from the unintuitive.com site and save it to the json folder. This is only used
// for the apps demo mode.
const demoJsonUrl = "https://unintuitive.com/demo.json";
const demoJson = await downloadJsonFile(demoJsonUrl);
const saveDemoPath = path.join(__dirname, `json/demo.json`);
await saveToJsonFile(demoJson, saveDemoPath);
} catch (error) {
console.error(error);
process.exit(1);
}
}

Expand Down

0 comments on commit 15d98b4

Please sign in to comment.