Initial Commit
This commit is contained in:
24
node_modules/app-builder-lib/out/presets/rectCra.js
generated
vendored
Normal file
24
node_modules/app-builder-lib/out/presets/rectCra.js
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.reactCra = void 0;
|
||||
const builder_util_1 = require("builder-util");
|
||||
const fs_1 = require("builder-util/out/fs");
|
||||
const path = require("path");
|
||||
/** @internal */
|
||||
async function reactCra(projectDir) {
|
||||
if ((await (0, fs_1.statOrNull)(path.join(projectDir, "public", "electron.js"))) == null) {
|
||||
// noinspection SpellCheckingInspection
|
||||
builder_util_1.log.warn("public/electron.js not found. Please see https://medium.com/@kitze/%EF%B8%8F-from-react-to-an-electron-app-ready-for-production-a0468ecb1da3");
|
||||
}
|
||||
return {
|
||||
directories: {
|
||||
buildResources: "assets",
|
||||
},
|
||||
files: ["build/**/*"],
|
||||
extraMetadata: {
|
||||
main: "build/electron.js",
|
||||
},
|
||||
};
|
||||
}
|
||||
exports.reactCra = reactCra;
|
||||
//# sourceMappingURL=rectCra.js.map
|
||||
Reference in New Issue
Block a user