cleanup
This commit is contained in:
@@ -1,53 +0,0 @@
|
||||
set -e
|
||||
|
||||
|
||||
|
||||
export base=/nodejs
|
||||
|
||||
sudo chown gitpod:gitpod -R $base
|
||||
|
||||
export PATH=$base/bin:$PATH
|
||||
|
||||
source $base/nvm.sh
|
||||
|
||||
cd $base
|
||||
|
||||
rm -f yarn.lock
|
||||
rm -rf .cache
|
||||
|
||||
nvm install --lts
|
||||
nvm use --lts
|
||||
|
||||
npm install --global @gridsome/cli
|
||||
|
||||
#go to the website
|
||||
cd /workspace/www_threefold_io
|
||||
|
||||
rm -f yarn.lock
|
||||
rm -rf .cache
|
||||
|
||||
#copy from the docker image to speedup
|
||||
echo "sync node modules to website"
|
||||
rsync -ra --delete $base/node_modules/ node_modules/
|
||||
echo "done"
|
||||
|
||||
#make sure all modules are there
|
||||
npm install
|
||||
|
||||
cd /workspace
|
||||
if ! [ -d "/workspace/data_threefold" ]
|
||||
then
|
||||
git clone https://github.com/threefoldfoundation/data_threefold
|
||||
fi
|
||||
|
||||
|
||||
rm -f ../content/blog
|
||||
ln -s /workspace/data_threefold/content/blog ../content/blog
|
||||
rm -f ../content/news
|
||||
ln -s /workspace/data_threefold/content/news ../content/news
|
||||
rm -f ../content/person
|
||||
ln -s /workspace/data_threefold/content/person ../content/person
|
||||
rm -f ../content/project
|
||||
ln -s /workspace/data_threefold/content/project ../content/project
|
||||
|
||||
|
||||
@@ -1,25 +0,0 @@
|
||||
set -ex
|
||||
sudo chown gitpod:gitpod -R /tmp
|
||||
|
||||
export base=/nodejs
|
||||
export lts=14.17.3
|
||||
|
||||
echo $base
|
||||
sudo mkdir -p $base
|
||||
sudo chown gitpod:gitpod -R $base
|
||||
cd $base
|
||||
|
||||
rm -f $base/nvm.sh
|
||||
curl -s -o nvm.sh https://raw.githubusercontent.com/nvm-sh/nvm/master/nvm.sh
|
||||
bash nvm.sh
|
||||
|
||||
export NVM_DIR=$base
|
||||
source $base/nvm.sh
|
||||
|
||||
nvm install --lts
|
||||
nvm use --lts
|
||||
|
||||
cp /tmp/package.json .
|
||||
|
||||
npm install --global @gridsome/cli
|
||||
npm install
|
||||
@@ -1,18 +0,0 @@
|
||||
set -e
|
||||
|
||||
export base=/nodejs
|
||||
|
||||
export PATH=$base/bin:$PATH
|
||||
|
||||
source $base/nvm.sh
|
||||
|
||||
nvm use --lts
|
||||
|
||||
#go to the website
|
||||
cd /workspace/www_threefold_io
|
||||
|
||||
if [ -f vue.config.js ]; then
|
||||
npm run-script serve
|
||||
else
|
||||
gridsome develop
|
||||
fi
|
||||
40
package.json
Normal file
40
package.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"name": "my-blog",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"build": "gridsome build",
|
||||
"develop": "gridsome develop",
|
||||
"explore": "gridsome explore"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.30",
|
||||
"@fortawesome/free-brands-svg-icons": "^5.14.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.14.0",
|
||||
"@fortawesome/vue-fontawesome": "^2.0.0",
|
||||
"@gridsome/source-filesystem": "^0.6.2",
|
||||
"@gridsome/transformer-remark": "^0.6.2",
|
||||
"@noxify/gridsome-remark-classes": "^1.0.0",
|
||||
"@noxify/gridsome-remark-table-align": "^1.0.0",
|
||||
"axios": "^0.21.1",
|
||||
"babel-runtime": "^6.26.0",
|
||||
"core-js": "^3.6.5",
|
||||
"gridsome": "^0.7.3",
|
||||
"gridsome-plugin-matomo": "^0.1.0",
|
||||
"gridsome-plugin-remark-prismjs-all": "^0.3.5",
|
||||
"gridsome-plugin-tailwindcss": "^3.0.1",
|
||||
"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-gradients": "^3.0.0",
|
||||
"tailwindcss-tables": "^0.4.0",
|
||||
"v-tooltip": "^2.0.3",
|
||||
"vue-markdown": "^2.1.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@tailwindcss/aspect-ratio": "^0.2.0"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user