Browse Source

Rearrange files, splitting the library from the example(s).

webrtc_tmp
Tony Garnock-Jones 8 years ago
parent
commit
56532f80ad
  1. 24
      Makefile
  2. 0
      examples/chat/app-resources/Info.plist
  3. 0
      examples/chat/app-resources/app.icns
  4. 2
      examples/chat/app-resources/boot.sh
  5. 10
      examples/chat/index.html
  6. 0
      examples/chat/index.js
  7. 0
      examples/chat/style.css
  8. 1
      server.rkt
  9. 0
      third-party/bootstrap/css/bootstrap-responsive.css
  10. 0
      third-party/bootstrap/css/bootstrap-responsive.min.css
  11. 0
      third-party/bootstrap/css/bootstrap.css
  12. 0
      third-party/bootstrap/css/bootstrap.min.css
  13. 0
      third-party/bootstrap/img/glyphicons-halflings-white.png
  14. 0
      third-party/bootstrap/img/glyphicons-halflings.png
  15. 0
      third-party/bootstrap/js/bootstrap.js
  16. 0
      third-party/bootstrap/js/bootstrap.min.js
  17. 0
      third-party/jquery-2.0.3.min.js

24
Makefile

@ -1,6 +1,11 @@
APP_NAME=MarketplaceChat.app
APP_SOURCES=index.html index.js marketplace.js style.css
RESOURCES=$(wildcard app-resources/*)
LIB_SOURCES=\
marketplace.js
APP_SOURCES=\
examples/chat/index.html \
examples/chat/index.js \
examples/chat/style.css
RESOURCES=$(wildcard examples/chat/app-resources/*)
all: $(APP_NAME).zip
@ -22,17 +27,18 @@ clean-keys:
$(APP_NAME).zip: $(APP_NAME)
zip -r $@ $<
$(APP_NAME): $(APP_SOURCES)
$(APP_NAME): $(APP_SOURCES) $(LIB_SOURCES)
echo RESOURCES $(RESOURCES)
rm -rf $@
mkdir -p $@/Contents/MacOS
mkdir -p $@/Contents/Resources
cp app-resources/Info.plist $@/Contents
cp app-resources/boot.sh $@/Contents/MacOS
cp app-resources/app.icns $@/Contents/Resources
cp -r bootstrap $@/Contents/Resources
cp jquery*js $@/Contents/Resources
cp $(APP_SOURCES) $@/Contents/Resources
cp examples/chat/app-resources/Info.plist $@/Contents
cp examples/chat/app-resources/boot.sh $@/Contents/MacOS
cp examples/chat/app-resources/app.icns $@/Contents/Resources
cp -r third-party $@/Contents/Resources
cp $(LIB_SOURCES) $@/Contents/Resources
mkdir -p $@/Contents/Resources/examples/chat
cp $(APP_SOURCES) $@/Contents/Resources/examples/chat
chmod a+x $@/Contents/MacOS/boot.sh
clean:

0
app-resources/Info.plist → examples/chat/app-resources/Info.plist

0
app-resources/app.icns → examples/chat/app-resources/app.icns

2
app-resources/boot.sh → examples/chat/app-resources/boot.sh

@ -1,3 +1,3 @@
#!/bin/bash
cd "$(dirname "$0")"/../Resources
open index.html
open examples/chat/index.html

10
index.html → examples/chat/index.html

@ -4,13 +4,13 @@
<title>JS Marketplace</title>
<meta charset="utf-8">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="../../third-party/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="../../third-party/bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
<!-- <script src="bootstrap/js/bootstrap.min.js"></script> -->
<script src="jquery-2.0.3.min.js"></script>
<!-- <script src="../../third-party/bootstrap/js/bootstrap.min.js"></script> -->
<script src="../../third-party/jquery-2.0.3.min.js"></script>
<script src="marketplace.js"></script>
<script src="../../marketplace.js"></script>
<script src="index.js"></script>
</head>
<body>

0
index.js → examples/chat/index.js

0
style.css → examples/chat/style.css

1
server.rkt

@ -1,4 +1,5 @@
#lang minimart
;; Generic broker for WebSockets-based minimart/marketplace communication.
(require net/rfc6455)
(require minimart/drivers/timer)

0
bootstrap/css/bootstrap-responsive.css → third-party/bootstrap/css/bootstrap-responsive.css

0
bootstrap/css/bootstrap-responsive.min.css → third-party/bootstrap/css/bootstrap-responsive.min.css

0
bootstrap/css/bootstrap.css → third-party/bootstrap/css/bootstrap.css

0
bootstrap/css/bootstrap.min.css → third-party/bootstrap/css/bootstrap.min.css

0
bootstrap/img/glyphicons-halflings-white.png → third-party/bootstrap/img/glyphicons-halflings-white.png

Before

Width: 469  |  Height: 159  |  Size: 8.6 KiB

After

Width: 469  |  Height: 159  |  Size: 8.6 KiB

0
bootstrap/img/glyphicons-halflings.png → third-party/bootstrap/img/glyphicons-halflings.png

Before

Width: 469  |  Height: 159  |  Size: 12 KiB

After

Width: 469  |  Height: 159  |  Size: 12 KiB

0
bootstrap/js/bootstrap.js → third-party/bootstrap/js/bootstrap.js

0
bootstrap/js/bootstrap.min.js → third-party/bootstrap/js/bootstrap.min.js

0
jquery-2.0.3.min.js → third-party/jquery-2.0.3.min.js

Loading…
Cancel
Save