Keep NPM module versions in sync with Maven module versions

master
Jens Pelzetter 2023-04-25 19:40:11 +02:00
parent 403188b438
commit 4e5cc35699
9 changed files with 41 additions and 11 deletions

View File

@ -1,12 +1,12 @@
{ {
"name": "sci-publications", "name": "sci-publications",
"version": "7.0.0", "version": "7.0.0-SNAPSHOT",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "sci-publications", "name": "sci-publications",
"version": "7.0.0", "version": "7.0.0-SNAPSHOT",
"license": "LGPL-3.0-or-later", "license": "LGPL-3.0-or-later",
"dependencies": { "dependencies": {
"bootstrap": "^4.6.0", "bootstrap": "^4.6.0",

View File

@ -1,6 +1,6 @@
{ {
"name": "sci-publications", "name": "sci-publications",
"version": "7.0.0", "version": "7.0.0-SNAPSHOT",
"description": "JavaScript parts of the UI of sci-publications", "description": "JavaScript parts of the UI of sci-publications",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -184,6 +184,16 @@
<arguments> --userconfig ../libreccm.npmrc install</arguments> <arguments> --userconfig ../libreccm.npmrc install</arguments>
</configuration> </configuration>
</execution> </execution>
<!-- Sync Maven module version and NPM module version -->
<execution>
<id>npm version</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>version --allow-same-version=true ${project.version}</arguments>
</configuration>
</execution>
<execution> <execution>
<id>build</id> <id>build</id>
<goals> <goals>

View File

@ -1,12 +1,12 @@
{ {
"name": "sci-types-department", "name": "sci-types-department",
"version": "7.0.0", "version": "7.0.0-SNAPSHOT",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "sci-types-department", "name": "sci-types-department",
"version": "7.0.0", "version": "7.0.0-SNAPSHOT",
"license": "LGPL-3.0-or-later", "license": "LGPL-3.0-or-later",
"dependencies": { "dependencies": {
"sortablejs": "^1.14.0" "sortablejs": "^1.14.0"

View File

@ -1,6 +1,6 @@
{ {
"name": "sci-types-department", "name": "sci-types-department",
"version": "7.0.0", "version": "7.0.0-SNAPSHOT",
"description": "JavaScript parts of the UI of sci-types-department", "description": "JavaScript parts of the UI of sci-types-department",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -191,6 +191,16 @@
<arguments>--userconfig ../libreccm.npmrc install</arguments> <arguments>--userconfig ../libreccm.npmrc install</arguments>
</configuration> </configuration>
</execution> </execution>
<!-- Sync Maven module version and NPM module version -->
<execution>
<id>npm version</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>version --allow-same-version=true ${project.version}</arguments>
</configuration>
</execution>
<execution> <execution>
<id>build</id> <id>build</id>
<goals> <goals>

View File

@ -1,12 +1,12 @@
{ {
"name": "sci-types-project", "name": "sci-types-project",
"version": "7.0.0", "version": "7.0.0-SNAPSHOT",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "sci-types-project", "name": "sci-types-project",
"version": "7.0.0", "version": "7.0.0-SNAPSHOT",
"license": "LGPL-3.0-or-later", "license": "LGPL-3.0-or-later",
"dependencies": { "dependencies": {
"sortablejs": "^1.14.0" "sortablejs": "^1.14.0"

View File

@ -1,6 +1,6 @@
{ {
"name": "sci-types-project", "name": "sci-types-project",
"version": "7.0.0", "version": "7.0.0-SNAPSHOT",
"description": "JavaScript parts of the UI of sci-types-project", "description": "JavaScript parts of the UI of sci-types-project",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {

View File

@ -183,6 +183,16 @@
<arguments> --userconfig ../libreccm.npmrc install</arguments> <arguments> --userconfig ../libreccm.npmrc install</arguments>
</configuration> </configuration>
</execution> </execution>
<!-- Sync Maven module version and NPM module version -->
<execution>
<id>npm version</id>
<goals>
<goal>npm</goal>
</goals>
<configuration>
<arguments>version --allow-same-version=true ${project.version}</arguments>
</configuration>
</execution>
<execution> <execution>
<id>build</id> <id>build</id>
<goals> <goals>