Skip to content

Commit

Permalink
set package version automatically from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
innerjoin committed Oct 21, 2022
1 parent 2a49645 commit 1d93659
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 @@ -17,7 +18,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 1d93659

Please sign in to comment.