Skip to content

Commit

Permalink
Customize package.json scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Aug 21, 2021
1 parent d2497d0 commit cc53f9b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions generators/server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,23 @@ module.exports = class extends ServerGenerator {
'ci:backend:test': 'npm run backend:info && npm run backend:doc:test && npm run backend:unit:test',
},
});
if (this.buildToolGradle) {
this.packageJson.merge({
scripts: {
'ci:e2e:dev': 'concurrently -k -s first "./gradlew" "npm run e2e:headless"',
'ci:e2e:server:start':
'java -jar build/libs/quarkus-app/quarkus-run.$npm_package_config_packaging --spring.profiles.active=$npm_package_config_default_environment',
},
});
} else {
this.packageJson.merge({
scripts: {
'ci:e2e:dev': 'concurrently -k -s first "./mvnw" "npm run e2e:headless"',
'ci:e2e:server:start':
'java -jar target/quarkus-app/quarkus-run.$npm_package_config_packaging --spring.profiles.active=$npm_package_config_default_environment',
},
});
}
},
};
}
Expand Down

0 comments on commit cc53f9b

Please sign in to comment.