Skip to content
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

[IWJ-17] Migrate to vue-cli3 #9

Merged
merged 37 commits into from
Jun 5, 2018
Merged

[IWJ-17] Migrate to vue-cli3 #9

merged 37 commits into from
Jun 5, 2018

Conversation

oimou
Copy link
Contributor

@oimou oimou commented May 23, 2018

Ticket

https://soramitsu.atlassian.net/browse/IWJ-17

Description

  • Migrate packages to:
    • vue-cli 3
    • electron 2
    • webpack 4
  • Upgrade iroha-lib to emscripten version 🎉

How to check

  1. yarn to install new dependencies.
  2. yarn rebuild to rebuild native modules
  3. check yarn serve:electron yarn build:electron

Screenshot

I tested it with mac, node v10.3.0
screen shot 2018-05-25 at 13 46 30

For debuggability, "Version" menu shows a commit hash which the app was built from.
screen shot 2018-05-31 at 15 57 51

@oimou oimou force-pushed the feature/IWJ-17-vue-cli-3 branch from eade82e to 89263dc Compare May 23, 2018 08:47
oimou added 9 commits May 24, 2018 14:57
in reference to package.json which is created by vue-cli with "with sass" option
because electron-builder tries to rebuild native module, while iroha-lib doesn't have a corresponding binary yet.
in order to load iroha-util.js as is.
According to the comment below, transform-runtime adds `import` to each file and makes it unable to use `module.exports`.
webpack/webpack#4039 (comment)
@oimou oimou force-pushed the feature/IWJ-17-vue-cli-3 branch from bba435b to 9f6e64d Compare May 25, 2018 08:13
@oimou oimou changed the title [WIP][IWJ-17] Migrate to vue-cli3 [IWJ-17] Migrate to vue-cli3 May 25, 2018
@oimou oimou requested a review from laSinteZ May 25, 2018 08:52
@@ -1,24 +1,20 @@
import Vue from 'vue'
import axios from 'axios'
import '@babel/polyfill'
Copy link
Contributor Author

@oimou oimou May 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In order to use Promise.prototype.finally. This will be replaced with individual requires by Babel. https://github.com/babel/babel/tree/master/packages/babel-preset-env#usebuiltins-entry

</head>
<body>
<noscript>
<strong>We're sorry but myproject3 doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

myproject3 ;)

package.json Outdated
@@ -10,99 +10,95 @@
"license": null,
Copy link
Contributor

@laSinteZ laSinteZ May 31, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(wrong line, but)
"productName": "Iroha Wallet" ?
this way it will have a correct name in window title/applications folder.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, maybe its time to set version to 0.1.0 :D

Copy link
Contributor

@laSinteZ laSinteZ left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change those small things and we are green to go :)

package.json Outdated
@@ -10,99 +10,95 @@
"license": null,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, maybe its time to set version to 0.1.0 :D

package.json Outdated
"webpack-merge": "^4.1.0"
"@babel/polyfill": "^7.0.0-beta.48",
"@babel/preset-env": "^7.0.0-beta.47",
"@vue/cli-plugin-babel": "^3.0.0-beta.10",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe its time to update all of them to beta.15? :3

LICENSE Outdated
same "printed page" as the copyright notice for easier
identification within third-party archives.

Copyright [yyyy] [name of copyright owner]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we should keep License :) (And fill those blanks with actual year and company name).

@oimou oimou merged commit c004048 into develop Jun 5, 2018
@oimou oimou deleted the feature/IWJ-17-vue-cli-3 branch June 5, 2018 05:48
@oimou oimou mentioned this pull request Jun 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants