Package.json updates: Windows & yarn #240

Merged
Wick merged 7 commits from package.json-updates into master 2019-01-28 15:52:55 +01:00
Wick commented 2019-01-25 21:08:59 +01:00 (Migrated from github.com)

Some improvements (mostly) for Windows developers:

Expanded list of supported engines to include versions up to the latest version of node (gives better support for yarn package manager as a bonus).

Escape quotes in the npm run format command. This will make the command run without error in Windows environments (should be fine for other OSes as well I think?) .

Added lockfile for yarn to get consistent installs across machines. Reference: https://yarnpkg.com/lang/en/docs/yarn-lock/

Some improvements (mostly) for Windows developers: Expanded list of supported engines to include versions up to the latest version of node (gives better support for yarn package manager as a bonus). Escape quotes in the ```npm run format``` command. This will make the command run without error in Windows environments (should be fine for other OSes as well I think?) . Added lockfile for yarn to get consistent installs across machines. Reference: https://yarnpkg.com/lang/en/docs/yarn-lock/
NetOpWibby commented 2019-01-25 22:39:48 +01:00 (Migrated from github.com)

@Wick Could you update the Installation section of the README with yarn instructions? I don't personally use it.

@Wick Could you update the Installation section of the README with yarn instructions? I don't personally use it.
NetOpWibby (Migrated from github.com) reviewed 2019-01-25 22:40:04 +01:00
@ -71,3 +71,3 @@
"engines": {
"node": "10.2.x"
"node": ">=10.2 <10.15.1"
},
NetOpWibby (Migrated from github.com) commented 2019-01-25 22:40:04 +01:00

This looks confusing, what does it do?

This looks confusing, what does it do?
NetOpWibby (Migrated from github.com) reviewed 2019-01-25 22:40:28 +01:00
NetOpWibby (Migrated from github.com) commented 2019-01-25 22:40:28 +01:00

Does the second command in this line need to escaped too?

Does the second command in this line need to escaped too?
Wick (Migrated from github.com) reviewed 2019-01-26 13:44:14 +01:00
Wick (Migrated from github.com) commented 2019-01-26 13:44:14 +01:00

Not needed, runs just fine after escaping only the eslint command. :)

Not needed, runs just fine after escaping only the eslint command. :)
Wick (Migrated from github.com) reviewed 2019-01-26 15:35:39 +01:00
@ -71,3 +71,3 @@
"engines": {
"node": "10.2.x"
"node": ">=10.2 <10.15.1"
},
Wick (Migrated from github.com) commented 2019-01-26 15:35:39 +01:00

For regular users using npm this is just an indicator on which versions of node that can run this project fine.
If you use an alternative dependency manager, like Yarn, you'll get an error if your node version doesn't match the ones listed under "engines".
My change only extends the list of working node versions to include the versions of node between the last set version(10.2.x) and the latest recommended version listed on https://nodejs.org/en/ (which I use and it works without problems).

Not really an important change, want me to revert it?

For regular users using npm this is just an indicator on which versions of node that can run this project fine. If you use an alternative dependency manager, like Yarn, you'll get an error if your node version doesn't match the ones listed under "engines". My change only extends the list of working node versions to include the versions of node between the last set version(10.2.x) and the latest recommended version listed on https://nodejs.org/en/ (which I use and it works without problems). Not really an important change, want me to revert it?
NetOpWibby (Migrated from github.com) reviewed 2019-01-26 17:27:31 +01:00
@ -71,3 +71,3 @@
"engines": {
"node": "10.2.x"
"node": ">=10.2 <10.15.1"
},
NetOpWibby (Migrated from github.com) commented 2019-01-26 17:27:31 +01:00

No it's fine, since yarn is being added anyway.

No it's fine, since yarn is being added anyway.
Wick commented 2019-01-28 03:00:53 +01:00 (Migrated from github.com)

Updated the readme in my latest commit, let me know if I can improve it in any way. :)

I know npm supports lock-files as well nowadays, but noticed it is explicitly set to not generate one in .npmrc. So I only mentioned the lock-file for Yarn for now.

Updated the readme in my latest commit, let me know if I can improve it in any way. :) I know npm supports lock-files as well nowadays, but noticed it is explicitly set to not generate one in [.npmrc](https://github.com/lbryio/lbry.tech/blob/master/.npmrc). So I only mentioned the lock-file for Yarn for now.
NetOpWibby commented 2019-01-28 15:52:37 +01:00 (Migrated from github.com)

That's cool. I've had more negative than positive experiences with lockfiles so I disabled them.

That's cool. I've had more negative than positive experiences with lockfiles so I disabled them.
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry.tech#240
No description provided.