From b3fd6ea195a239da2aa31a97b9eef25cde566d47 Mon Sep 17 00:00:00 2001 From: Yanis Rigaudeau Date: Thu, 22 Sep 2022 19:59:25 +0200 Subject: [PATCH] deploy test --- build.py | 8 ++++++++ www/public/index.html | 2 +- www/src/main.ts | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 build.py diff --git a/build.py b/build.py new file mode 100644 index 0000000..e378885 --- /dev/null +++ b/build.py @@ -0,0 +1,8 @@ +#!/usr/bin/python +import os + +for dir in os.listdir('.'): + if os.path.isdir(dir) and not dir.startswith('.'): + os.chdir(dir) + os.system('npm run build') + os.chdir('..') diff --git a/www/public/index.html b/www/public/index.html index 5888f0a..89a89a2 100644 --- a/www/public/index.html +++ b/www/public/index.html @@ -5,7 +5,7 @@ - Svelte app + Coucou diff --git a/www/src/main.ts b/www/src/main.ts index 8e1efe9..f13a50b 100644 --- a/www/src/main.ts +++ b/www/src/main.ts @@ -3,7 +3,7 @@ import App from './App.svelte'; const app = new App({ target: document.body, props: { - name: 'world' + name: 'tout le monde' } });