restructure presentation layer
- Move most GUI related code to /presentation - Move components to /components (separate from bootstrap and style) - Move shared components helpers to /components/shared - Rename Bootstrapping to bootstrapping to enforce same naming convention in /presentation
This commit is contained in:
@@ -1,14 +1,19 @@
|
||||
const packageJson = require('./package.json');
|
||||
|
||||
// Send data to application runtime
|
||||
process.env.VUE_APP_VERSION = packageJson.version;
|
||||
process.env.VUE_APP_NAME = packageJson.name;
|
||||
process.env.VUE_APP_REPOSITORY_URL = packageJson.repository.url;
|
||||
process.env.VUE_APP_HOMEPAGE_URL = packageJson.homepage;
|
||||
|
||||
module.exports = {
|
||||
chainWebpack: (config) => {
|
||||
changeAppEntryPoint('./src/presentation/main.ts', config);
|
||||
},
|
||||
pluginOptions: {
|
||||
// https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/guide.html#native-modules
|
||||
electronBuilder: {
|
||||
mainProcessFile: './src/presentation/background.ts', // https://nklayman.github.io/vue-cli-plugin-electron-builder/guide/configuration.html#webpack-configuration
|
||||
nodeIntegration: true, // required to reach Node.js APIs for environment specific logic
|
||||
// https://www.electron.build/configuration/configuration
|
||||
builderOptions: {
|
||||
@@ -31,4 +36,8 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function changeAppEntryPoint(entryPath, config) {
|
||||
config.entry('app').clear().add(entryPath).end();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user