Skip to content

Commit

Permalink
Use published 7.0 and 8.0 releases.
Browse files Browse the repository at this point in the history
  • Loading branch information
JanMiksovsky committed Oct 3, 2019
1 parent 2e6de04 commit 377fe4a
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
<title>Multiple versions of the same Elix component on a single page</title>

<!-- Elix 7.0 component, which auto-registered all components with "elix-" prefix. -->
<script type="module" src="node_modules/elix/src/DateComboBox.js"></script>
<script type="module" src="node_modules/elix-7/src/DateComboBox.js"></script>

<!-- Elix 8.0 component that does not auto-register itself. -->
<script type="module">
// Import the component we want.
import DateComboBox from './node_modules/elix2/src/DateComboBox.js';
import DateComboBox from './node_modules/elix-8/src/DateComboBox.js';

// Create a subclass just in case someone else is using the same version.
class DateComboBox2 extends DateComboBox {}
Expand Down
14 changes: 8 additions & 6 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "multiple-version-example",
"dependencies": {
"elix": "github:elix/elix#master",
"elix2": "github:elix/elix#define"
"elix-7": "npm:elix@7.0.0",
"elix-8": "npm:elix@8.0.0"
}
}

0 comments on commit 377fe4a

Please sign in to comment.