Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* [x] Related to ember-cli/ember-cli-terser#35 */
* [x] Added build for production to CircleCI
  • Loading branch information
0xadada committed Feb 3, 2018
1 parent 37ba8aa commit 58624cd
Show file tree
Hide file tree
Showing 3 changed files with 118 additions and 150 deletions.
16 changes: 16 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,19 @@ jobs:
ember --version --verbose
BROCCOLI_PERSISTENT_FILTER_CACHE_ROOT=cache; yarn test --path=dist
yarn coverage
build:
<<: *defaults
steps:
- attach_workspace:
at: .
- run:
<<: *step-update-env
- run:
name: Ember build
command: |
ember --version --verbose
# see: https://github.com/stefanpenner/broccoli-persistent-filter#warning
BROCCOLI_PERSISTENT_FILTER_CACHE_ROOT=cache; ember build -e production
workflows:
version: 2
Expand All @@ -93,3 +106,6 @@ workflows:
- test:
requires:
- install_dependencies
- build:
requires:
- install_dependencies
6 changes: 6 additions & 0 deletions ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ module.exports = function(defaults) {
extensions: ['css', 'gif', 'js', 'jpg', 'png', 'map', 'svg']
},

'ember-cli-uglify': {
uglify: {
compress: false /* TODO: workaround for https://github.com/ember-cli/ember-cli-uglify/issues/35 */
}
},

inlineContent: {
host: {
content: HOST
Expand Down
Loading

0 comments on commit 58624cd

Please sign in to comment.