Commit 0d2e5bf5 authored by Gerson Sunyé's avatar Gerson Sunyé
Browse files

Configure maven-frontend-plugin to use Yarn instead of npm

parent 1465c91b
......@@ -2,7 +2,9 @@
"name": "not-alone-player",
"version": "0.0.0",
"main": "dist/main.js",
"types": "dist/main.d.ts",
"scripts": {
"clean": "rm -rf ./src/codegen/* ./dist/*",
"prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
"build": "tsc",
"prestart": "npm run build",
......
......@@ -21,45 +21,62 @@
<configuration>
<workingDirectory>./</workingDirectory>
<nodeVersion>v14.11.0</nodeVersion>
<npmVersion>7.0.10</npmVersion>
<yarnVersion>v1.22.10</yarnVersion>
</configuration>
<executions>
<execution>
<id>install node and npm</id>
<id>install-node-and-yarn</id>
<goals>
<goal>install-node-and-npm</goal>
<goal>install-node-and-yarn</goal>
</goals>
<phase>generate-resources</phase>
</execution>
<execution>
<id>npm install</id>
<id>yarn-install</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>install</arguments>
</configuration>
<phase>generate-resources</phase>
</execution>
<execution>
<id>npm run build</id>
<id>yarn run build</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>run build</arguments>
</configuration>
<phase>compile</phase>
</execution>
<execution>
<id>code generation</id>
<phase>compile</phase>
<id>code-generation</id>
<phase>generate-sources</phase>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>run codegen</arguments>
</configuration>
</execution>
<execution>
<id>yarn-clean</id>
<phase>clean</phase>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>run clean</arguments>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment