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

fix(initializer): set electron version to be float in init step #187

Merged
merged 2 commits into from
Apr 2, 2017

Conversation

MarshallOfSound
Copy link
Member

@MarshallOfSound MarshallOfSound commented Apr 2, 2017

  • I have read the contribution documentation for this project.
  • I agree to follow the code of conduct that this project follows, as appropriate.
  • The changes are appropriately documented (if applicable).
  • The changes have sufficient test coverage (if applicable).
  • The testsuite passes successfully on my local machine (if applicable).

Summarize your changes:

/cc @malept

Copy link

@yavorsky yavorsky left a comment

Choose a reason for hiding this comment

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

@@ -73,7 +73,7 @@ export default async (dir, lintStyle) => {

for (const profile of ['development', 'production']) {
const envTarget = content.env[profile]['application/javascript'].presets.find(x => x[0] === 'env');
envTarget[1].targets.electron = electronPrebuilt.version;
envTarget[1].targets.electron = parseFloat(electronPrebuilt.version.split('.').slice(0, 2).join('.'));
Copy link

Choose a reason for hiding this comment

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

just parseFloat(electronPrebuilt.version) will be enough?

Copy link
Member Author

Choose a reason for hiding this comment

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

@yavorsky Afaik it only allows the major.minor syntax, not a patch version. Floats can only have one decimal point 👍

@MarshallOfSound
Copy link
Member Author

@yavorsky That tmpl file is overridden in the code I have changed in this commit 👍 No need to change that preset value as it never reaches a inited project.

@yavorsky
Copy link

yavorsky commented Apr 2, 2017

just for clarity 🙂

@MarshallOfSound MarshallOfSound merged commit a4fa4bf into master Apr 2, 2017
@MarshallOfSound MarshallOfSound deleted the babel-env-float branch April 2, 2017 22:08
dsanders11 pushed a commit that referenced this pull request Jan 14, 2023
fix: use the latest version of Forge v6 for Fiddle Forge actions
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.

None yet

3 participants