Skip to content

[RFR] Use fakerest and webpack-dev-server instead of json-server and grunt-connect#625

Merged
fzaninotto merged 7 commits intomasterfrom
fakerest
Sep 3, 2015
Merged

[RFR] Use fakerest and webpack-dev-server instead of json-server and grunt-connect#625
fzaninotto merged 7 commits intomasterfrom
fakerest

Conversation

@jeromemacias
Copy link
Copy Markdown
Contributor

  • Use Fakerest and webpack-dev-server for demo
  • Use Fakerest for e2e tests
  • Fix unit tests (using sinon 1.14.1 instead of sinon-2.0)
  • Use latest fakerest
  • Clean Gruntfile.js

Makefile Outdated
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't forget to remove the related conf in Gruntfile

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@fzaninotto
Copy link
Copy Markdown
Member

Awesome!

@jeromemacias jeromemacias changed the title [WIP] Use fakerest and webpack-dev-server instead of json-server and grunt-connect [RFR] Use fakerest and webpack-dev-server instead of json-server and grunt-connect Aug 27, 2015
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand what that file does?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's just a symlink to the fakerest node module, to be able to import it in the <script> of the demo index.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah OK, that's how GitHub show symlinks, I didn't know

@fzaninotto
Copy link
Copy Markdown
Member

Let me add another item:

-[ ] Add a task to compile and save the JS so that the entire demo can be run from a static server (think gh-pages)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do you need to copy if there is a symlink?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because copy from example build directory to test build directory does not copy symlinks (which would be broken anyway).

@jeromemacias jeromemacias changed the title [RFR] Use fakerest and webpack-dev-server instead of json-server and grunt-connect [WIP] Use fakerest and webpack-dev-server instead of json-server and grunt-connect Sep 1, 2015
@fzaninotto
Copy link
Copy Markdown
Member

Closes #320

@fzaninotto
Copy link
Copy Markdown
Member

Could you rebase? No need for the additional task I mentioned, we'll use something else for the demo.

@jeromemacias jeromemacias changed the title [WIP] Use fakerest and webpack-dev-server instead of json-server and grunt-connect [RFR] Use fakerest and webpack-dev-server instead of json-server and grunt-connect Sep 2, 2015
@jeromemacias
Copy link
Copy Markdown
Contributor Author

Rebased

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why does it change if the dataset is the same? Something's wrong.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how it's possible to find 5 records, see http://ng-admin.marmelab.com/#/comments/list?search={%22q%22:%22be%22}&page=1

But if I search for b instead of be, 5 records are found, maybe a coincidence, but this is the only explaination I see, protractor wasn't wait for the e with the old basecode.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, FakeRest doesn't handle the q search inside composite fields (the 5th comment has an author.name containing 'be'.

fzaninotto added a commit that referenced this pull request Sep 3, 2015
[RFR] Use fakerest and webpack-dev-server instead of json-server and grunt-connect
@fzaninotto fzaninotto merged commit cc6a89d into master Sep 3, 2015
@fzaninotto fzaninotto deleted the fakerest branch September 3, 2015 09:19
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