This commit is contained in:
2021-08-26 11:45:51 +00:00
parent 4fb4686f77
commit 13dee2e04f
5 changed files with 100 additions and 45 deletions

25
build.sh Executable file
View File

@@ -0,0 +1,25 @@
source /home/gitpod/publisher/nvm.sh && nvm use --lts && export PATH=/home/gitpod/publisher/versions/node/v14.17.5/bin:$PATH
set -e
cd /workspace/www_threefold_io
set +e
if [ -f vue.config.js ]; then
npm run-script build
else
gridsome build
fi
set -e
mkdir -p /home/gitpod/publisher/publish/
rsync -ra --delete /workspace/www_threefold_io/dist/ /home/gitpod/publisher/publish//
cd /workspace/www_threefold_io/dist
#echo go to http://localhost:9999/
#python3 -m http.server 9999

View File

@@ -1,8 +1,8 @@
{
"name": "threefold_io",
"prefix": "threefold",
"git_url": "https://github.com/threefoldfoundation/www_threefold_io/tree/development",
"path_fs": "..",
"git_url": "",
"fs_path": "..",
"pull": false,
"reset": false,
"cat": 2,

19
install.sh Executable file
View File

@@ -0,0 +1,19 @@
source /home/gitpod/publisher/nvm.sh && nvm use --lts && export PATH=/home/gitpod/publisher/versions/node/v14.17.5/bin:$PATH
set -e
cd /workspace/www_threefold_io
rm -f yarn.lock
rm -rf .cache
if [ "true" = "true" ]; then
npm install
rsync -ra --delete node_modules/ /home/gitpod/publisher/node_modules/
else
rsync -ra --delete /home/gitpod/publisher/node_modules/ node_modules/
npm install
fi

View File

@@ -1,5 +1,5 @@
{
"name": "www_threefold_io",
"name": "",
"private": true,
"scripts": {
"build": "gridsome build",
@@ -15,11 +15,10 @@
"@gridsome/transformer-remark": "^0.6.2",
"@noxify/gridsome-remark-classes": "^1.0.0",
"@noxify/gridsome-remark-table-align": "^1.0.0",
"autoprefixer": "^10.3.2",
"axios": "^0.21.1",
"babel-runtime": "^6.26.0",
"core-js": "^3.6.5",
"gridsome": "^0.7.23",
"gridsome": "^0.7.3",
"gridsome-plugin-matomo": "^0.1.0",
"gridsome-plugin-remark-prismjs-all": "^0.3.5",
"gridsome-plugin-tailwindcss": "^3.0.1",
@@ -29,9 +28,8 @@
"lodash": "^4.17.20",
"node-sass": "^5.0.0",
"pluralize": "^8.0.0",
"postcss": "^8.3.6",
"sass-loader": "^10.0.2",
"tailwindcss": "^2.2.7",
"tailwindcss": "^1.8.4",
"tailwindcss-gradients": "^3.0.0",
"tailwindcss-tables": "^0.4.0",
"v-tooltip": "^2.0.3",

13
run.sh Executable file
View File

@@ -0,0 +1,13 @@
source /home/gitpod/publisher/nvm.sh && nvm use --lts && export PATH=/home/gitpod/publisher/versions/node/v14.17.5/bin:$PATH
set -e
cd /workspace/www_threefold_io
if [ -f vue.config.js ]; then
npm run-script serve
else
gridsome develop
fi