This README outlines the details of collaborating on this Ember application. A short introduction of this app could easily go here.
You will need the following things properly installed on your computer.
git clone <repository-url>
this repository- change into the new directory
npm install
bower install
ember install:npm broccoli-sass
gem install scss-lint
npm i ember-cli-scsslint
npm install ember-cli-bourbon --save-dev
ember g ember-cli-bourbon
- 'when given the option, resolve to 3.2.1'
grunt serve
ember server(changed to include grunt tasks)- Visit your app at http://localhost:4200.
- We use SVGs to ensure the app looks sharp at all pixel densities (e.g. retina). We use SVG for some icons, and by design some of these also require hover states. If an SVG is used as a bg image, the paths inside cannot be manipulated using CSS, and therefore the SVG code must sit in the markup to achieve it.
- Including lots of SVG code for things like icons will bloat the markup quite a considerable amount and slow page loading speeds, so we lazy load them instead using grunticon
- grunticon (run using
grunt svg
in terminal) takes a folder full of SVGs (/public/assets/img/svg/embed), converts them to data URIs and injects them into a stylesheet. It then generates & uses grunticon.loader.js to match the generated CSS classnames from the stylesheet against specific markup in the DOM, such as: , and injects the SVG code inside that element. For config options, check Gruntfile.js
Make use of the many generators for code, try ember help generate
for more details
ember test
ember test --server
grunt
(production) (changed to include grunt tasks)ember build (development)ember build --environment production(production)
- production code will be in the /dist folder