stuff
This commit is contained in:
1
buildfiles/node_modules/app-builder-lib/out/presets/rectCra.d.ts
generated
vendored
Normal file
1
buildfiles/node_modules/app-builder-lib/out/presets/rectCra.d.ts
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
export {};
|
52
buildfiles/node_modules/app-builder-lib/out/presets/rectCra.js
generated
vendored
Normal file
52
buildfiles/node_modules/app-builder-lib/out/presets/rectCra.js
generated
vendored
Normal file
@ -0,0 +1,52 @@
|
||||
"use strict";
|
||||
|
||||
Object.defineProperty(exports, "__esModule", {
|
||||
value: true
|
||||
});
|
||||
exports.reactCra = reactCra;
|
||||
|
||||
function _builderUtil() {
|
||||
const data = require("builder-util");
|
||||
|
||||
_builderUtil = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
function _fs() {
|
||||
const data = require("builder-util/out/fs");
|
||||
|
||||
_fs = function () {
|
||||
return data;
|
||||
};
|
||||
|
||||
return data;
|
||||
}
|
||||
|
||||
var path = _interopRequireWildcard(require("path"));
|
||||
|
||||
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function () { return cache; }; return cache; }
|
||||
|
||||
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
||||
|
||||
/** @internal */
|
||||
async function reactCra(projectDir) {
|
||||
if ((await (0, _fs().statOrNull)(path.join(projectDir, "public", "electron.js"))) == null) {
|
||||
// noinspection SpellCheckingInspection
|
||||
_builderUtil().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"
|
||||
}
|
||||
};
|
||||
}
|
||||
// __ts-babel@6.0.4
|
||||
//# sourceMappingURL=rectCra.js.map
|
1
buildfiles/node_modules/app-builder-lib/out/presets/rectCra.js.map
generated
vendored
Normal file
1
buildfiles/node_modules/app-builder-lib/out/presets/rectCra.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"sources":["../../src/presets/rectCra.ts"],"names":[],"mappings":";;;;;;;AAAA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;AAAA;;AAAA;AAAA;AAAA;;AAAA;AAAA;;AACA;;;;;;AAGA;AACO,eAAe,QAAf,CAAwB,UAAxB,EAA0C;AAC/C,MAAI,CAAC,MAAM,sBAAW,IAAI,CAAC,IAAL,CAAU,UAAV,EAAsB,QAAtB,EAAgC,aAAhC,CAAX,CAAP,KAAsE,IAA1E,EAAgF;AAC9E;AACA,uBAAI,IAAJ,CAAS,8IAAT;AACD;;AAED,SAAO;AACL,IAAA,WAAW,EAAE;AACX,MAAA,cAAc,EAAE;AADL,KADR;AAIL,IAAA,KAAK,EAAE,CAAC,YAAD,CAJF;AAKL,IAAA,aAAa,EAAE;AACb,MAAA,IAAI,EAAE;AADO;AALV,GAAP;AAQE,C","sourcesContent":["import { log } from \"builder-util\"\nimport { statOrNull } from \"builder-util/out/fs\"\nimport * as path from \"path\"\nimport { Configuration } from \"../configuration\"\n\n/** @internal */\nexport async function reactCra(projectDir: string): Promise<Configuration> {\n if ((await statOrNull(path.join(projectDir, \"public\", \"electron.js\"))) == null) {\n // noinspection SpellCheckingInspection\n 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\")\n }\n\n return {\n directories: {\n buildResources: \"assets\"\n },\n files: [\"build/**/*\"],\n extraMetadata: {\n main: \"build/electron.js\"\n }\n }}"],"sourceRoot":""}
|
Reference in New Issue
Block a user