Skip to content

Commit

Permalink
Upped XP version. Fixed dev task to work on Windows.
Browse files Browse the repository at this point in the history
  • Loading branch information
alansemenov committed Jan 22, 2024
1 parent 0b2a47b commit dbf0182
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
14 changes: 9 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ node {
version = '18.17.1'
}

tasks.register( 'npmInstallForce', NpmTask ) {
tasks.register('npmInstallForce', NpmTask) {
description = 'Update all project node dependencies'
args = ['install', '--force']
}

tasks.register( 'cleanNode', Delete ) {
tasks.register('cleanNode', Delete) {
delete 'node_modules'
}

tasks.register( 'clientWebpack', NodeTask ) {
tasks.register('clientWebpack', NodeTask) {
dependsOn npmInstall
environment = [ 'NODE_ENV': nodeEnvironment() ]
args = [ '--config', 'webpack.client.config.js', '--color' ]
Expand All @@ -65,7 +65,7 @@ tasks.register( 'clientWebpack', NodeTask ) {
script = file( 'node_modules/webpack-cli/bin/cli.js' )
}

tasks.register( 'serverWebpack', NodeTask ) {
tasks.register('serverWebpack', NodeTask) {
dependsOn npmInstall
environment = [ 'NODE_ENV': nodeEnvironment() ]
args = [ '--config', 'webpack.server.config.js', '--color' ]
Expand All @@ -76,7 +76,11 @@ tasks.register( 'serverWebpack', NodeTask ) {
}

tasks.register('dev', Exec) {
commandLine './gradlew', 'deploy', '-t'
if (System.getProperty('os.name').toLowerCase().contains('windows')) {
commandLine 'gradlew.bat', 'deploy', '-t'
} else {
commandLine './gradlew', 'deploy', '-t'
}
}

processResources {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ appDisplayName = Webpack Example
appName = com.acme.example.webpack
vendorName = Acme Inc
vendorUrl = https://example.com
xpVersion = 7.13.3
xpVersion = 7.14.0

# Settings for publishing to a Maven repo
group = com.acme.example

0 comments on commit dbf0182

Please sign in to comment.