package json

This commit is contained in:
2021-08-13 06:50:33 +00:00
parent 24994e3bc0
commit 9fdad69dd1
4 changed files with 84 additions and 13 deletions

29
build.sh Executable file
View File

@@ -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

25
install.sh Executable file
View File

@@ -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

View File

@@ -1,12 +1,13 @@
{ {
"name": "my-blog", "name": "www_threefold_io",
"private": true, "private": true,
"scripts": { "scripts": {
"build": "gridsome build", "build": "gridsome build",
"develop": "gridsome develop", "develop": "gridsome develop",
"explore": "gridsome explore" "explore": "gridsome explore"
}, },
"dependencies": { "dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.30", "@fortawesome/fontawesome-svg-core": "^1.2.30",
"@fortawesome/free-brands-svg-icons": "^5.14.0", "@fortawesome/free-brands-svg-icons": "^5.14.0",
"@fortawesome/free-solid-svg-icons": "^5.14.0", "@fortawesome/free-solid-svg-icons": "^5.14.0",
@@ -25,14 +26,14 @@
"gridsome-source-graphql": "^1.0.2", "gridsome-source-graphql": "^1.0.2",
"gridsome-source-static-meta": "github:noxify/gridsome-source-static-meta#master", "gridsome-source-static-meta": "github:noxify/gridsome-source-static-meta#master",
"lodash": "^4.17.20", "lodash": "^4.17.20",
"node-sass": "^5.0.0",
"pluralize": "^8.0.0", "pluralize": "^8.0.0",
"sass-loader": "^10.0.2", "sass-loader": "^10.0.2",
"tailwindcss": "^1.8.4", "tailwindcss": "^2.0.0",
"tailwindcss-gradients": "^3.0.0", "tailwindcss-gradients": "^3.0.0",
"tailwindcss-tables": "^0.4.0", "tailwindcss-tables": "^0.4.0",
"v-tooltip": "^2.0.3", "v-tooltip": "^2.0.3",
"vue-markdown": "^2.1.2", "vue-markdown": "^2.1.2",
"isexe": "^2.0.0",
"vue-share-it": "^1.1.4" "vue-share-it": "^1.1.4"
}, },
"devDependencies": { "devDependencies": {

20
run.sh
View File

@@ -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