Commit 4ff188ac authored by benjaminParisel's avatar benjaminParisel Committed by julienmege

Tr(yarn): replace npm by yarn (#2363)

* Tr(yarn): replace npm by yarn

* Tr(yarn): upgrade phantomjs-prebuild
parent 494d7197
......@@ -37,7 +37,7 @@ To run unit test code coverage, launch maven profile _coverage_
#### Single run
```shell
$ npm test
$ yarn test
```
or
```shell
......@@ -47,7 +47,7 @@ $ gulp test
### Watch source files and tests
```shell
$ npm run test-watch
$ yarn run test-watch
```
or
......
......@@ -57,7 +57,7 @@
"karma-phantomjs-launcher": "1.0.4",
"log4js": "0.6.27",
"optimist": "0.6.1",
"phantomjs-prebuilt": "2.1.7",
"phantomjs-prebuilt": "2.1.8",
"through": "^2.3.6",
"through2": "^0.6.5",
"widget-builder": "bonitasoft/widget-builder#2.0.1"
......
......@@ -316,16 +316,16 @@
<artifactId>frontend-maven-plugin</artifactId>
<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>initialize</phase>
</execution>
<execution>
<id>npm install</id>
<id>yarn install</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<phase>initialize</phase>
<configuration>
......@@ -333,9 +333,9 @@
</configuration>
</execution>
<execution>
<id>npm build</id>
<id>yarn build</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<phase>generate-sources</phase>
<configuration>
......@@ -343,9 +343,9 @@
</configuration>
</execution>
<execution>
<id>npm test</id>
<id>yarn test</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<phase>test</phase>
<configuration>
......
# Front end
## Prerequisites
- Install node.js and npm
- Install node.js and yarn
- Install the local npm packages:
```shell
$ npm install
$ yarn install
```
- Install selenium and the chrome driver
......@@ -18,7 +18,7 @@ $ ./node_modules/protractor/bin/webdriver-manager update
## Dev
```shell
$ npm start
$ yarn start
```
This starts a server on port 3000 which allows serving the development page (index.html)
......@@ -38,7 +38,7 @@ Fix code format issues by hand if the format error report shows any error.
## Build
```shell
$ npm run build
$ yarn run build
```
## Start built files
......@@ -53,7 +53,7 @@ minified file.
## Execute e2e tests
```shell
$ npm run e2e
$ yarn run e2e
```
This generates the CSS, JS and html files, starts a selenium server on port 12001, executes the e2e tests, then
stops the server.
......@@ -68,13 +68,13 @@ $ gulp serve:e2e
### Single run
```shell
$ npm test
$ yarn test
```
### Watch source files and tests
```shell
$ npm run test-watch
$ yarn run test-watch
```
## Internationalization
......
......@@ -67,7 +67,7 @@
"merge-stream": "^0.1.7",
"mkdirp": "^0.5.1",
"multiparty": "^4.1.2",
"phantomjs-prebuilt": "2.1.7",
"phantomjs-prebuilt": "2.1.8",
"protractor": "5.2.0",
"run-sequence": "~0.3.7",
"serve-static": "~1.6.2",
......
......@@ -20,15 +20,15 @@
<artifactId>frontend-maven-plugin</artifactId>
<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>
</execution>
<execution>
<id>npm install</id>
<id>yarn install</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
......@@ -36,9 +36,9 @@
</configuration>
</execution>
<execution>
<id>npm build</id>
<id>yarn build</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<phase>generate-resources</phase>
<configuration>
......@@ -46,9 +46,9 @@
</configuration>
</execution>
<execution>
<id>npm test</id>
<id>yarn test</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<phase>test</phase>
<configuration>
......@@ -88,15 +88,15 @@
<artifactId>frontend-maven-plugin</artifactId>
<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>
</execution>
<execution>
<id>e2e tests</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<phase>integration-test</phase>
<configuration>
......
......@@ -35,11 +35,11 @@
<plugin>
<groupId>com.github.eirslett</groupId>
<artifactId>frontend-maven-plugin</artifactId>
<version>1.5</version>
<version>1.6</version>
<configuration>
<installDirectory>${session.executionRootDirectory}</installDirectory>
<nodeVersion>v8.7.0</nodeVersion>
<npmVersion>3.10.10</npmVersion>
<yarnVersion>v1.2.1 </yarnVersion>
</configuration>
</plugin>
</plugins>
......
......@@ -11,7 +11,7 @@ waitJetty() {
echo "Jetty started"
}
(cd backend/webapp/ && npm start &)
(cd backend/webapp/ && yarn start &)
waitJetty
(cd frontend/ && npm start)
(cd frontend/ && yarn start)
......@@ -86,15 +86,15 @@
<artifactId>frontend-maven-plugin</artifactId>
<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>
</execution>
<execution>
<id>npm install</id>
<id>yarn install</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<phase>compile</phase>
<configuration>
......@@ -102,9 +102,9 @@
</configuration>
</execution>
<execution>
<id>npm test</id>
<id>yarn test</id>
<goals>
<goal>npm</goal>
<goal>yarn</goal>
</goals>
<phase>integration-test</phase>
<configuration>
......
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