Skip to content

Cleanup init - #784

Merged
fregante merged 7 commits into
masterfrom
init-clean
Oct 30, 2017
Merged

fregante merged 7 commits into
masterfrom
init-clean

Conversation

@fregante

@fregante fregante commented Oct 30, 2017 •

Copy link
Copy Markdown
Member

This is mostly moving code around. If you read this code, do commit by commit, possibly without whitespace.

@fregante
fregante merged commit 306903c into master Oct 30, 2017
@fregante
fregante deleted the init-clean branch October 30, 2017 06:49
Comment thread src/content.js
.css('display', 'none');
});
}
}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Move it to its own file? Would be nice to eventually reduce content.js to just be a router/delegator.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

That was the idea on my first refactor, but I'm afraid that we'd have too many 5-line files on the libs folder. Surely a lot of the code we have now in content is long enough to be in their own file.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

but I'm afraid that we'd have too many 5-line files on the libs folder

I don't see that as a problem.


I also think we should create a separate directory for the features. Now they're mixed with utils, icons, domify, etc.

@fregante fregante Oct 30, 2017 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I might do that after we close a few PRs 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants