-
Notifications
You must be signed in to change notification settings - Fork 90
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
Documentation Site Skeleton #17
Conversation
- Fixes most tests due to route hierarchy changes; - Adds template for `/docs`;
package.json
Outdated
@@ -17,9 +17,16 @@ | |||
"license": "MIT", | |||
"devDependencies": { | |||
"broccoli-asset-rev": "^2.4.5", | |||
"ember-ajax": "^3.1.0", |
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.
Which thing depends on this?
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.
ember-cli-addon-docs
depends on it currently, but it's not currently listed as a dependency.
Thanks for getting this started, looks nice. At least some of the test failures are legitimately detecting demos that don't look right anymore. We'll need to figure out why. |
- Reinstates the TimeLord to the `demos` route; - Removes the uselss `demos/docs` template;
/* eslint-env node */ | ||
'use strict'; | ||
|
||
const AddonDocsConfig = require('ember-cli-addon-docs/lib/config'); |
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.
Need
// eslint-disable-next-line node/no-unpublished-require
above line 4 to get tests to pass.
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.
👍 Just added this -- 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.
I took a closer look at this rule, and disabling it here is just a workaround.
The more complete solution is to create a files
entry in our package.json
. This would make it clear that config/addon-docs.js is not something we publish to consumers of the library, which would cause the unpublished rule to not worry about our use of a devDependency here.
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.
(Or instead of files
we could also use .npmignore, which looks like it may be easier for this use case. Basically we just need to prove that config/addon-docs.js does not get published to npm.)
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.
Ah, I see there is already an open issue for this on ember-cli-addon-docs: ember-learn/ember-cli-addon-docs#103
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 a PR ember-learn/ember-cli-addon-docs#105
@ef4 We got green tests -- thanks to @knownasilya. 🎉 I started converting your initial comments in |
tests/dummy/app/adapters/person.js
Outdated
@@ -14,7 +14,7 @@ export default DS.JSONAPIAdapter.extend({ | |||
id: String(i), | |||
attributes: Object.seal({ | |||
name: faker.name.firstName(), | |||
'avatar-url': faker.internet.avatar() | |||
avatarUrl: faker.internet.avatar() |
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'm very confused why this was needed. Is ember-cli-addon-docs altering something about our default adapters?
The data returned here is supposed to look like a network request (meaning kebab-case is the standard). And it works on master the way I had it, but on this branch it only works with camelCase.
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 found it, ember-cli-addon-docs is indeed messing with the application serializer.
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.
Looks like tests are timing out. |
There are still demo problems that weren't caught by the test suite. I'm investigating. For example, if you try running /demos/bind you'll see it doesn't move smoothly anymore. And /demos/orphans animates in but not out. |
Disregard the part about /demos/orphans, I just realized it's also broken on master. |
Because they're passing now and I want to know if that changes.
and drop unused bower.json because it causes some spurious errors in ember-try
Some of the tests timeout and others error with |
Yeah and it’s only happening on Travis. I have everything working fine when
I try locally.
…On Fri, Mar 16, 2018 at 6:53 AM Ilya Radchenko ***@***.***> wrote:
Some of the tests timeout and others error with Cannot find module
'recast'
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AATfMp2qpHHJro71ZCqC9EgqJcrJzjVeks5te8PSgaJpZM4SqwWn>
.
|
@ef4 are you using yarn to install locally? The ci is not, it says add |
Yes, I'm running |
To avoid possible npm5 issues
Looking good so far, one passed 👍 |
Woot! |
Initial implementation of a documentation skeleton using
ember-cli-addon-docs
.Linked to #15.