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

JSfiddle/CodePen examples? #28

Closed
cjh9 opened this issue Dec 6, 2017 · 4 comments
Closed

JSfiddle/CodePen examples? #28

cjh9 opened this issue Dec 6, 2017 · 4 comments

Comments

@cjh9
Copy link

cjh9 commented Dec 6, 2017

Looks like an awesome library, would it be possible to provide some "hello-world" examples in CodePen or JSFiddle so you could experiment a little? Also a minified version on cdnjs that works directly in the browser?

@adamhaile
Copy link
Owner

adamhaile commented Dec 13, 2017

I'd love to get live examples onto the homepage but just haven't had the time to figure out a good way to do that. As an experimental start, here's the example from the S homepage running in CodePen. Any advice or reactions are welcome :)

https://codepen.io/adamhaile/pen/ppvdGa?editors=0010

@adamhaile
Copy link
Owner

I added the CodePen example to the readme.

As for a browser version, I have something coming in this regard. It's a small bundle of S, Surplus, SArray and a couple other utilities, for building small "toy" applications without any compiler step. It needs to be updated for 0.5 and then I'll post.

@ismail-codar
Copy link
Contributor

This demo is currently not working.

@adamhaile
Copy link
Owner

Thanks Ismail! Weird issue: somehow a newer version of rollup got into the build for surplus-mixin-data, changing the way the exports worked in UMD. Fixed it by reinstalling all node_modules and rebuilding.

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

No branches or pull requests

3 participants