Skip to content

Commit

Permalink
chore: Import existing code-base
Browse files Browse the repository at this point in the history
  • Loading branch information
4nickel committed Nov 6, 2019
1 parent 9fcad15 commit 8add3f7
Show file tree
Hide file tree
Showing 64 changed files with 11,848 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
**/*.rs.bk
/bin
/assets/*
!/assets/.gitkeep
/server/target
/server/var
/client/.sass-cache
33 changes: 33 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# vim: set ft=make:
#
# Author: Felix Viernickel
# Date: 2019
#

CLIENT=client
SERVER=server
ASSETS=assets

all: client server

.PHONY: assets
assets:
@$(MAKE) -C $(CLIENT) assets
@$(MAKE) -C $(SERVER) assets

.PHONY: client
client:
@$(MAKE) -C $(CLIENT)

.PHONY: server
server:
@$(MAKE) -C $(SERVER)

.PHONY: clean
clean:
@$(MAKE) -C $(SERVER) clean
@$(MAKE) -C $(CLIENT) clean

.PHONY: launch
launch:
@$(MAKE) -C $(SERVER) launch
Empty file added assets/.gitkeep
Empty file.
46 changes: 46 additions & 0 deletions client/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# vim: set ft=make:
#
# Author: Felix Viernickel
# Date: 2019
#

COPY=rsync -avzh
SYNC=rsync -avzh --delete
LIB=lib
SRC=src

APP=app
IMG=img
INDEX=index
DST=assets
ASSETS=assets

all: app css

.PHONY: assets
assets:
@(ln -s ../$(ASSETS) $(ASSETS) 2>/dev/null || :)

.PHONY: css-notify
css-notify:
@compass watch --config compass.config.rb

.PHONY: css
css:
@compass compile --config compass.config.rb

.PHONY: app-notify
app-notify:
@while F=$$(inotifywait -e CREATE -e MODIFY --format %f $(SRC)); do $(MAKE) app; done

.PHONY: app
app:
@$(COPY) $(SRC)/$(INDEX)/ $(DST)/
@$(SYNC) $(SRC)/$(APP)/ $(DST)/$(APP)/
@$(SYNC) $(SRC)/$(IMG)/ $(DST)/$(IMG)/
@$(SYNC) $(LIB)/ $(DST)/$(LIB)/

.PHONY: clean
clean:
@rm $(ASSETS)/* -rf
@touch $(ASSETS)/.gitkeep
1 change: 1 addition & 0 deletions client/assets
24 changes: 24 additions & 0 deletions client/compass.config.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
require 'compass/import-once/activate'
# Require any additional compass plugins here.

# Set this to the root of your project when deployed:
http_path = "/"
sass_dir = "src/css"
css_dir = "assets/css"
images_dir = "assets/img"
javascripts_dir = "assets"

# :expanded, :nested, :compact, :compressed
output_style = :expanded

# To enable relative paths to assets via compass helper functions. Uncomment:
# relative_assets = true

# To disable debugging comments that display the original location of your selectors. Uncomment:
line_comments = true

# If you prefer the indented syntax, you might want to regenerate this
# project again passing --syntax sass, or you can uncomment this:
# preferred_syntax = :sass
# and then run:
# sass-convert -R --from scss --to sass sass scss && rm -rf sass && mv scss sass
Loading

0 comments on commit 8add3f7

Please sign in to comment.