@vc-shell/config-generator
Advanced tools
Comparing version 1.0.53 to 1.0.54
import { UserConfigExport } from "vite"; | ||
export declare function getLibraryConfiguration(options: UserConfigExport, libraryName: string): UserConfigExport; | ||
export declare function getApplicationConfiguration(options?: UserConfigExport): UserConfigExport; | ||
export declare function getLibraryConfiguration(options?: UserConfigExport): Record<string, any>; | ||
export declare function getApplicationConfiguration(options?: UserConfigExport): Record<string, any>; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -5,12 +5,12 @@ "use strict"; | ||
const tslib_1 = require("tslib"); | ||
const merge_1 = tslib_1.__importDefault(require("./merge")); | ||
const vite_application_appconfig_1 = tslib_1.__importDefault(require("./templates/vite.application.appconfig")); | ||
const vite_library_appconfig_1 = tslib_1.__importDefault(require("./templates/vite.library.appconfig")); | ||
const fs_1 = tslib_1.__importDefault(require("fs")); | ||
const vite_1 = require("vite"); | ||
const packageJson = fs_1.default.readFileSync(process.cwd() + "/package.json"); | ||
const name = JSON.parse(packageJson.toString()).name; | ||
const version = JSON.parse(packageJson.toString()).version; | ||
function getLibraryConfiguration(options = {}, libraryName) { | ||
function getLibraryConfiguration(options = {}) { | ||
console.log(`Building library ${name} v.${version} ...`); | ||
return getConfiguration(vite_library_appconfig_1.default, options, libraryName); | ||
return getConfiguration(vite_library_appconfig_1.default, options); | ||
} | ||
@@ -23,5 +23,5 @@ exports.getLibraryConfiguration = getLibraryConfiguration; | ||
exports.getApplicationConfiguration = getApplicationConfiguration; | ||
function getConfiguration(configuration, options = {}, name) { | ||
return (0, merge_1.default)(configuration, name ? { build: { lib: { name } } } : {}, options); | ||
function getConfiguration(configuration = {}, options) { | ||
return (0, vite_1.mergeConfig)(configuration, options); | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -1,44 +0,4 @@ | ||
import { ProxyOptions } from "vite"; | ||
declare const _default: { | ||
mode: string; | ||
resolve: { | ||
preserveSymlinks: boolean; | ||
}; | ||
envPrefix: string; | ||
plugins: import("vite").PluginOption[]; | ||
define: { | ||
"import.meta.env.PACKAGE_VERSION": string; | ||
"import.meta.env.APP_PLATFORM_URL": string; | ||
"import.meta.env.APP_LOG_ENABLED": string; | ||
"import.meta.env.APP_LOG_LEVEL": string; | ||
__VUE_I18N_FULL_INSTALL__: boolean; | ||
__VUE_I18N_LEGACY_API__: boolean; | ||
global?: unknown; | ||
}; | ||
server: { | ||
watch: { | ||
ignored: string[]; | ||
}; | ||
host: string; | ||
port: number; | ||
https: boolean; | ||
proxy: { | ||
"/api": ProxyOptions; | ||
"/connect/token": ProxyOptions; | ||
"/pushNotificationHub": ProxyOptions; | ||
"^/pushNotificationHub": ProxyOptions; | ||
"/Modules": ProxyOptions; | ||
}; | ||
}; | ||
optimizeDeps: { | ||
include: string[]; | ||
}; | ||
build: { | ||
emptyOutDir: boolean; | ||
rollupOptions: { | ||
plugins: import("rollup").Plugin[]; | ||
}; | ||
}; | ||
}; | ||
import { UserConfigExport } from "vite"; | ||
declare const _default: UserConfigExport; | ||
export default _default; | ||
//# sourceMappingURL=vite.application.appconfig.d.ts.map |
@@ -1,11 +0,4 @@ | ||
import { LibraryOptions } from "vite"; | ||
declare const _default: { | ||
build: { | ||
lib: LibraryOptions; | ||
rollupOptions: { | ||
plugins: import("rollup").Plugin[]; | ||
}; | ||
}; | ||
}; | ||
import { UserConfigExport } from "vite"; | ||
declare const _default: UserConfigExport; | ||
export default _default; | ||
//# sourceMappingURL=vite.library.appconfig.d.ts.map |
@@ -10,3 +10,3 @@ "use strict"; | ||
entry: process.cwd() + "/src/index.ts", | ||
formats: ["cjs"], | ||
formats: ["cjs", "esm"], | ||
}, | ||
@@ -13,0 +13,0 @@ rollupOptions: { |
{ | ||
"name": "@vc-shell/config-generator", | ||
"description": "Generate Vite configurations", | ||
"version": "1.0.53", | ||
"version": "1.0.54", | ||
"main": "./dist/index.js", | ||
@@ -21,3 +21,3 @@ "types": "./dist/index.d.ts", | ||
}, | ||
"gitHead": "8c644532aec0fb5eefe62c29509ab4392adc74d0" | ||
"gitHead": "e7492afe894926b839bef1ea9a58b86fd83ce1d1" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
99895
15
136