package json
This commit is contained in:
29
build.sh
Executable file
29
build.sh
Executable 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
25
install.sh
Executable 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
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
23
package.json
23
package.json
@@ -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,17 +26,17 @@
|
|||||||
"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": {
|
||||||
"@tailwindcss/aspect-ratio": "^0.2.0"
|
"@tailwindcss/aspect-ratio": "^0.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
20
run.sh
20
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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user