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 @@ ...@@ -2,7 +2,9 @@
"name": "not-alone-player", "name": "not-alone-player",
"version": "0.0.0", "version": "0.0.0",
"main": "dist/main.js", "main": "dist/main.js",
"types": "dist/main.d.ts",
"scripts": { "scripts": {
"clean": "rm -rf ./src/codegen/* ./dist/*",
"prebuild": "tslint -c tslint.json -p tsconfig.json --fix", "prebuild": "tslint -c tslint.json -p tsconfig.json --fix",
"build": "tsc", "build": "tsc",
"prestart": "npm run build", "prestart": "npm run build",
......
...@@ -21,45 +21,62 @@ ...@@ -21,45 +21,62 @@
<configuration> <configuration>
<workingDirectory>./</workingDirectory> <workingDirectory>./</workingDirectory>
<nodeVersion>v14.11.0</nodeVersion> <nodeVersion>v14.11.0</nodeVersion>
<npmVersion>7.0.10</npmVersion> <yarnVersion>v1.22.10</yarnVersion>
</configuration> </configuration>
<executions> <executions>
<execution> <execution>
<id>install node and npm</id> <id>install-node-and-yarn</id>
<goals> <goals>
<goal>install-node-and-npm</goal> <goal>install-node-and-yarn</goal>
</goals> </goals>
<phase>generate-resources</phase> <phase>generate-resources</phase>
</execution> </execution>
<execution> <execution>
<id>npm install</id> <id>yarn-install</id>
<goals> <goals>
<goal>npm</goal> <goal>yarn</goal>
</goals> </goals>
<configuration> <configuration>
<arguments>install</arguments> <arguments>install</arguments>
</configuration> </configuration>
<phase>generate-resources</phase> <phase>generate-resources</phase>
</execution> </execution>
<execution> <execution>
<id>npm run build</id> <id>yarn run build</id>
<goals> <goals>
<goal>npm</goal> <goal>yarn</goal>
</goals> </goals>
<configuration> <configuration>
<arguments>run build</arguments> <arguments>run build</arguments>
</configuration> </configuration>
<phase>compile</phase>
</execution> </execution>
<execution> <execution>
<id>code generation</id> <id>code-generation</id>
<phase>compile</phase> <phase>generate-sources</phase>
<goals> <goals>
<goal>npm</goal> <goal>yarn</goal>
</goals> </goals>
<configuration> <configuration>
<arguments>run codegen</arguments> <arguments>run codegen</arguments>
</configuration> </configuration>
</execution> </execution>
<execution>
<id>yarn-clean</id>
<phase>clean</phase>
<goals>
<goal>yarn</goal>
</goals>
<configuration>
<arguments>run clean</arguments>
</configuration>
</execution>
</executions> </executions>
</plugin> </plugin>
</plugins> </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