-
Notifications
You must be signed in to change notification settings - Fork 38
WIP: Relates to #81. Update to Electron v3.1.0 #90
Changes from 1 commit
1bd8d8f
8b347e0
73c2042
2e2d809
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
* Update to Electron v3.1.0 - https://github.com/electron/electron/releases * Update Readme * Update dependencies versions * Add .nvmrc
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 10.11.0 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,6 +31,66 @@ And below are the lower-level packages, used internally, or by advanced users. | |
| | [`@parity/contracts`](/packages/contracts) | [](https://www.npmjs.com/package/@parity/contracts) | [](/packages/contracts#readme) | Parity's [contracts](https://github.com/parity-contracts) as ES6 classes. | | ||
| | [`@parity/electron`](/packages/electron) | [](https://www.npmjs.com/package/@parity/electron) | [](/packages/electron#readme) | Control the Parity Ethereum node from Electron. | | ||
|
|
||
| ### Contributing | ||
|
|
||
| #### Dependencies | ||
|
|
||
| Install at least `yarn` version 1.4.2 and [Node.js >=10.11.0](https://nodejs.org/en/) | ||
|
|
||
| ``` | ||
| yarn --version // Should be at least 1.4.2 | ||
| ``` | ||
|
|
||
| #### Tests | ||
|
|
||
| ``` | ||
| export NPM_TOKEN=''; yarn test | ||
|
||
| ``` | ||
|
|
||
| #### Build | ||
|
|
||
| ``` | ||
| export NPM_TOKEN=''; yarn build | ||
|
||
| ``` | ||
|
|
||
| #### Maintenance | ||
|
|
||
| 1. Fork the repo | ||
|
|
||
| 2. Clone your fork | ||
| ``` | ||
| git clone https://github.com/<INSERT_YOUR_GITHUB_USERNAME>/js-libs | ||
| ``` | ||
|
|
||
| 3. Check outdated dependencies | ||
|
|
||
| ``` | ||
| npm outdated | ||
|
||
| ``` | ||
|
|
||
| 4. Create a branch and update any dependencies that it indicates are out of date. | ||
|
||
|
|
||
| ``` | ||
| git checkout -b <INSERT_YOUR_BRANCH_NAME> | ||
| ``` | ||
|
|
||
| 5. Run tests, linting, and build | ||
|
|
||
| ``` | ||
| export NPM_TOKEN=''; yarn test; yarn lint; yarn build | ||
|
||
| ``` | ||
|
|
||
| 6. Push the branch to your fork of the repo | ||
|
|
||
| 7. Integrate the updated library as a dependency. Example: If you are using the 'electron' package in another project, then update the package.json file to temporarily use your branch instead of the public NPM registry version | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @ltfschoen I understand now where your errors come from. I would like to remove this step 7: For The reason is:
However, when you
Jaco and I used to try to do this method above, however there's always some troubles here and there in the "hopefully" step. That's why I prefer to remove it. Some alternative solutions:
|
||
|
|
||
| ``` | ||
| yarn add https://github.com/<INSERT_YOUR_GITHUB_USERNAME>/js-libs.git#<INSERT_YOUR_BRANCH_NAME> | ||
| ``` | ||
|
|
||
| 8. Create a pull request from your fork of the repo to the upstream master branch | ||
|
|
||
|
|
||
| ## License | ||
|
|
||
| All Parity's JavaScript libraries are open-source software [licensed as MIT](/LICENSE). | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,21 +21,21 @@ | |
| "test": "jest" | ||
| }, | ||
| "dependencies": { | ||
| "async-retry": "^1.2.1", | ||
| "async-retry": "^1.2.3", | ||
| "axios": "^0.18.0", | ||
| "checksum": "^0.1.1", | ||
| "command-exists": "^1.2.6", | ||
| "debug": "^4.1.0", | ||
| "electron-dl": "^1.11.0", | ||
| "command-exists": "^1.2.8", | ||
| "debug": "^4.1.1", | ||
| "electron-dl": "^1.12.0", | ||
| "promise-any": "^0.2.0", | ||
| "sntp": "^3.0.1" | ||
| "sntp": "^3.0.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/async-retry": "^1.2.1", | ||
| "@types/checksum": "^0.1.30", | ||
| "electron": "^2.0.2" | ||
| "electron": "^3.1.0" | ||
| }, | ||
| "peerDependencies": { | ||
| "electron": "^2.0.3" | ||
| "electron": "^3.1.0" | ||
|
||
| } | ||
| } | ||
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.
Why is this needed actually? Is there a package we use that require at least this version of node? Is it redundant with what you added in package.json?
Uh oh!
There was an error while loading. Please reload this page.
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.
In the Electron Release Notes for v4.0.0 it says:
And on this page they mention no more support for 10.9 in Electron v4 https://electronjs.org/blog/electron-4-0#no-more-macos-109-support
So I've assumed that v3.1.0 would have the same requirement. However the release notes for v4.0.1 or v3.1.0 don't mention a minimum version requirement https://github.com/electron/electron/releases
We could change it to
10.10.0instead