[gtk-web/new-website: 139/180] adding shell scripts for gitlab ci



commit ddc5abf4f621b65240f053321062b01444ef41e2
Author: ravgeetdhillon <ravgeetdhillon gmail com>
Date:   Tue Aug 13 00:00:45 2019 +0530

    adding shell scripts for gitlab ci

 scripts/compile-sass.sh |  5 +++++
 scripts/get-api-data.sh | 19 +++++++++++++++++++
 scripts/structurize.sh  |  5 +++++
 3 files changed, 29 insertions(+)
---
diff --git a/scripts/compile-sass.sh b/scripts/compile-sass.sh
new file mode 100644
index 0000000..50a7ffe
--- /dev/null
+++ b/scripts/compile-sass.sh
@@ -0,0 +1,5 @@
+echo 'compiling scss to css...'
+
+npm run sass
+
+echo 'successfully compiled all scss files to css'
\ No newline at end of file
diff --git a/scripts/get-api-data.sh b/scripts/get-api-data.sh
new file mode 100644
index 0000000..abf203d
--- /dev/null
+++ b/scripts/get-api-data.sh
@@ -0,0 +1,19 @@
+echo 'getting the api data from the gitlab...'
+
+curl https://gitlab.gnome.org/api/v4/projects/665/repository/tags?order_by=name > 
../_data/api_fetch/tags.json
+
+echo 'successfully fetched gtk-release-tags'
+
+curl https://api.rss2json.com/v1/api.json?rss_url=https%3A%2F%2Fblog.gtk.org%2Ffeed%2F > 
../_data/api_fetch/gtk-blog-feed.json
+
+echo 'successfully fetched the gtk blog feed in json format'
+
+curl https://gitlab.gnome.org/api/v4/projects/665/issues_statistics > ../_data/api_fetch/issues_stats.json
+
+echo 'successfully fetched gtk-issue-statistics'
+
+curl https://gitlab.gnome.org/api/v4/projects/665/issues?state=opened > ../_data/api_fetch/tags.json
+
+echo 'successfully fetched gtk-issues'
+
+$SHELL
\ No newline at end of file
diff --git a/scripts/structurize.sh b/scripts/structurize.sh
new file mode 100644
index 0000000..97001e1
--- /dev/null
+++ b/scripts/structurize.sh
@@ -0,0 +1,5 @@
+echo 'structurizing the website...'
+
+mv ../node_modules/* ../assets/ -f
+
+rm -rf ../node_modules
\ No newline at end of file


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]