-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switched development environment to Yarn #1345
Conversation
Why did it change I don't understand yet how and when cc @ma2ciek |
.travis.yml
Outdated
script: | ||
- npm t -- --reporter=dots | ||
- npm run docs:api -- --validate-only | ||
- yarn run test --reporter=dots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can it be like this?
- yarn run test --reporter=dots | |
- yarn test --reporter=dots |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yarn
allows to do it. But IMO it might be risky to do it in .travis
file.
Changing the |
.travis.yml
Outdated
- npm t -- --reporter=dots | ||
- npm run docs:api -- --validate-only | ||
- yarn run test --reporter=dots | ||
- yarn run docs:api --validate-only |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also no need to run
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually, I made a couple of suggestions here in this PR, but it'll be easier to change this automatically in all places. s/yarn run/yarn
seems to work for me.
@@ -102,7 +100,7 @@ lrwxr-xr-x 1 p staff 25 31 Jan 10:37 ckeditor5-engine -> ../../../ckedito | |||
If everything worked correctly, you should be able to run some tests: | |||
|
|||
```bash | |||
npm run test -- --files=core | |||
yarn run test --files=core |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yarn run test --files=core | |
yarn test --files=core |
## Running tests | ||
|
||
In order to run tests you need to use the `test` and `manual` tasks. | ||
|
||
```bash | ||
npm test -- --watch --coverage --source-map --files=engine | ||
yarn run test --watch --coverage --source-map --files=engine |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yarn run test --watch --coverage --source-map --files=engine | |
yarn test --watch --coverage --source-map --files=engine |
IMO using |
Task ends with the error code but there was no error. But maybe it should be reported to Yarn. |
OK, good points. |
I miss the old good I think that it will boil down to executing:
|
Sounds good. |
Also, we need to update this in
|
I left 2 minor comments in https://github.com/ckeditor/ckeditor5-dev/pull/453/files Other than that, I'd love if we could return to the previous |
Done. |
Suggested merge commit message (convention)
Other: Switched development environment to Yarn. Closes #1214.
Additional information
ckeditor5/t/1214
that contains changes forckeditor5-*
packages (https://github.com/ckeditor/ckeditor5-font/compare/ckeditor5/t/1214)Side note: Indentations in
.travis.yml
have changed once again because I used mgit and a script (specified below) for modifying the configuration file.