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

More updates and fixes #3

Closed
wants to merge 20 commits into from
Closed

More updates and fixes #3

wants to merge 20 commits into from

Conversation

kosmiq
Copy link

@kosmiq kosmiq commented Oct 18, 2016

This includes all updates up to Sage 8.5.0 about a month ago, all the fixes from @chuckn246 (plus refactored some of his code with proper attribute escapes, different PHP style, better alignment with WordPress-Core code style plus made more strings translatable, adds namespaces).

So it works with newer versions of node, incorporates composer and more.

Many thanks to @chuckn246 for the hard word on the features. Sorry I didn't pulled your changes correctly into my fork instead of this..

Commented out flex-grid since Zurb recommends using only one at a time.

Tor Raswill added 20 commits October 18, 2016 00:51
updated version number
A lot has happened with node compatibility and what works and not.
Pulled deps from sage 8.5.0 and updated package.json
new devdeps in package.json requires some changes in the gulpfile.
Removed ”browser” from browser sync and opens the default browser
instead.
was added to Sage in 8.4.1. Added here as well.
pulled the changelog from sage 8.5.0 and added the changes as well.
set foundation-everything(true) to use flex-grid instead of the normal
grid. Easier to remember now.
added vendor to gitignore like later sage version using composer.json.
will be removed later on. Added to verify functionality for now
commented out row colours
instead of using everything always we add each file to allow easier
removal of unused components
rewritten with attribute escapes, sanitation and alternate php style.
Added namespace
added namespace, fixed tabbing and intents.
fixed strings to translatable, fixed spaces according to WordPress-Core
code style. Most of it anyway.
@christianmagill
Copy link

Thanks for your work on this! When including the individual js files as you have, shouldn't Babel be used to transpile during the Gulp task?

https://foundation.zurb.com/sites/docs/javascript.html#babel-required

@kosmiq
Copy link
Author

kosmiq commented Dec 19, 2016

You might be right. I only tested in modern browsers and meant to revisit it sooner than I have. If you have the time, please try and report back. Otherwise I'll keep it in mind when I get around to update it to foundation 6.3 that was released a few days ago.

@christianmagill
Copy link

Cool. If I get a few to work on it I'll post back here. Please do the same.

Also it looks like foundation.core.js and foundation.util.mediaQuery.js should be loaded first.

https://foundation.zurb.com/sites/docs/javascript.html#file-structure

@kosmiq
Copy link
Author

kosmiq commented Dec 19, 2016

I'll make sure to mirror the JS inclusion order used in 6.3 when I get to it. Thanks for noticing it!

@kosmiq
Copy link
Author

kosmiq commented Dec 19, 2016

@christianmagill it just hit me: do we need babel translation if we include plugins from /dist folder? I'm not sure what's required since we do not really build from source. I'll have to do some digging.

@christianmagill
Copy link

I'm not sure. Would be nice to have es6 available though.

@kosmiq
Copy link
Author

kosmiq commented Dec 20, 2016

So I took a look, and files within foundation-sites/dist/js does not require babel. If we however use files from foundation-sites/js we would absolutely need it.

But I agree that we should have babel there anyway, so it's easy to use ES6 whenever.

@christianmagill
Copy link

Good to know.

@kosmiq
Copy link
Author

kosmiq commented Jan 23, 2017

Since Beta 2 of Sage 9 adds the option to select Foundation as framework I will be abandoning this. I can't justify investing the time since an official solution has arrived (altough in beta).

@kosmiq kosmiq closed this Jan 23, 2017
@christianmagill
Copy link

Sounds good. I was excited to see the option appear. Now I'm just hoping blade becomes an option as well.

@kosmiq
Copy link
Author

kosmiq commented Jan 24, 2017

Blade is actually there since beta 1. Some issues with woocommerce but they're working on it.

https://github.com/roots/sage/releases/tag/9.0.0-beta.1
roots#1765
roots#1777

I'm reluctant to use beta versions for serious projects but really looking forward to the first real release. Whenever that happens.

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