-
Notifications
You must be signed in to change notification settings - Fork 18
Mocks
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.