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

♻️ Rewrite in TypeScript #4

Merged
merged 12 commits into from
Jan 8, 2019
Merged

♻️ Rewrite in TypeScript #4

merged 12 commits into from
Jan 8, 2019

Conversation

Kerrick
Copy link
Contributor

@Kerrick Kerrick commented Nov 28, 2018

No description provided.

Copy link
Contributor

@maxbogue maxbogue left a comment

Choose a reason for hiding this comment

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

This is awesome! I love to see more Typescript. Had a bunch of comments, but they're mostly nits and little things.

src/message.ts Show resolved Hide resolved
tslint.json Show resolved Hide resolved
tslint.json Show resolved Hide resolved
webpack.config.js Outdated Show resolved Hide resolved
dist/amd/talker.min.js Show resolved Hide resolved
src/strings.ts Outdated Show resolved Hide resolved
src/index.ts Outdated Show resolved Hide resolved
src/utils/manipulable-promise.ts Show resolved Hide resolved
src/message.ts Outdated Show resolved Hide resolved
src/message.ts Outdated Show resolved Hide resolved
Co-Authored-By: Kerrick <me@kerricklong.com>
Copy link
Contributor

@maxbogue maxbogue left a comment

Choose a reason for hiding this comment

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

One last little thing.

src/index.ts Outdated Show resolved Hide resolved
package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@maxbogue maxbogue left a comment

Choose a reason for hiding this comment

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

Cool I forgot to send these comments hours ago..

.nvmrc Outdated Show resolved Hide resolved
.prettierrc Outdated Show resolved Hide resolved
@@ -0,0 +1,53 @@
{
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe update this to match https://github.com/secondstreet/template-builder/blob/master/tslint.json? (If you add the prettier rule and plugin, update the lint-staged config to match as well.)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I agree it would be a good idea to unify but given that we have multiple tslint configs across multiple projects, I'd like to keep this PR concerned with what it currently is, and handle tslint config unification across everywhere as its own project.


module.exports = [
{
...commonConfig,
Copy link
Contributor

Choose a reason for hiding this comment

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

This works here because the two objects have distinct sets of keys, but consider switching to https://github.com/survivejs/webpack-merge for a more robust webpack config merging solution.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will definitely keep that in mind in case the keys ever become non-distinct.

package.json Outdated
"webpack-cli": "^3.1.2"
},
"dependencies": {
"es6-promise": "4.2.4"
Copy link
Contributor

Choose a reason for hiding this comment

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

Just noticed that this and a few of the ones in devDeps don't have a ^ in front of the version; any particular reason? Would be nice to have them all defined the same way if not. (I noticed because the yarn lock update in ss-embed was listing both ^4.2.4 and 4.2.4 for es6-promise separately).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

For devDependencies, it mostly came down to the ones I don't trust to follow semver. TypeScript introduces breaking changes outside of major version releases, so I didn't allow it (or tslint+friends) to auto-upgrade.

For dependencies, it's because this is a public library and I wanted to pin very specific dependency versions as "actually tested to work".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

After talking further offsite, let's go with ~ -- it should be safe enough.

@Kerrick Kerrick merged commit 798d6ce into master Jan 8, 2019
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