Skip to content

Conversation

@graingert
Copy link
Contributor

This doesn't include the manual media changes

.travis.yml Outdated
secure: fEP9K7y0ZF9fRvQEUN4kgPXQEZvi3Cx3ikUebG2UM/2uhcaUQm0+KpgZ2S+lvOTYcBnNgzPzFsVIZMcVcTxwIKuQDEMq9y2eop2hnisb9KXsIm9qPYSzOnRm74VuiOt4hNOZMe0qVBK2cO3vC9NDXuzdI8A0JynJhthfl4t+kFM=
- provider: npm
email: [email protected]
api_key: YOUR_SECURE_API_KEY_HERE
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@codingjoe you'll need to add your npm credentials here

Copy link
Collaborator

Choose a reason for hiding this comment

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

I am pretty sure you need to duplicate the on: section for both providers.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I'll add a key when I merge.

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'm not sure

Copy link
Collaborator

@codingjoe codingjoe 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 I did have a couple questions, but the feature itself looks fine. Good that we talked about it :)

.travis.yml Outdated
secure: fEP9K7y0ZF9fRvQEUN4kgPXQEZvi3Cx3ikUebG2UM/2uhcaUQm0+KpgZ2S+lvOTYcBnNgzPzFsVIZMcVcTxwIKuQDEMq9y2eop2hnisb9KXsIm9qPYSzOnRm74VuiOt4hNOZMe0qVBK2cO3vC9NDXuzdI8A0JynJhthfl4t+kFM=
- provider: npm
email: [email protected]
api_key: YOUR_SECURE_API_KEY_HERE
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am pretty sure you need to duplicate the on: section for both providers.

.travis.yml Outdated
secure: fEP9K7y0ZF9fRvQEUN4kgPXQEZvi3Cx3ikUebG2UM/2uhcaUQm0+KpgZ2S+lvOTYcBnNgzPzFsVIZMcVcTxwIKuQDEMq9y2eop2hnisb9KXsIm9qPYSzOnRm74VuiOt4hNOZMe0qVBK2cO3vC9NDXuzdI8A0JynJhthfl4t+kFM=
- provider: npm
email: [email protected]
api_key: YOUR_SECURE_API_KEY_HERE
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'll add a key when I merge.

@@ -1,4 +1,15 @@
(function ($) {
/* global define, jQuery */
(function (factory) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

I am not so firm with modern day JavaScript. Why do we need all this boilerplate?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's one for amd, one for commonjs and one for browser globals. It's known as UMD

Copy link
Collaborator

Choose a reason for hiding this comment

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

You gotta give me more. Consider me a JS noob. Is that really needed or just a nice to have?

I really want to keep this simple... I guess you know why ;)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it's so it works with webpack, require.js and as a django static asset

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add a comment where the wrapper snippet is coming from. That way future contributors will know whats up.

@@ -0,0 +1,11 @@
#!/usr/bin/env python3
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this file omited in the setuptools package?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should be

Copy link
Collaborator

Choose a reason for hiding this comment

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

haha, I'll double check when I merge ;)

import os

def main():
with open('package.json', 'r+') as f:
Copy link
Collaborator

Choose a reason for hiding this comment

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

You should open this writable, should you not?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's what 'r+' means I'm told

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, sorry. You need read/write, makes sense.

@graingert
Copy link
Contributor Author

@codingjoe any update on this?

@codingjoe
Copy link
Collaborator

@graingert did you give me access yet for the npm package?

@graingert
Copy link
Contributor Author

@codingjoe what's your npm username, again?

@codingjoe
Copy link
Collaborator

@graingert codingjoe ;)

@graingert
Copy link
Contributor Author

@codingjoe done

@graingert
Copy link
Contributor Author

@codingjoe any update on this?

@codingjoe codingjoe merged commit de7e7a1 into applegrew:master Aug 22, 2018
@codingjoe
Copy link
Collaborator

Travis is currently not working. I will tag this once it's working again and check if it releases correctly. If I forget please ping me again ;)

@graingert graingert deleted the publish-umd-to-npm branch August 22, 2018 10:16
@graingert
Copy link
Contributor Author

@codingjoe awesome thanks

@codingjoe
Copy link
Collaborator

Ah your commit actually broke the travis config. I missed that. I should be working now. I am just waiting for the deploy to succeed.

@codingjoe
Copy link
Collaborator

codingjoe commented Aug 22, 2018

Released in 6.3.0

@codingjoe
Copy link
Collaborator

ok @graingert, I think you will need to put a bit more love into this
https://travis-ci.org/applegrew/django-select2/jobs/419135968

@graingert
Copy link
Contributor Author

graingert commented Aug 22, 2018 via email

@codingjoe
Copy link
Collaborator

@graingert I can't wait for your pull-request 👍

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