Skip to content

Commit

Permalink
Merge pull request #17 from bsi-software/features/lse/auto-package-ve…
Browse files Browse the repository at this point in the history
…rsion

set package version automatically from package.json
  • Loading branch information
innerjoin authored Feb 16, 2023
2 parents b81b05f + 1d93659 commit 7fd1340
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
const path = require('path');
var package = require('./package.json');

const {BuildConfig, WebpackConfigBuilder, Version, DesignType, ModuleConfig} = require('@bsi-cx/design-build');

const landingpageBuildConfig = new BuildConfig()
.withName('master-template-cx-22.0-landingpage')
.withVersion('1.1.0')
.withVersion(package.version)
.withDesignType(DesignType.LANDINGPAGE)
.withTargetVersion(Version.CX_22_0)
.withRootPath(path.resolve(__dirname, 'templates', 'landingpage'))
Expand All @@ -18,7 +19,7 @@ const landingpageBuildConfig = new BuildConfig()

const websiteBuildConfig = new BuildConfig()
.withName('master-template-cx-22.0-website')
.withVersion('1.1.0')
.withVersion(package.version)
.withDesignType(DesignType.WEBSITE)
.withTargetVersion(Version.CX_22_0)
.withRootPath(path.resolve(__dirname, 'templates', 'website'))
Expand Down

0 comments on commit 7fd1340

Please sign in to comment.