Ver código fonte

Add build script

tags/v0.1.0
Immanuel Onyeka 3 anos atrás
pai
commit
b029b9b0fb
5 arquivos alterados com 50 adições e 1 exclusões
  1. +24
    -0
      resources/build.sh
  2. +0
    -0
      resources/css/app.css
  3. +19
    -0
      resources/scss/main.scss
  4. +1
    -1
      resources/views/master.blade.php
  5. +6
    -0
      resources/views/panel.blade.php

+ 24
- 0
resources/build.sh Ver arquivo

@@ -0,0 +1,24 @@
#!/bin/sh

watch() {
npx browser-sync start --proxy 'localhost:8000' -w --files assets views sass &
pid=$!
sass --load-path=sass --watch --error-css scss/main.scss ../public/main.css &
pid="$pid $!"
trap "kill -TERM $pid" 0 1 2 15
wait
}

once() {
sass --load-path=sass scss/main.scss ../public/main.css
}

deploy() {
rsync -av --delete onyeka assets view files onyeka@onyeka.ca:~/site/
}

case $1 in
'watch') watch ;;
'once') once ;;
'deploy') deploy ;;
esac

+ 0
- 0
resources/css/app.css Ver arquivo


+ 19
- 0
resources/scss/main.scss Ver arquivo

@@ -0,0 +1,19 @@
// @font-face {
// font-family: "EBGaramond-initials";
// src: url("font/EBGaramond/EBGaramond-Initials.otf") format("opentype");
// font-style: normal;
// font-weight: normal;
// }

html body {
// font-family: 'EBGaramond', 'Times New Roman';
background: url("background/interlaced/interlaced.png") repeat;
margin: 0;
}

h1 {
color: black;
}
a {
// text-decoration: none;
}

+ 1
- 1
resources/views/master.blade.php Ver arquivo

@@ -13,7 +13,7 @@
<body>
<nav class='navigator' role="navigation">
<a id='logo' href='/'>
<h3>Trendplays</h3>
<h1>Trendplays</h1>
</a>
@guest
<form class= 'login' method='POST'>


+ 6
- 0
resources/views/panel.blade.php Ver arquivo

@@ -12,6 +12,12 @@
<div id="counter">
Counter: @{{ counter }}
</div>
<nav class="sidebar">
<a href="/panel">Summary<div><img src="" alt=""></div></a>
<a href="/panel/orders">Orders<div><img src="" alt=""></div></a>
<a href="/panel/help">Help<div><img src="" alt=""></div></a>
<a href="/panel/admin">Administrator<div><img src="" alt=""></div></a>
</nav>
@endsection

@section('scripts')


Carregando…
Cancelar
Salvar