Skip to content

Commit 4d51430

Browse files
kylebuch8mwcz
authored andcommitted
switching from .compiled.js to .umd.js (#100)
* switching from .compiled.js to .umd.js Fixes #53 * updating compiled to umd in all demo index.html files
1 parent c5cb070 commit 4d51430

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+718
-112
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
node_modules
22
lerna-debug.log
3-
*.local.compiled.js
3+
*.local.umd.js
44
*.local.js
55
.storybook_out
66
npm-debug.log

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
test
2-
*.compiled.js
2+
*.umd.js
33
*.min.js
44
package.json
55
package-lock.json

elements/cp-themeset/cp-themeset.css

Lines changed: 302 additions & 0 deletions
Large diffs are not rendered by default.

elements/cp-themeset/cp-themeset.umd.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

elements/cp-themeset/gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const del = require("del");
1414
let watcher;
1515

1616
gulp.task("clean", () => {
17-
return del(["./*.compiled.*"]);
17+
return del(["./*.umd.*"]);
1818
});
1919

2020
gulp.task("sass", () => {
@@ -47,7 +47,7 @@ gulp.task("compile", () => {
4747
.pipe(uglify())
4848
.pipe(
4949
rename({
50-
suffix: ".compiled"
50+
suffix: ".umd"
5151
})
5252
)
5353
.pipe(gulp.dest("./"));

elements/rh-button/demo/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66

77
<link rel="stylesheet" type="text/css" href="//overpass-30e2.kxcdn.com/overpass.css">
88

9-
<!-- uncomment the es5-adapter if you're using the compiled version -->
9+
<!-- uncomment the es5-adapter if you're using the umd version -->
1010
<script src="/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
1111
<script src="/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
1212
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.5/require.min.js"></script>
13-
<script>require(['../rh-button.compiled.js'])</script>
13+
<script>require(['../rh-button.umd.js'])</script>
1414

1515
<style>
1616
input {

elements/rh-button/gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,14 @@ gulp.task("compile", () => {
1717
.pipe(
1818
replace(
1919
/^(import .*?)(['"]\.\.\/(?!\.\.\/).*)(\.js['"];)$/gm,
20-
"$1$2.compiled$3"
20+
"$1$2.umd$3"
2121
)
2222
)
2323
.pipe(babel())
2424
.pipe(uglify())
2525
.pipe(
2626
rename({
27-
suffix: ".compiled"
27+
suffix: ".umd"
2828
})
2929
)
3030
.pipe(gulp.dest("./"));

elements/rh-button/rh-button.compiled.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

elements/rh-button/rh-button.umd.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

elements/rh-card/demo/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<!-- use another themeset -->
1717
<!-- <link rel="stylesheet" type="text/css" href="../../test-themeset/test-themeset.css"> -->
1818

19-
<!-- uncomment the es5-adapter if you're using the compiled version -->
19+
<!-- uncomment the es5-adapter if you're using the umd version -->
2020
<script src="/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js"></script>
2121
<script src="/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
2222
<script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.5/require.min.js"></script>
@@ -25,16 +25,16 @@
2525
if support for IE11 IS NOT needed, just include the web components
2626
that you want
2727
-->
28-
<script>require(['../rh-card.compiled.js'])</script>
28+
<script>require(['../rh-card.umd.js'])</script>
2929

3030
<!--
3131
if support IS needed for IE11
3232
-->
3333
<!-- use cp-themeset with support for IE11 -->
34-
<!-- <script>require(['../../cp-themeset/cp-themeset.compiled.js','../rh-card.compiled.js'])</script> -->
34+
<!-- <script>require(['../../cp-themeset/cp-themeset.umd.js','../rh-card.umd.js'])</script> -->
3535

3636
<!-- use another themeset with support for IE11 -->
37-
<!-- <script>require(['../../test-themeset/test-themeset.compiled.js','../rh-card.compiled.js'])</script> -->
37+
<!-- <script>require(['../../test-themeset/test-themeset.umd.js','../rh-card.umd.js'])</script> -->
3838

3939
</head>
4040
<body>

0 commit comments

Comments
 (0)