new setup script for css and js setup
This commit is contained in:
parent
f4d1870fed
commit
3f9e31a2ea
5
freechat-client/.gitignore
vendored
5
freechat-client/.gitignore
vendored
@ -1,4 +1,7 @@
|
|||||||
node_modules/
|
node_modules/
|
||||||
target/
|
target/
|
||||||
static/css/
|
static/css/
|
||||||
.sass-cache
|
.sass-cache
|
||||||
|
|
||||||
|
resources/js/
|
||||||
|
resourcse/css/
|
19
freechat-client/scripts/setup-js-css.sh
Normal file
19
freechat-client/scripts/setup-js-css.sh
Normal 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
|
@ -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
|
|
Loading…
Reference in New Issue
Block a user