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

chore: adding basic example of usage in raw scenario + moving integration tests #299

Merged
merged 6 commits into from
Feb 22, 2021

Conversation

matmalkowski
Copy link
Collaborator

Instead of having single e2e test suite, that limits to one electron configuration, I have added examples directory, that will hosts multiple different usage scenarios (and integrations with external libs). On top of it, it will run integration suite on all the examples, so it will be easier to spot any potential integration mistakes, especially when dealing with middleware config

@matmalkowski matmalkowski added v2 All issues related to v2 chore 🧹 labels Feb 21, 2021
@@ -72,6 +68,7 @@
"husky": "^4.3.0",
"jest": "^26.4.2",
"lint-staged": "^10.4.0",
"npm-run-all": "^4.1.5",
Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't look like you're using this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@hardchor run-p command is part of it, will use it to run all scripts for examples (I will add more examples folders in future)

Copy link
Contributor

@victorhqc victorhqc left a comment

Choose a reason for hiding this comment

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

Good job with the example :) I like it

.babelrc.js Show resolved Hide resolved
examples/basic/package.json Outdated Show resolved Hide resolved
const store = createStore(rootReducer, stateSyncEnhancer())

const globalCounterEl = document.getElementById('globalCounter')!
document
Copy link
Contributor

Choose a reason for hiding this comment

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

What about placing these in a function like so

const registerEvents = () => {
  ...
}

...
render()
registerEvents()

Just to add a bit of clarity.

@@ -0,0 +1,26 @@
{
"name": "@electron-webpack-examples/basic",
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick, but should this be @electron-redux-webpack-examples/basic?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, actually I didn't want webpack part here at all, must have included it by mistake, since it was giving me hard time :D It should be @electron-redux-examples/basic

Copy link
Contributor

@victorhqc victorhqc left a comment

Choose a reason for hiding this comment

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

Looks good to me 😄

@matmalkowski
Copy link
Collaborator Author

🎉 This PR is included in version 2.0.0-alpha.9 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Examples as code that showcase sample electron apps with usage (and integration with other libs)
3 participants