Skip to content

Commit

Permalink
MWPW-138748 Moving Folders to avoid Namespace Collision (#25)
Browse files Browse the repository at this point in the history
* Moving folders to check if fixes issues with stage.business.adobe.com

* Modifying styles path

* Reverting change

* Not quite working yet
  • Loading branch information
JasonHowellSlavin authored Nov 7, 2023
1 parent 7c678be commit 82acdcc
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 5 deletions.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions scripts/fallback.js → bacom-blog/scripts/fallback.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable */

var div = document.createElement('div');
div.style.width = '100%';
div.style.position = 'absolute';
Expand Down
2 changes: 1 addition & 1 deletion scripts/scripts.js → bacom-blog/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import { setLibs, buildAutoBlocks } from './utils.js';

// Add project-wide style path here.
const STYLES = '/styles/styles.css';
const STYLES = '/bacom-blog/styles/styles.css';

// Use '/libs' if your live site maps '/libs' to milo's origin.
const LIBS = '/libs';
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions head.html
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<script src="/scripts/fallback.js" nomodule></script>
<script src="/scripts/scripts.js" type="module"></script>
<script src="/bacom-blog/scripts/fallback.js" nomodule></script>
<script src="/bacom-blog/scripts/scripts.js" type="module"></script>
<style>body { display: none; }</style>
<link rel="icon" href="data:,">
2 changes: 1 addition & 1 deletion test/blocks/language-menu/language-menu.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from '@esm-bundle/chai';
import { readFile } from '@web/test-runner-commands';

const { default: init } = await import('../../../blocks/language-menu/language-menu.js');
const { default: init } = await import('../../../bacom-blog/blocks/language-menu/language-menu.js');

describe('Language Menu', () => {
it('closes on Escape', async () => {
Expand Down
2 changes: 1 addition & 1 deletion test/scripts/utils.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from '@esm-bundle/chai';
import { readFile } from '@web/test-runner-commands';
import sinon from 'sinon';
import { setLibs, buildAutoBlocks } from '../../scripts/utils.js';
import { setLibs, buildAutoBlocks } from '../../bacom-blog/scripts/utils.js';

describe('Libs', () => {
it('Default Libs', () => {
Expand Down

0 comments on commit 82acdcc

Please sign in to comment.