new setup script for css and js setup

This commit is contained in:
shockrahwow 2019-11-26 20:32:52 -08:00
parent f4d1870fed
commit 3f9e31a2ea
3 changed files with 23 additions and 6 deletions

View File

@ -2,3 +2,6 @@ node_modules/
target/ target/
static/css/ static/css/
.sass-cache .sass-cache
resources/js/
resourcse/css/

View File

@ -0,0 +1,19 @@
#!/bin/sh
jsFolder="resources/js/"
cssFolder="resources/css/"
mkdir -p $jsFolder $cssFolder
jquery='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.slim.min.js'
bootstrapBundle='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.bundle.min.js'
bootstrap='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css'
faCss='https://use.fontawesome.com/releases/v5.8.2/css/all.css'
for js in $jquery $bootstrapBundle;do
wget -O $jsFolder/`basename $js` $js
done
for css in $bootstrap $faCss;do
wget -O $cssFolder/`basename $css` $js
done

View File

@ -1,5 +0,0 @@
#!/bin/sh
# Just setting up all things npm here
npm install
chmod 1755 node_modules/electron/dist/chrome-sandbox
sudo chown root node_modules/electron/dist/chrome-sandbox