Frontend assets and tools¶
The Digital Marketplace has 6 frontend apps. These apps mostly use shared templates, JavaScript, Sass and image assets, but occasionally have custom assets specific to that app.
For a list of supported browsers, see Browser and accessibility support.
Testing¶
Running npm test
in any frontend app will carry out linting using StandardJS. We also have unit tests with
Jasmine/PhantomJS in digitalmarketplace-frontend-toolkit
(see spec/javascripts/manifest.js
)
We use Backstop.js for Visual Regression tests, as part of our deployment pipeline.
See the Visual regression tests repo README for details on how to add a scenario.
Analytics¶
See the Google Analytics manual page.