Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion ember-cli-build.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
'use strict';

const EmberAddon = require('ember-cli/lib/broccoli/ember-addon');
const { injectAssetMap } = require('@upfluence/oss-components/build/classic-asset-map.cjs');

module.exports = function (defaults) {
let app = new EmberAddon(defaults, {
fingerprint: {
generateAssetMap: true,
assetMapPath: 'assets/upfluence-asset-map.json',
extensions: ['js', 'css', 'png', 'jpg', 'gif', 'map', 'svg', 'ico', 'woff', 'woff2', 'ttf', 'eot']
}
// Add options here
});

Expand All @@ -15,11 +21,15 @@ module.exports = function (defaults) {
*/

const { maybeEmbroider } = require('@embroider/test-setup');
return maybeEmbroider(app, {
const tree = maybeEmbroider(app, {
skipBabel: [
{
package: 'qunit'
}
]
});
return injectAssetMap(tree, {
fingerprint: app.options.fingerprint,
rootURL: app.project.config(app.env).rootURL
});
};
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"@types/rsvp": "^4.0.4",
"@types/sinon": "^10.0.6",
"@types/tether": "^1.4.6",
"@upfluence/oss-components": "^3.98.16",
"@upfluence/oss-components": "github:upfluence/oss-components#pn/asset-map-service-adapter",
"@upfluence/w-conf": "^0.4.0",
"broccoli-asset-rev": "^3.0.0",
"ember-cli": "~4.12.3",
Expand Down
25 changes: 8 additions & 17 deletions pnpm-lock.yaml

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

5 changes: 5 additions & 0 deletions pnpm-workspace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
packages:
- '.'

onlyBuiltDependencies:
- '@upfluence/oss-components'
2 changes: 2 additions & 0 deletions tests/dummy/app/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!doctype html>
<html>
<head>
<meta name="upfluence:asset-map" content="__UPFLUENCE_ASSET_MAP__" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Dummy</title>
Expand All @@ -10,6 +11,7 @@
{{content-for "head"}}

<link integrity="" rel="stylesheet" href="{{rootURL}}assets/vendor.css" />
<link rel="stylesheet" href="https://uweb.s3.us-east-1.amazonaws.com/fa-current/css/all.min.css" />
<link integrity="" rel="stylesheet" href="{{rootURL}}assets/dummy.css" />

{{content-for "head-footer"}}
Expand Down
1 change: 1 addition & 0 deletions tests/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!doctype html>
<html>
<head>
<meta name="upfluence:asset-map" content="__UPFLUENCE_ASSET_MAP__" />
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Dummy Tests</title>
Expand Down