Skip to content
This repository has been archived by the owner on Oct 21, 2020. It is now read-only.

Commit

Permalink
feat: Use ember-cli-content-for-config
Browse files Browse the repository at this point in the history
  • Loading branch information
devinus committed Jan 11, 2018
1 parent bf2f01e commit 683d9a0
Show file tree
Hide file tree
Showing 5 changed files with 293 additions and 6 deletions.
5 changes: 3 additions & 2 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Nano Wallet</title>
<meta name="description" content="">
<title>{{content-for 'config.title'}}</title>
<meta name="description" content="{{content-for 'config.description'}}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="version" content="{{content-for 'config.version'}}">

{{content-for "head"}}

Expand Down
10 changes: 9 additions & 1 deletion config/environment.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
/* eslint-env node */

const { name: modulePrefix } = require('../package');
const {
version,
description,
name: modulePrefix,
productName: title,
} = require('../package');

module.exports = (environment) => {
const ENV = {
title,
version,
description,
modulePrefix,
environment,
rootURL: '',
Expand Down
8 changes: 5 additions & 3 deletions config/manifest.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
/* eslint-env node */

const { description, productName: name } = require('../package');

// eslint-disable-next-line arrow-body-style
module.exports = (/* environment, appConfig */) => {
// See https://github.com/san650/ember-web-app#documentation for a list of
// supported properties

return {
name: 'Nano Wallet',
short_name: 'Nano Wallet',
description: 'The official Nano desktop wallet',
name,
description,
short_name: name,
start_url: '/',
display: 'standalone',
background_color: '#e9ecef',
Expand Down
275 changes: 275 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"ember-cli-build-notifications": "^0.2.0",
"ember-cli-chai": "^0.5.0-beta.1",
"ember-cli-clipboard": "^0.8.1",
"ember-cli-content-for-config": "^1.0.1",
"ember-cli-dependency-checker": "^2.1.0",
"ember-cli-eslint": "^4.2.3",
"ember-cli-flash": "^1.6.2",
Expand Down

0 comments on commit 683d9a0

Please sign in to comment.