diff --git a/javascript/html-example/client/.gitignore b/javascript/html-example/client/.gitignore
new file mode 100644
index 00000000..849ddff3
--- /dev/null
+++ b/javascript/html-example/client/.gitignore
@@ -0,0 +1 @@
+dist/
diff --git a/javascript/html-example/client/dist/bundle.js b/javascript/html-example/client/dist/bundle.js
deleted file mode 100644
index df5600c7..00000000
--- a/javascript/html-example/client/dist/bundle.js
+++ /dev/null
@@ -1 +0,0 @@
-(()=>{var e,t,n,r,o={389:(e,t,n)=>{"use strict";n.a(e,(async(e,t)=>{try{var r=n(22);let o=localStorage.getItem("apiToken");o||(o=Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15),localStorage.setItem("apiToken",o));const a=await r.i.getAllTasksByUser(o);if(a.success)for(const l of a.tasks)console.log("Hello"),document.getElementById("tasks").innerHTML+=`\n
\n
\n
\n \n
\n ${l.title}\n link\n
\n
\n
\n
\n
\n
\n `;else a.err?document.getElementById("tasks").innerHTML+=` \n \n
\n
\n Unexpected error: ${a.err}\n
\n
\n
`:document.getElementById("tasks").innerHTML+=' \n \n
\n
\n Unexpected error: Please check the backend logs in the project dashboard - https://app.genez.io.\n
\n
\n
';async function i(e){(await r.i.deleteTask(localStorage.getItem("apiToken"),e)).success&&location.reload()}async function s(){document.getElementById("modal-error-elem").innerHTML="";const e=document.getElementById("task-title-input").value;if(!e)return void(document.getElementById("modal-error-elem").innerHTML="Title is mandatory");const t=await r.i.createTask(localStorage.getItem("apiToken"),e);t.success?location.reload():t.err?document.getElementById("modal-error-elem").innerHTML=`Unknown error: ${t.err}`:document.getElementById("modal-error-elem").innerHTML="Unknown error: Please check the backend logs in the project dashboard - https://app.genez.io."}const c=document.getElementsByClassName("task-delete-btn");for(const u of c)u.addEventListener("click",(async()=>{const e=u.id;await i(e)}));document.getElementById("add-task-btn").addEventListener("click",(async e=>{e.preventDefault(),await s()})),t()}catch(d){t(d)}}),1)},22:(e,t,n)=>{"use strict";n.d(t,{i:()=>h});var r=function(e,t,n,r){return new(n||(n=Promise))((function(o,a){function i(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(i,s)}c((r=r.apply(e,t||[])).next())}))},o=function(e,t){var n,r,o,a,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(c){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return i.label++,{value:s[1],done:!1};case 5:i.label++,r=s[1],s=[0];continue;case 7:s=i.ops.pop(),i.trys.pop();continue;default:if(!((o=(o=i.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]0&&o[o.length-1])||6!==s[0]&&2!==s[0])){i=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]{function t(e){return Promise.resolve().then((()=>{var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=()=>[],t.resolve=t,t.id=633,e.exports=t}},a={};function i(e){var t=a[e];if(void 0!==t)return t.exports;var n=a[e]={exports:{}};return o[e](n,n.exports,i),n.exports}e="function"==typeof Symbol?Symbol("webpack queues"):"__webpack_queues__",t="function"==typeof Symbol?Symbol("webpack exports"):"__webpack_exports__",n="function"==typeof Symbol?Symbol("webpack error"):"__webpack_error__",r=e=>{e&&e.d<1&&(e.d=1,e.forEach((e=>e.r--)),e.forEach((e=>e.r--?e.r++:e())))},i.a=(o,a,i)=>{var s;i&&((s=[]).d=-1);var c,l,u,d=new Set,f=o.exports,p=new Promise(((e,t)=>{u=t,l=e}));p[t]=f,p[e]=e=>(s&&e(s),d.forEach(e),p.catch((e=>{}))),o.exports=p,a((o=>{var a;c=(o=>o.map((o=>{if(null!==o&&"object"==typeof o){if(o[e])return o;if(o.then){var a=[];a.d=0,o.then((e=>{i[t]=e,r(a)}),(e=>{i[n]=e,r(a)}));var i={};return i[e]=e=>e(a),i}}var s={};return s[e]=e=>{},s[t]=o,s})))(o);var i=()=>c.map((e=>{if(e[n])throw e[n];return e[t]})),l=new Promise((t=>{(a=()=>t(i)).r=0;var n=e=>e!==s&&!d.has(e)&&(d.add(e),e&&!e.d&&(a.r++,e.push(a)));c.map((t=>t[e](n)))}));return a.r?l:i()}),(e=>(e?u(p[n]=e):l(f),r(s)))),s&&s.d<0&&(s.d=0)},i.d=(e,t)=>{for(var n in t)i.o(t,n)&&!i.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},i.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),i(389)})();
\ No newline at end of file
diff --git a/javascript/html-example/client/dist/index.html b/javascript/html-example/client/dist/index.html
deleted file mode 100644
index 958e0997..00000000
--- a/javascript/html-example/client/dist/index.html
+++ /dev/null
@@ -1,3 +0,0 @@
-Pure HTML and JS | Genezio ExampleWelcome to genezio!
You have successfully deployed your first html and js genezio project!
Here you have a list of resources that you can use to learn how to continue building awesome projects with genezio:
\ No newline at end of file
diff --git a/javascript/html-example/client/dist/public/background.jpg b/javascript/html-example/client/dist/public/background.jpg
deleted file mode 100644
index b6ffa6a4..00000000
Binary files a/javascript/html-example/client/dist/public/background.jpg and /dev/null differ
diff --git a/javascript/html-example/client/dist/public/favicon.ico b/javascript/html-example/client/dist/public/favicon.ico
deleted file mode 100644
index 334ef837..00000000
Binary files a/javascript/html-example/client/dist/public/favicon.ico and /dev/null differ
diff --git a/javascript/html-example/client/dist/public/logo.png b/javascript/html-example/client/dist/public/logo.png
deleted file mode 100644
index fe2e732a..00000000
Binary files a/javascript/html-example/client/dist/public/logo.png and /dev/null differ
diff --git a/javascript/html-example/client/dist/public/trash.svg b/javascript/html-example/client/dist/public/trash.svg
deleted file mode 100644
index 0ba7218e..00000000
--- a/javascript/html-example/client/dist/public/trash.svg
+++ /dev/null
@@ -1,4 +0,0 @@
-
\ No newline at end of file
diff --git a/javascript/html-example/client/package-lock.json b/javascript/html-example/client/package-lock.json
index fce19218..8db8653e 100644
--- a/javascript/html-example/client/package-lock.json
+++ b/javascript/html-example/client/package-lock.json
@@ -9,6 +9,7 @@
"version": "1.0.0",
"license": "ISC",
"dependencies": {
+ "@genezio-sdk/html-example": "^1.0.0-prod",
"copy-webpack-plugin": "^11.0.0",
"http-server": "^14.1.1"
},
@@ -30,6 +31,21 @@
"node": ">=10.0.0"
}
},
+ "node_modules/@genezio-sdk/html-example": {
+ "version": "1.0.0-prod",
+ "resolved": "https://rt3ersglfpyjlkzcjgql3s7xju0nuzym.lambda-url.us-east-1.on.aws/RegistryHTTPHandler/npm/html-example/-/html-example-1.0.0-prod.tgz",
+ "integrity": "sha512-3Uq7duRqarHpTwcAIPu7yOk3oJoXDGwflWoXRiwEau1oP1F8GN4Cfp5JEo/nQsOqnOJBI7y73TGHmkPh31wosw==",
+ "bundleDependencies": [
+ "genezio-remote"
+ ],
+ "dependencies": {
+ "genezio-remote": "1.0.0"
+ }
+ },
+ "node_modules/@genezio-sdk/html-example/node_modules/genezio-remote": {
+ "version": "1.0.0",
+ "inBundle": true
+ },
"node_modules/@jridgewell/gen-mapping": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
diff --git a/javascript/html-example/genezio.yaml b/javascript/html-example/genezio.yaml
index a25e8956..5670a403 100644
--- a/javascript/html-example/genezio.yaml
+++ b/javascript/html-example/genezio.yaml
@@ -38,4 +38,7 @@ frontend:
- npm install
- npm start
# List of scripts that build your frontend before deployment. It should populate the specified `publish` directory.
- build: npm run build
+ build:
+ - npm run install-prod-sdk
+ - npm install
+ - npm run build