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

Feature/webpack #212

Merged
merged 11 commits into from
Aug 15, 2018
Merged

Feature/webpack #212

merged 11 commits into from
Aug 15, 2018

Conversation

RobbieTheWagner
Copy link
Member

No description provided.

bm2u and others added 7 commits August 14, 2018 17:09
* add editorconfig for consistent coding styles

* Set default severity for stylelint so that the build- and linting process does not fail

* use relative paths

* usage of inline maps for welcome page styles

* using webpack alias to resolve popper.js

* webpack config for all scss and js sources
- usage of browser-sync to have live-reload
- stylelint inside build
- copy assets (popper.js) with CopyWebpackPlugin

* adjust webpack build scripts
- remove webpack-dev-server and use watch with browser-sync instead
- install missing dependencies for webpack build

* remove unwanted property to make build fail on lin violations

* expand css output for welcome page styles

* - revert index.html (need these paths for when we deploy to gh-pages)

* insert final new line

* enforce styles with eslint and stylelint, so we should not need this file
/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9yd3dhZ25lci9zaGlwc2hhcGUvc2hlcGhlcmQvZG9jcy93ZWxjb21lL3Nhc3Mvd2VsY29tZS5zY3NzIiwiZG9jcy93ZWxjb21lL3Nhc3Mvd2VsY29tZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUlBOztFQUVFLGFBQVk7RUFDWixpQkFBZ0I7Q0FDakI7O0FBRUQ7RUFDRSwwQkFBa0M7RUFDbEMsNERBQStFO0VBQy9FLDBEQUF5RDtFQUN6RCxVQUFTO0NBQ1Y7O0FBRUQ7RUFDRSwwQkFoQm1CO0VBaUJuQixlQWpCbUI7RUFrQm5CLGdCQUFlO0VBQ2Ysc0JBQXFCO0VBQ3JCLGlCQUFnQjtFQUNoQixpQkFBZ0I7RUFDaEIsb0JBQW1CO0VBQ25CLG1CQUFrQjtFQUNsQixvQkFBbU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C5oZXJvLWlubmVyID4gKiB7XG4gIG9wYWNpdHk6IDE7XG4gIHBvaW50ZXItZXZlbnRzOiBhdXRvO1xufVxuXG4uaGVyby1vdXRlciAuaGVyby1pbm5lciAuc2hlcGhlcmQtdGFyZ2V0LnNoZXBoZXJkLWVuYWJsZWQge1xuICBvcGFjaXR5OiAxO1xuICBwb2ludGVyLWV2ZW50czogYXV0bztcbn1cblxuLmhlcm8tb3V0ZXIgLmhlcm8tZm9sbG93dXAge1xuICBwYWRkaW5nLXRvcDogMjBweDtcbn1cblxuLnNoZXBoZXJkLWVsZW1lbnQuc2hlcGhlcmQtdHJhbnNwYXJlbnQtdGV4dCAuc2hlcGhlcmQtdGV4dCB7XG4gIGNvbG9yOiAjM2I3NDRmO1xufVxuXG4uc2hlcGhlcmQtZWxlbWVudCAuc2hlcGhlcmQtY29udGVudCB7XG4gIG1heC13aWR0aDogMTAwJTtcbiAgd2lkdGg6IDQwMHB4O1xufVxuXG4uc2hlcGhlcmQtZWxlbWVudCAuc2hlcGhlcmQtY29udGVudCBhIHtcbiAgY29sb3I6IFwiaW5oZXJpdFwiO1xufVxuXG4uc2hlcGhlcmQtZWxlbWVudCAuc2hlcGhlcmQtY29udGVudCBmb290ZXIgLnNoZXBoZXJkLWJ1dHRvbnMgbGkgLnNoZXBoZXJkLWJ1dHRvbi1leGFtcGxlLXByaW1hcnkge1xuICBiYWNrZ3JvdW5kOiAjNTVhODkyO1xufVxuXG5wcmUge1xuICBib3JkZXI6IDFweCBzb2xpZCByZ2JhKDAsIDAsIDAsIDAuMTUpO1xuICBsaW5lLWhlaWdodDogMS40ZW07XG59XG4iXX0= */
Copy link
Member

Choose a reason for hiding this comment

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

inline souremap?

@@ -0,0 +1,71 @@
export class Evented {
constructor(/* options = {}*/) {
Copy link
Member

Choose a reason for hiding this comment

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

if we're not using constructors or static methods, why use a class? I'd say export a default object.

}

}

class Step extends Evented {
Copy link
Member

Choose a reason for hiding this comment

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

nvm, I guess this extension is the reason for now. Should consider that overall later.


export function matchesSelector(el, sel) {
let matches;
if (!isUndefined(el.matches)) {
Copy link
Member

Choose a reason for hiding this comment

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

TODO: switch case

Copy link
Member

@chuckcarpenter chuckcarpenter left a comment

Choose a reason for hiding this comment

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

Comments for future TODOs mostly. LGTM!

@chuckcarpenter
Copy link
Member

@RobbieTheWagner RobbieTheWagner merged commit 0e1e743 into master Aug 15, 2018
@RobbieTheWagner RobbieTheWagner deleted the feature/webpack branch August 15, 2018 11:56
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.

3 participants