Use Lamdera NPM package in examples and template.

This commit is contained in:
Dillon Kearns 2024-01-09 16:30:04 -08:00
parent a943466b93
commit 73d38cf37e
8 changed files with 273 additions and 4 deletions

View File

@ -1,7 +1,7 @@
[build]
functions = "functions/"
publish = "dist/"
command = "mkdir bin && export PATH=\"/opt/build/repo/examples/pokedex/bin:$PATH\" && echo $PATH && curl https://static.lamdera.com/bin/linux/lamdera -o bin/lamdera && chmod a+x bin/lamdera && export ELM_HOME=\"$NETLIFY_BUILD_BASE/cache/elm\" && (cd ../../ && npm install --no-optional && npx --no-install elm-tooling install && npm run build:generator) && npm install && npm run generate:tailwind && npm run generate:graphql && npm run build && cp secret-note.txt functions/server-render/"
command = "export ELM_HOME=\"$NETLIFY_BUILD_BASE/cache/elm\" && (cd ../../ && npm install && npx --no-install elm-tooling install && npm run build:generator) && npm install && npm run generate:tailwind && npm run generate:graphql && npm run build && cp secret-note.txt functions/server-render/"
ignore = "/bin/false"
[dev]

View File

@ -20,6 +20,7 @@
"elm-review": "^2.10.3",
"elm-tailwind-modules": "^0.5.0",
"elm-tooling": "^1.15.0",
"lamdera": "^0.19.1-1.2.1-1",
"postcss": "^8.4.33",
"prisma": "^5.7.1",
"tailwindcss": "^3.4.1"
@ -71,6 +72,7 @@
"elm-tooling": "^1.15.0",
"elm-verify-examples": "^5.3.0",
"elmi-to-json": "^1.4.3",
"lamdera": "^0.19.1-1.2.1-1",
"typescript": "^5.3.3",
"vite": "^5.0.11",
"vitest": "^1.1.3"
@ -246,6 +248,71 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
"node_modules/@lamdera/compiler-darwin-arm64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-darwin-arm64/-/compiler-darwin-arm64-0.19.1-1.2.1.tgz",
"integrity": "sha512-/lWx40y/ISjXpExBaYjCn2UFVrdQOuZj+O+y70eajmLgt4dWW51aWETbxC6Em8hfhDRwWnnrIOHCUZL4a+R57Q==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"darwin"
]
},
"node_modules/@lamdera/compiler-darwin-x64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-darwin-x64/-/compiler-darwin-x64-0.19.1-1.2.1.tgz",
"integrity": "sha512-UQnHe82gYAvCKdswcXxayQ/tFS26Uk7DS4/YQ4CEoWvBQq1XwtNGnX/ccPoPxWQ1InArGcV+i3ThLKx1oDDD1Q==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"darwin"
]
},
"node_modules/@lamdera/compiler-linux-arm64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-linux-arm64/-/compiler-linux-arm64-0.19.1-1.2.1.tgz",
"integrity": "sha512-0hX4n24nIiO7UEhF0YvPiK/5bmSKlVwry8RTiKoP9GI9U7L7sjvDU63smxYhUDNmadS1bBq1eyzULpvVG7tgNQ==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"linux"
]
},
"node_modules/@lamdera/compiler-linux-x64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-linux-x64/-/compiler-linux-x64-0.19.1-1.2.1.tgz",
"integrity": "sha512-ZRuCjSyM6hq2v9BZIQa98NhDmXbShqZjB8UVCQzrjgF9vFu/kM61921iwdHv1ktqJz1Glp5P3eQAjRHDQ9/CvQ==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"linux"
]
},
"node_modules/@lamdera/compiler-win32-x64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-win32-x64/-/compiler-win32-x64-0.19.1-1.2.1.tgz",
"integrity": "sha512-GxegjV/2Uet8IFaOBOhyVEmo7Ay2r8JxoWx8VKKs1ooF5jPrtLYvlCMbgqn9Gy62RRjvR2vmNmks25E8vrVQeQ==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"win32"
]
},
"node_modules/@netlify/functions": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-2.4.1.tgz",
@ -2127,6 +2194,23 @@
"node": ">=6"
}
},
"node_modules/lamdera": {
"version": "0.19.1-1.2.1-1",
"resolved": "https://registry.npmjs.org/lamdera/-/lamdera-0.19.1-1.2.1-1.tgz",
"integrity": "sha512-2/kikDtleamLenCAvaD0I674DBZ9b2PzsQE/vYyda8Wl5eapTAD8xCBoiElLAlPPA8Kn2Htz4v2dEmFdcvCw2A==",
"dev": true,
"hasInstallScript": true,
"bin": {
"lamdera": "bin/lamdera"
},
"optionalDependencies": {
"@lamdera/compiler-darwin-arm64": "0.19.1-1.2.1",
"@lamdera/compiler-darwin-x64": "0.19.1-1.2.1",
"@lamdera/compiler-linux-arm64": "0.19.1-1.2.1",
"@lamdera/compiler-linux-x64": "0.19.1-1.2.1",
"@lamdera/compiler-win32-x64": "0.19.1-1.2.1"
}
},
"node_modules/lilconfig": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz",
@ -3771,6 +3855,41 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
"@lamdera/compiler-darwin-arm64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-darwin-arm64/-/compiler-darwin-arm64-0.19.1-1.2.1.tgz",
"integrity": "sha512-/lWx40y/ISjXpExBaYjCn2UFVrdQOuZj+O+y70eajmLgt4dWW51aWETbxC6Em8hfhDRwWnnrIOHCUZL4a+R57Q==",
"dev": true,
"optional": true
},
"@lamdera/compiler-darwin-x64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-darwin-x64/-/compiler-darwin-x64-0.19.1-1.2.1.tgz",
"integrity": "sha512-UQnHe82gYAvCKdswcXxayQ/tFS26Uk7DS4/YQ4CEoWvBQq1XwtNGnX/ccPoPxWQ1InArGcV+i3ThLKx1oDDD1Q==",
"dev": true,
"optional": true
},
"@lamdera/compiler-linux-arm64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-linux-arm64/-/compiler-linux-arm64-0.19.1-1.2.1.tgz",
"integrity": "sha512-0hX4n24nIiO7UEhF0YvPiK/5bmSKlVwry8RTiKoP9GI9U7L7sjvDU63smxYhUDNmadS1bBq1eyzULpvVG7tgNQ==",
"dev": true,
"optional": true
},
"@lamdera/compiler-linux-x64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-linux-x64/-/compiler-linux-x64-0.19.1-1.2.1.tgz",
"integrity": "sha512-ZRuCjSyM6hq2v9BZIQa98NhDmXbShqZjB8UVCQzrjgF9vFu/kM61921iwdHv1ktqJz1Glp5P3eQAjRHDQ9/CvQ==",
"dev": true,
"optional": true
},
"@lamdera/compiler-win32-x64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-win32-x64/-/compiler-win32-x64-0.19.1-1.2.1.tgz",
"integrity": "sha512-GxegjV/2Uet8IFaOBOhyVEmo7Ay2r8JxoWx8VKKs1ooF5jPrtLYvlCMbgqn9Gy62RRjvR2vmNmks25E8vrVQeQ==",
"dev": true,
"optional": true
},
"@netlify/functions": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-2.4.1.tgz",
@ -4378,6 +4497,7 @@
"gray-matter": "^4.0.3",
"jsesc": "^3.0.2",
"kleur": "^4.1.5",
"lamdera": "^0.19.1-1.2.1-1",
"make-fetch-happen": "^13.0.0",
"memfs": "^4.6.0",
"micromatch": "^4.0.5",
@ -5167,6 +5287,19 @@
"integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",
"dev": true
},
"lamdera": {
"version": "0.19.1-1.2.1-1",
"resolved": "https://registry.npmjs.org/lamdera/-/lamdera-0.19.1-1.2.1-1.tgz",
"integrity": "sha512-2/kikDtleamLenCAvaD0I674DBZ9b2PzsQE/vYyda8Wl5eapTAD8xCBoiElLAlPPA8Kn2Htz4v2dEmFdcvCw2A==",
"dev": true,
"requires": {
"@lamdera/compiler-darwin-arm64": "0.19.1-1.2.1",
"@lamdera/compiler-darwin-x64": "0.19.1-1.2.1",
"@lamdera/compiler-linux-arm64": "0.19.1-1.2.1",
"@lamdera/compiler-linux-x64": "0.19.1-1.2.1",
"@lamdera/compiler-win32-x64": "0.19.1-1.2.1"
}
},
"lilconfig": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz",

View File

@ -20,6 +20,7 @@
"elm-review": "^2.10.3",
"elm-tailwind-modules": "^0.5.0",
"elm-tooling": "^1.15.0",
"lamdera": "^0.19.1-1.2.1-1",
"postcss": "^8.4.33",
"prisma": "^5.7.1",
"tailwindcss": "^3.4.1"

View File

@ -1,7 +1,7 @@
[build]
functions = "functions/"
publish = "dist/"
command = "mkdir bin && export PATH=\"/opt/build/repo/examples/todos/bin:$PATH\" && echo $PATH && curl https://static.lamdera.com/bin/linux/lamdera -o bin/lamdera && chmod a+x bin/lamdera && export ELM_HOME=\"$NETLIFY_BUILD_BASE/cache/elm\" && (cd ../../ && npm install --no-optional && npx --no-install elm-tooling install && npm run build:generator) && npm install && npm run generate:tailwind && npm run build"
command = "export ELM_HOME=\"$NETLIFY_BUILD_BASE/cache/elm\" && (cd ../../ && npm install && npx --no-install elm-tooling install && npm run build:generator) && npm install && npm run generate:tailwind && npm run build"
[dev]
command = "npm start"

View File

@ -21,6 +21,7 @@
"elm-review": "^2.10.3",
"elm-tailwind-modules": "^0.5.0",
"elm-tooling": "^1.15.0",
"lamdera": "^0.19.1-1.2.1-1",
"postcss": "^8.4.33",
"prisma": "^5.7.1",
"tailwindcss": "^3.4.1"
@ -72,6 +73,7 @@
"elm-tooling": "^1.15.0",
"elm-verify-examples": "^5.3.0",
"elmi-to-json": "^1.4.3",
"lamdera": "^0.19.1-1.2.1-1",
"typescript": "^5.3.3",
"vite": "^5.0.11",
"vitest": "^1.1.3"
@ -247,6 +249,71 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
"node_modules/@lamdera/compiler-darwin-arm64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-darwin-arm64/-/compiler-darwin-arm64-0.19.1-1.2.1.tgz",
"integrity": "sha512-/lWx40y/ISjXpExBaYjCn2UFVrdQOuZj+O+y70eajmLgt4dWW51aWETbxC6Em8hfhDRwWnnrIOHCUZL4a+R57Q==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"darwin"
]
},
"node_modules/@lamdera/compiler-darwin-x64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-darwin-x64/-/compiler-darwin-x64-0.19.1-1.2.1.tgz",
"integrity": "sha512-UQnHe82gYAvCKdswcXxayQ/tFS26Uk7DS4/YQ4CEoWvBQq1XwtNGnX/ccPoPxWQ1InArGcV+i3ThLKx1oDDD1Q==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"darwin"
]
},
"node_modules/@lamdera/compiler-linux-arm64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-linux-arm64/-/compiler-linux-arm64-0.19.1-1.2.1.tgz",
"integrity": "sha512-0hX4n24nIiO7UEhF0YvPiK/5bmSKlVwry8RTiKoP9GI9U7L7sjvDU63smxYhUDNmadS1bBq1eyzULpvVG7tgNQ==",
"cpu": [
"arm64"
],
"dev": true,
"optional": true,
"os": [
"linux"
]
},
"node_modules/@lamdera/compiler-linux-x64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-linux-x64/-/compiler-linux-x64-0.19.1-1.2.1.tgz",
"integrity": "sha512-ZRuCjSyM6hq2v9BZIQa98NhDmXbShqZjB8UVCQzrjgF9vFu/kM61921iwdHv1ktqJz1Glp5P3eQAjRHDQ9/CvQ==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"linux"
]
},
"node_modules/@lamdera/compiler-win32-x64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-win32-x64/-/compiler-win32-x64-0.19.1-1.2.1.tgz",
"integrity": "sha512-GxegjV/2Uet8IFaOBOhyVEmo7Ay2r8JxoWx8VKKs1ooF5jPrtLYvlCMbgqn9Gy62RRjvR2vmNmks25E8vrVQeQ==",
"cpu": [
"x64"
],
"dev": true,
"optional": true,
"os": [
"win32"
]
},
"node_modules/@netlify/functions": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-2.4.1.tgz",
@ -2133,6 +2200,23 @@
"node": ">=6"
}
},
"node_modules/lamdera": {
"version": "0.19.1-1.2.1-1",
"resolved": "https://registry.npmjs.org/lamdera/-/lamdera-0.19.1-1.2.1-1.tgz",
"integrity": "sha512-2/kikDtleamLenCAvaD0I674DBZ9b2PzsQE/vYyda8Wl5eapTAD8xCBoiElLAlPPA8Kn2Htz4v2dEmFdcvCw2A==",
"dev": true,
"hasInstallScript": true,
"bin": {
"lamdera": "bin/lamdera"
},
"optionalDependencies": {
"@lamdera/compiler-darwin-arm64": "0.19.1-1.2.1",
"@lamdera/compiler-darwin-x64": "0.19.1-1.2.1",
"@lamdera/compiler-linux-arm64": "0.19.1-1.2.1",
"@lamdera/compiler-linux-x64": "0.19.1-1.2.1",
"@lamdera/compiler-win32-x64": "0.19.1-1.2.1"
}
},
"node_modules/lilconfig": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz",
@ -3777,6 +3861,41 @@
"@jridgewell/sourcemap-codec": "^1.4.14"
}
},
"@lamdera/compiler-darwin-arm64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-darwin-arm64/-/compiler-darwin-arm64-0.19.1-1.2.1.tgz",
"integrity": "sha512-/lWx40y/ISjXpExBaYjCn2UFVrdQOuZj+O+y70eajmLgt4dWW51aWETbxC6Em8hfhDRwWnnrIOHCUZL4a+R57Q==",
"dev": true,
"optional": true
},
"@lamdera/compiler-darwin-x64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-darwin-x64/-/compiler-darwin-x64-0.19.1-1.2.1.tgz",
"integrity": "sha512-UQnHe82gYAvCKdswcXxayQ/tFS26Uk7DS4/YQ4CEoWvBQq1XwtNGnX/ccPoPxWQ1InArGcV+i3ThLKx1oDDD1Q==",
"dev": true,
"optional": true
},
"@lamdera/compiler-linux-arm64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-linux-arm64/-/compiler-linux-arm64-0.19.1-1.2.1.tgz",
"integrity": "sha512-0hX4n24nIiO7UEhF0YvPiK/5bmSKlVwry8RTiKoP9GI9U7L7sjvDU63smxYhUDNmadS1bBq1eyzULpvVG7tgNQ==",
"dev": true,
"optional": true
},
"@lamdera/compiler-linux-x64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-linux-x64/-/compiler-linux-x64-0.19.1-1.2.1.tgz",
"integrity": "sha512-ZRuCjSyM6hq2v9BZIQa98NhDmXbShqZjB8UVCQzrjgF9vFu/kM61921iwdHv1ktqJz1Glp5P3eQAjRHDQ9/CvQ==",
"dev": true,
"optional": true
},
"@lamdera/compiler-win32-x64": {
"version": "0.19.1-1.2.1",
"resolved": "https://registry.npmjs.org/@lamdera/compiler-win32-x64/-/compiler-win32-x64-0.19.1-1.2.1.tgz",
"integrity": "sha512-GxegjV/2Uet8IFaOBOhyVEmo7Ay2r8JxoWx8VKKs1ooF5jPrtLYvlCMbgqn9Gy62RRjvR2vmNmks25E8vrVQeQ==",
"dev": true,
"optional": true
},
"@netlify/functions": {
"version": "2.4.1",
"resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-2.4.1.tgz",
@ -4389,6 +4508,7 @@
"gray-matter": "^4.0.3",
"jsesc": "^3.0.2",
"kleur": "^4.1.5",
"lamdera": "^0.19.1-1.2.1-1",
"make-fetch-happen": "^13.0.0",
"memfs": "^4.6.0",
"micromatch": "^4.0.5",
@ -5178,6 +5298,19 @@
"integrity": "sha512-eTIzlVOSUR+JxdDFepEYcBMtZ9Qqdef+rnzWdRZuMbOywu5tO2w2N7rqjoANZ5k9vywhL6Br1VRjUIgTQx4E8w==",
"dev": true
},
"lamdera": {
"version": "0.19.1-1.2.1-1",
"resolved": "https://registry.npmjs.org/lamdera/-/lamdera-0.19.1-1.2.1-1.tgz",
"integrity": "sha512-2/kikDtleamLenCAvaD0I674DBZ9b2PzsQE/vYyda8Wl5eapTAD8xCBoiElLAlPPA8Kn2Htz4v2dEmFdcvCw2A==",
"dev": true,
"requires": {
"@lamdera/compiler-darwin-arm64": "0.19.1-1.2.1",
"@lamdera/compiler-darwin-x64": "0.19.1-1.2.1",
"@lamdera/compiler-linux-arm64": "0.19.1-1.2.1",
"@lamdera/compiler-linux-x64": "0.19.1-1.2.1",
"@lamdera/compiler-win32-x64": "0.19.1-1.2.1"
}
},
"lilconfig": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-2.1.0.tgz",

View File

@ -20,6 +20,7 @@
"elm-review": "^2.10.3",
"elm-tailwind-modules": "^0.5.0",
"elm-tooling": "^1.15.0",
"lamdera": "^0.19.1-1.2.1-1",
"postcss": "^8.4.33",
"prisma": "^5.7.1",
"tailwindcss": "^3.4.1"
@ -28,4 +29,4 @@
"@prisma/client": "^5.7.1",
"bcryptjs": "^2.4.3"
}
}
}

View File

@ -1,7 +1,7 @@
[build]
functions = "functions/"
publish = "dist/"
command = "mkdir bin && export PATH=\"/opt/build/repo/bin:$PATH\" && echo $PATH && curl https://static.lamdera.com/bin/linux/lamdera -o bin/lamdera && chmod a+x bin/lamdera && export ELM_HOME=\"$NETLIFY_BUILD_BASE/cache/elm\" && npm install && npm run build"
command = "export ELM_HOME=\"$NETLIFY_BUILD_BASE/cache/elm\" && npm install && npm run build"
[dev]
command = "npm start"

View File

@ -12,6 +12,7 @@
"elm-pages": "^3.0.10",
"elm-review": "^2.10.3",
"elm-tooling": "^1.15.0",
"lamdera": "^0.19.1-1.2.1-1",
"vite": "^5.0.11"
},
"dependencies": {