Initial boiler plate project

This commit is contained in:
2024-09-24 03:52:46 +00:00
parent 6120b2d6c3
commit 154b93e267
10034 changed files with 2079352 additions and 2 deletions

View File

@ -0,0 +1,6 @@
/**
* Formats the manifest depending on the environment variable
* `NODE_ENV`. If it's set to `development`, it will return a pretty printed
* JSON string, otherwise it will return a minified JSON string.
*/
export declare function formatManifest<T extends object>(manifest: T): string;

View File

@ -0,0 +1,22 @@
/**
* Formats the manifest depending on the environment variable
* `NODE_ENV`. If it's set to `development`, it will return a pretty printed
* JSON string, otherwise it will return a minified JSON string.
*/ "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "formatManifest", {
enumerable: true,
get: function() {
return formatManifest;
}
});
function formatManifest(manifest) {
if (process.env.NODE_ENV === "development") {
return JSON.stringify(manifest, null, 2);
}
return JSON.stringify(manifest);
}
//# sourceMappingURL=format-manifest.js.map

View File

@ -0,0 +1 @@
{"version":3,"sources":["../../../../src/build/manifests/formatter/format-manifest.ts"],"names":["formatManifest","manifest","process","env","NODE_ENV","JSON","stringify"],"mappings":"AAAA;;;;CAIC;;;;+BACeA;;;eAAAA;;;AAAT,SAASA,eAAiCC,QAAW;IAC1D,IAAIC,QAAQC,GAAG,CAACC,QAAQ,KAAK,eAAe;QAC1C,OAAOC,KAAKC,SAAS,CAACL,UAAU,MAAM;IACxC;IAEA,OAAOI,KAAKC,SAAS,CAACL;AACxB"}