Skip to content

Commit 3973938

Browse files
committed
Remove yarn
No other functionality beside was NPM has is needed
1 parent 1063774 commit 3973938

File tree

7 files changed

+45983
-11482
lines changed

7 files changed

+45983
-11482
lines changed

.github/workflows/gradle.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ jobs:
1212
- uses: actions/setup-node@v1
1313
with:
1414
node-version: '10.x'
15-
- name: Install yarn
16-
run: cd client && yarn install
15+
- name: Install NPM
16+
run: cd client && npm install
1717
- name: Build provisioning-app FE
18-
run: cd client && yarn build:prod
18+
run: cd client && npm run build:prod
1919
- name: Set up JDK 11
2020
uses: actions/setup-java@v1
2121
with:

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,15 +183,15 @@ gradleLint {
183183
rules = ['unused-dependency']
184184
}
185185

186-
task yarnBuild(type:Exec) {
186+
task npmBuild(type:Exec) {
187187

188188
workingDir 'client'
189189

190190
//on windows:
191-
commandLine 'cmd', '/c', 'yarn', 'build'
191+
commandLine 'cmd', '/c', 'npm', 'run', 'build'
192192

193193
//on linux
194-
commandLine 'yarn', 'build'
194+
commandLine 'npm', 'run', 'build'
195195
}
196196

197-
bootRun.dependsOn yarnBuild
197+
bootRun.dependsOn npmBuild

client/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@ speed-measure-plugin*.json
3737
/coverage
3838
/libpeerconnection.log
3939
npm-debug.log
40-
yarn-error.log
4140
testem.log
4241
/typings
4342

client/README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,15 @@ To contribute to the further development, see section "Contributions welcome!" f
1616
- [Jest](https://jestjs.io/) as unit testing framework
1717
- [Prettier](https://prettier.io/) as pre-commit-hook
1818
- [SASS Lint](https://github.com/sasstools/sass-lint) to check scss files
19-
- [Yarn](https://yarnpkg.com/) as package manager
2019

2120
See package.json for up-to-date version information.
2221

2322
## Getting started
2423

2524
### 1. Install dependencies
2625

27-
- Install YARN globally: `npm install -g yarn`
28-
- Run `yarn`, this will install all dependencies
26+
- Eventually, install NPM first
27+
- Run `npm install` to install all dependencies
2928

3029
### 2. Configure API access from localhost
3130

@@ -37,14 +36,14 @@ Doing this there's no need to run Spring Boot locally.
3736

3837
### 3. Test the setup
3938

40-
Run `yarn start:dev` and when it succeeded open `http://localhost:4200` in your browser. You should see the Angular app starting. The app
39+
Run `npm run start:dev` and when it succeeded open `http://localhost:4200` in your browser. You should see the Angular app starting. The app
4140
will automatically reload if you change any of the source files.
4241

4342
## Development
4443

4544
### Dev Server
4645

47-
`yarn start:dev`: Starts a live reload dev server on `http://localhost:4200/`
46+
`npm run start:dev`: Starts a live reload dev server on `http://localhost:4200/`
4847

4948
### Dev Server with SSL localhost
5049

@@ -60,16 +59,16 @@ behaves correctly. Although not ideal, we discovered this as the most effortless
6059

6160
### Build
6261

63-
`yarn build`: The build artifacts will be stored in the `dist/` directory. `yarn build:prod` will be used for the pipeline.
62+
`npm run build`: The build artifacts will be stored in the `dist/` directory. `yarn build:prod` will be used for the pipeline.
6463

6564
### Tests
6665

67-
- Unittests: `yarn test` / `yarn test:watch`
66+
- Unittests: `npm run test` / `npm run test:watch`
6867
- E2E (Cypress): TODO
6968

7069
### Linting
7170

72-
- `yarn lint`: Linting for Typescript and SCSS files.
71+
- `npm run lint`: Linting for Typescript and SCSS files.
7372

7473
### Prettier
7574

0 commit comments

Comments
 (0)