diff --git a/build.sh b/build.sh new file mode 100755 index 000000000..639e4087a --- /dev/null +++ b/build.sh @@ -0,0 +1,29 @@ + + +set -e +cd /home/gitpod/codewww/github/threefoldfoundation/www_threefold_io/development + +#set +e +#source /home/gitpod/.publisher/nvm.sh +#set -e +#nvm use --lts + +export PATH=/home/gitpod/.publisher/versions/node/v14.17.0/bin:$PATH + +set +e +if [ -f vue.config.js ]; then + npm run-script build +else + gridsome build +fi + +set -e + +mkdir -p /home/gitpod/.publisher/publish/www_threefold_io +rsync -ra --delete /home/gitpod/codewww/github/threefoldfoundation/www_threefold_io/development/dist/ /home/gitpod/.publisher/publish/www_threefold_io/ + +cd /home/gitpod/codewww/github/threefoldfoundation/www_threefold_io/development/dist + +#echo go to http://localhost:9999/ + #python3 -m http.server 9999 + diff --git a/install.sh b/install.sh new file mode 100755 index 000000000..d3262e786 --- /dev/null +++ b/install.sh @@ -0,0 +1,25 @@ + + +set -e + +cd /home/gitpod/codewww/github/threefoldfoundation/www_threefold_io/development + +rm -f yarn.lock +rm -rf .cache + +#set +e +#source /home/gitpod/.publisher/nvm.sh +#set -e + +if [ "true" = "true" ]; then + #nvm use --lts + npm install + rsync -ra --delete node_modules/ /home/gitpod/.publisher/node_modules/ +else + rsync -ra --delete /home/gitpod/.publisher/node_modules/ node_modules/ + #nvm use --lts + npm install +fi + + + diff --git a/package.json b/package.json index cda76a8a2..d294b2b1d 100644 --- a/package.json +++ b/package.json @@ -1,12 +1,13 @@ + { - "name": "my-blog", - "private": true, - "scripts": { +"name": "www_threefold_io", +"private": true, +"scripts": { "build": "gridsome build", "develop": "gridsome develop", "explore": "gridsome explore" - }, - "dependencies": { +}, +"dependencies": { "@fortawesome/fontawesome-svg-core": "^1.2.30", "@fortawesome/free-brands-svg-icons": "^5.14.0", "@fortawesome/free-solid-svg-icons": "^5.14.0", @@ -25,17 +26,17 @@ "gridsome-source-graphql": "^1.0.2", "gridsome-source-static-meta": "github:noxify/gridsome-source-static-meta#master", "lodash": "^4.17.20", - "node-sass": "^5.0.0", "pluralize": "^8.0.0", "sass-loader": "^10.0.2", - "tailwindcss": "^1.8.4", + "tailwindcss": "^2.0.0", "tailwindcss-gradients": "^3.0.0", "tailwindcss-tables": "^0.4.0", "v-tooltip": "^2.0.3", "vue-markdown": "^2.1.2", + "isexe": "^2.0.0", "vue-share-it": "^1.1.4" - }, - "devDependencies": { - "@tailwindcss/aspect-ratio": "^0.2.0" - } + }, + "devDependencies": { + "@tailwindcss/aspect-ratio": "^0.2.0" + } } diff --git a/run.sh b/run.sh index 1566c9721..c2127cc72 100755 --- a/run.sh +++ b/run.sh @@ -1,2 +1,18 @@ -#!/bin/bash -bash /workspace/data_threefold/gitpod_scripts/run.sh + + +set -e +cd /home/gitpod/codewww/github/threefoldfoundation/www_threefold_io/development + +#set +e +#source /home/gitpod/.publisher/nvm.sh +#set -e +#nvm use --lts + +export PATH=/home/gitpod/.publisher/versions/node/v14.17.0/bin:$PATH + +if [ -f vue.config.js ]; then + npm run-script serve +else + gridsome develop +fi +