First draft
This commit is contained in:
commit
3d9bc23a91
6 changed files with 67 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
main.js
|
||||||
|
style.css
|
13
Makefile
Normal file
13
Makefile
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
LIB = unitJS
|
||||||
|
WEBAPP = index.html style.css main.js
|
||||||
|
|
||||||
|
all: $(WEBAPP)
|
||||||
|
|
||||||
|
style.css: css
|
||||||
|
find $^ -type f -name '*.css' | xargs cat > $@
|
||||||
|
|
||||||
|
main.js: js/
|
||||||
|
sjw $(LIB:%=-I %) -o $@ $^
|
||||||
|
|
||||||
|
install:
|
||||||
|
cp $(WEBAPP) $(DESTDIR)
|
0
css/main.css
Normal file
0
css/main.css
Normal file
32
guix.scm
Normal file
32
guix.scm
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
(use-modules (guix build-system gnu)
|
||||||
|
(guix gexp)
|
||||||
|
(guix git-download)
|
||||||
|
(guix licenses)
|
||||||
|
(guix packages))
|
||||||
|
|
||||||
|
(let
|
||||||
|
((%source-dir (dirname (current-filename)))
|
||||||
|
(SJW (load "/home/Bureau/sjw/SJW.scm"))
|
||||||
|
(UnitJS (load "/home/Bureau/unitJS/guix.scm")))
|
||||||
|
(package
|
||||||
|
(name "etoiles")
|
||||||
|
(version "devel")
|
||||||
|
(source
|
||||||
|
(local-file %source-dir
|
||||||
|
#:recursive? #t
|
||||||
|
#:select? (git-predicate %source-dir)))
|
||||||
|
(build-system gnu-build-system)
|
||||||
|
(native-inputs
|
||||||
|
(list
|
||||||
|
SJW
|
||||||
|
UnitJS))
|
||||||
|
(arguments
|
||||||
|
'(#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(delete 'check))))
|
||||||
|
(home-page "https://git.marvid.fr/Tissevert/Étoiles")
|
||||||
|
(synopsis "A game webapp")
|
||||||
|
(description
|
||||||
|
"someday")
|
||||||
|
(license gpl3+)))
|
17
index.html
Normal file
17
index.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<title>Étoiles</title>
|
||||||
|
<script src="main.js"></script>
|
||||||
|
<link rel="stylesheet" href="style.css" type="text/css"/>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<ul id="mode">
|
||||||
|
<li id="edit"></li>
|
||||||
|
</ul>
|
||||||
|
<div id="playground">
|
||||||
|
<div id="grid"></div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
3
js/Main.js
Normal file
3
js/Main.js
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
import * as Dom from UnitJS.Dom;
|
||||||
|
|
||||||
|
console.log('plip');
|
Loading…
Reference in a new issue