Skip to content

Commit

Permalink
Merge pull request #7 from MichalBryxi/mb/ember-web-app
Browse files Browse the repository at this point in the history
feat: Add ember-web-app
  • Loading branch information
MichalBryxi authored Sep 25, 2024
2 parents c359083 + 5ef1d29 commit 0397b6d
Show file tree
Hide file tree
Showing 5 changed files with 397 additions and 1 deletion.
1 change: 1 addition & 0 deletions app/index.html
31 changes: 31 additions & 0 deletions config/manifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
'use strict';

module.exports = function (/* environment, appConfig */) {
// See https://zonkyio.github.io/ember-web-app for a list of
// supported properties

return {
name: '#OpenTo...',
short_name: '#OpenTo...',
description: 'LinkedIn avatar generator',
start_url: '/',
scope: '/',
display: 'standalone',
background_color: '#fff',
theme_color: '#fff',
icons: [
{
src: '/assets/icons/appicon-32.png',
sizes: '32x32',
targets: ['favicon'],
},
...[192, 280, 512].map((size) => ({
src: `/assets/icons/appicon-${size}.png`,
sizes: `${size}x${size}`,
})),
],
ms: {
tileColor: '#fff',
},
};
};
16 changes: 15 additions & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,21 @@ const EmberApp = require('ember-cli/lib/broccoli/ember-app');
const { maybeEmbroider } = require('@embroider/test-setup');

module.exports = function (defaults) {
let app = new EmberApp(defaults, {});
let options = {
'ember-cli-image-transformer': {
images: [
{
inputFilename: 'public/images/unicorn.webp',
outputFileName: 'appicon-',
convertTo: 'png',
destination: 'assets/icons/',
sizes: [32, 192, 280, 512],
},
],
},
};

let app = new EmberApp(defaults, options);

return maybeEmbroider(app);
};
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@
"ember-cli": "~5.11.0",
"ember-cli-babel": "^8.2.0",
"ember-cli-htmlbars": "^6.3.0",
"ember-cli-image-transformer": "^7.0.0",
"ember-cli-inject-live-reload": "^2.1.0",
"ember-data": "~5.3.8",
"ember-file-upload": "^9.1.0",
Expand All @@ -101,6 +102,7 @@
"ember-source": "~5.11.0",
"ember-template-imports": "^4.1.1",
"ember-template-lint": "^5.13.0",
"ember-web-app": "^5.0.1",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-ember": "^12.1.1",
Expand Down
Loading

0 comments on commit 0397b6d

Please sign in to comment.