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

PR from local brach to run the CI #936 #944

Merged
merged 4 commits into from
Dec 23, 2018
Merged

PR from local brach to run the CI #936 #944

merged 4 commits into from
Dec 23, 2018

Conversation

kof
Copy link
Member

@kof kof commented Dec 23, 2018

No description provided.

This provides a completely bundled distribution, ready importing from CDNs like unpkg.com for use in sandboxes like Codepen.  It allows this code to work:

```typescript
import { create as createJSS } from 'https://unpkg.com/jss';
```

The PR is a work-in-progress, but I'd rather start a conversation with an example than with prose.  As it is, I can't get `sizeSnapshot` to work with the bundled version.

I also wonder how best to handle plugins/presets.  The easiest options would be to add `unpkg` entry points to each `package`, and force authors to use multiple imports:

```typescript
import { create as createJSS } from 'https://unpkg.com/jss';
import createDefaultJSSPreset from 'https://unpkg.com/jss-preset-default';
```

I wonder what the best way to produce a batteries-included bundle is.  Perhaps there should be another bundle `jss-all` that exports all the other packages.  Then usage would be:

```typescript
import * as jssAll from 'https://unpkg.com/jss-all';

const jss = jssAll.create(jssAll.preset());
```
@kof kof self-assigned this Dec 23, 2018
@kof kof merged commit 0efabf7 into master Dec 23, 2018
@kof
Copy link
Member Author

kof commented Dec 23, 2018

🎉🎉🎉

@kof kof deleted the appsforartists-unpkg branch December 23, 2018 12:16
@kof kof mentioned this pull request Dec 23, 2018
6 tasks
bhupinderbola pushed a commit to bhupinderbola/jss that referenced this pull request Sep 17, 2019
* Add `unpkg` key to package.json

This provides a completely bundled distribution, ready importing from CDNs like unpkg.com for use in sandboxes like Codepen.  It allows this code to work:

```typescript
import { create as createJSS } from 'https://unpkg.com/jss';
```

The PR is a work-in-progress, but I'd rather start a conversation with an example than with prose.  As it is, I can't get `sizeSnapshot` to work with the bundled version.

I also wonder how best to handle plugins/presets.  The easiest options would be to add `unpkg` entry points to each `package`, and force authors to use multiple imports:

```typescript
import { create as createJSS } from 'https://unpkg.com/jss';
import createDefaultJSSPreset from 'https://unpkg.com/jss-preset-default';
```

I wonder what the best way to produce a batteries-included bundle is.  Perhaps there should be another bundle `jss-all` that exports all the other packages.  Then usage would be:

```typescript
import * as jssAll from 'https://unpkg.com/jss-all';

const jss = jssAll.create(jssAll.preset());
```

* Add jss-starter-kit

* Fixed grammar in warning

* update snapshot
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