Skip to content

Commit 8220677

Browse files
committed
19.0 alpha 1
[general] - use js modules, new js dir tree - new sass modules for animations and colors - move background videos to own dir - fix firebase deploy github actions - modulize index data json -test new marquee
1 parent e7da344 commit 8220677

34 files changed

Lines changed: 280 additions & 292 deletions

.eleventy.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ module.exports = function (eleventyConfig) {
2424

2525
eleventyConfig.addPassthroughCopy("./src/static/js");
2626
eleventyConfig.addPassthroughCopy("./assets");
27-
eleventyConfig.addPassthroughCopy("**.data.json");
27+
eleventyConfig.addPassthroughCopy("**.json");
2828
eleventyConfig.setDataFileSuffixes([".data", ""]);
2929
eleventyConfig.setQuietMode(true);
3030
eleventyConfig.setServerOptions({
@@ -34,7 +34,7 @@ module.exports = function (eleventyConfig) {
3434
eleventyConfig.addShortcode("addScript", function (filename) {
3535
let filepath = findFileInDir("./src/static/js", `${filename}.js`);
3636
if (filepath) {
37-
return `<script src="${filepath.replace('src', '')}" defer></script>`;
37+
return `<script type="module" src="${filepath.replace('src', '')}"></script>`;
3838
}
3939

4040
console.log(`Script file ${filename}.js not found in /src/static/js/`);
@@ -135,7 +135,8 @@ module.exports = function (eleventyConfig) {
135135
return {
136136
dir: {
137137
input: "src",
138-
includes: "templates"
138+
includes: "templates",
139+
data: "data"
139140
}
140141
};
141142
};

.github/workflows/firebase-hosting-beta.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ jobs:
1818
firebaseServiceAccount: '${{ secrets.FIREBASE_SERVICE_ACCOUNT_MIER_F6277 }}'
1919
channelId: beta
2020
projectId: mier-f6277
21+
- name: trigger speedlify deploy
22+
run: 'curl -X POST -d "{}" -H "Content-Type: application/x-www-form-urlencoded" "https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_HOOK }}"'

.github/workflows/firebase-hosting-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ jobs:
1919
channelId: live
2020
projectId: mier-f6277
2121
- name: trigger speedlify deploy
22-
run: 'curl -X POST -d "{}" -H "Content-Type: application/x-www-form-urlencoded" "https://api.netlify.com/build_hooks/${{ sectrets.NETLIFY_HOOK }}"'
22+
run: 'curl -X POST -d "{}" -H "Content-Type: application/x-www-form-urlencoded" "https://api.netlify.com/build_hooks/${{ secrets.NETLIFY_HOOK }}"'

package-lock.json

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

package.json

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

src/content/data/backgrounds.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[
2+
"birthday-nile.mp4",
3+
"ram-unboxed.mp4",
4+
"unseen-ram.mp4",
5+
"electroma-ad.mp4"
6+
]

0 commit comments

Comments
 (0)