Commit a92150d4 by Johannes Edmeier Committed by Johannes Edmeier

Use yarn instead of npm

parent 82d707e6
......@@ -5,6 +5,7 @@ env:
- NODE_VERSION=4
cache:
yarn: true
directories:
- $HOME/.m2
......@@ -12,6 +13,7 @@ before_install:
- 'if [[ -n "$DECRYPT_KEYPHRASE" ]]; then openssl aes-256-cbc -d -pass "env:DECRYPT_KEYPHRASE" -in .gnupg.tar.enc | tar xv; fi'
- 'if [[ ${TRAVIS_TAG} != "" ]]; then ./mvnw versions:set -DnewVersion="${TRAVIS_TAG}"; fi'
- 'nvm install ${NODE_VERSION} && nvm use ${NODE_VERSION}'
- 'npm install -g yarn'
script: ./mvnw clean verify
......
......@@ -49,26 +49,26 @@
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>npm-install</id>
<id>yarn-install</id>
<phase>validate</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<executable>yarn</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>npm-build</id>
<id>yarn-build</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<executable>yarn</executable>
<arguments>
<argument>run</argument>
<argument>build</argument>
......@@ -76,14 +76,14 @@
</configuration>
</execution>
<execution>
<id>npm-test</id>
<id>yarn-test</id>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<skip>true</skip>
<executable>npm</executable>
<executable>yarn</executable>
<arguments>
<argument>run</argument>
<argument>test</argument>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -46,26 +46,26 @@
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>npm-install</id>
<id>yarn-install</id>
<phase>validate</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<executable>yarn</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>npm-build</id>
<id>yarn-build</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<executable>yarn</executable>
<arguments>
<argument>run</argument>
<argument>build</argument>
......@@ -73,14 +73,14 @@
</configuration>
</execution>
<execution>
<id>npm-test</id>
<id>yarn-test</id>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<skip>true</skip>
<executable>npm</executable>
<executable>yarn</executable>
<arguments>
<argument>run</argument>
<argument>test</argument>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -2,32 +2,32 @@ spring-boot-admin-server-ui
================================
### Building this module
The jar **can be build with Maven** with the maven-exec-plugin. To do this node.js and npm must be installed on your machine and be on your $PATH.
The jar **can be build with Maven** with the maven-exec-plugin. To do this node.js and yarn must be installed on your machine and be on your $PATH.
If you dont want to use the maven exec run the following commands:
### Build
```shell
npm install
npm run build
yarn install
yarn run build
```
Repeated build with watching the files:
```shell
npm run watch:js
yarn run watch:js
```
### Run dev-server
This starts a dev-server serving the ui only at port 9000. The rest requests are forwarded to port 8080.
```shell
npm run dev-server
yarn run dev-server
```
## Run tests
```shell
npm run test
yarn run test
```
Repeated tests with watching the files:
```shell
npm run watch:test
```
\ No newline at end of file
yarn run watch:test
```
......@@ -15,26 +15,26 @@
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<id>npm-install</id>
<id>yarn-install</id>
<phase>validate</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<executable>yarn</executable>
<arguments>
<argument>install</argument>
</arguments>
</configuration>
</execution>
<execution>
<id>npm-build</id>
<id>yarn-build</id>
<phase>generate-resources</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<executable>yarn</executable>
<arguments>
<argument>run</argument>
<argument>build</argument>
......@@ -42,13 +42,13 @@
</configuration>
</execution>
<execution>
<id>npm-test</id>
<id>yarn-test</id>
<phase>test</phase>
<goals>
<goal>exec</goal>
</goals>
<configuration>
<executable>npm</executable>
<executable>yarn</executable>
<arguments>
<argument>run</argument>
<argument>test</argument>
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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