Skip to content
Florian Süsstrunk edited this page Oct 20, 2016 · 17 revisions

Add a mock by creating a file called {{modulename}}.mock.js

Example: ./source/demo/modules/slideshow/slideshow.mock.js

Mocks are written in Javascript and must return an object or an array. The gulp task for mocks transpiles the mock-data to JSON and writes it into the builded module-folder.

Example: slideshow.json

Hint: to update changed mocks you need to start the mocks task gulp js:mocks or restart the server.

estatico is made by unic & the community. feel free to give feedback and extend these documents

Clone this wiki locally