-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Olives: update to olives and emily 3.x, remove dependency on requirejs, Fixes #1029 #1242
Conversation
Thanks! I'll review this shortly. |
}, | ||
"scripts": { | ||
"build": "browserify ./js/app.js -o olives-todo.js", | ||
"watch": "watchify ./js/app.js -o olives-todo.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
package.json
files use 2 spaces indentation.
Works for me in firefox, but not in Chrome or Safari. Could you double-check it? |
Thanks, awesome! |
Thanks for your feedback, I'll update this later on today and will push a new commit. |
I converted the spaces to tabs and added the newlines at the bottom of each JS file, although they don't seem to appear in github. |
oh and btw, let me know if you want me to squash the commits before merging |
LGTM at the moment. No idea what was going on with the autofocus as atm it works fine for me as well :/ All tests pass for olives except the routing. Awesome work @podefr! If nobody objects I'm gonna land this one. |
"olives": "^3.0.5", | ||
"todomvc-app-css": "^1.0.1", | ||
"todomvc-common": "^1.0.1" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, one little thing, Browserify and watchify will need to be in the dev deps.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good point, I'll fix it and push a new commit later on today
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@podefr Thanks
I've added browserify and watchify to the package.json and squashed all the commits. Thanks for taking the time to review this @arthurvr! |
Great! |
@@ -1,4 +1,3 @@ | |||
/*global define*/ | |||
(function () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the iffy wrapper seems odd now that we are using commonjs right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
I am not sure we want to delete
|
af586c1
to
92fdf4f
Compare
@samccone, Here's what the file looks like as of this commit: |
} else { | ||
this.classList.remove(className); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For this file same thing as #1242 (comment)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it looks like all the other files as well. package.json is the only one that shouldn't use tabs.
@arthurvr done! |
hi @podefr looks like you have a failing spec
|
@samccone I pulled down the latest master and ran: npm run test -- --framework=olives but I'm not seeing any failing test apart from routing. Can you double-check?
|
@podefr Indentation is still wrong. Otherwise I'm fine with landing this as olives doesn't pass the specs in master too. |
thanks @arthurvr, fixing the indent now. I had never saw the comment above about using tabs instead of spaces :/ |
@arthurvr done |
"scripts": { | ||
"build": "browserify ./js/app.js -o olives-todo.js", | ||
"watch": "watchify ./js/app.js -o olives-todo.js" | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mind adding a note about these scripts in the examples/olives/readme.md
? Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
will do
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
one last comment, for the rest this looks good. |
Oh, and, thanks for your hard work! |
👏 |
npm install | ||
``` | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove these lines :)
Instead of nitpicking more I'll land this this and do some tweaks myself! Once again, awesome work! |
That would be super awesome! |
* Update to the latest version of the Olives framework. * Update to the latest version of Emily * Remove requirejs in favor of browserify - also implemented npm scripts and updated the readme As a result of updating dependencies, this fixes the issue in tastejs#1029. Ref tastejs#1029 Close tastejs#1242
Hi,
This PR should fix #1029 (focus on load). The issue was fixed by updating olives and emily to their 3.0.x version.
The changes in this PR are:
This PR doesn't add the routing feature, this will come in a future PR as I'm working on it.
Thanks,
Olivier