aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Miles <scott.miles@palm.com>2012-05-03 17:47:54 -0700
committerScott Miles <scott.miles@palm.com>2012-05-03 17:47:54 -0700
commit6d769c8286f693c1c1a74c11038dd281bb0fe260 (patch)
tree4f6edd0a941e5f5f55219d280ce782d65d93c571
downloadbiblez-ng-6d769c8286f693c1c1a74c11038dd281bb0fe260.tar.gz
construct template
-rw-r--r--.gitmodules9
-rw-r--r--README.md4
-rw-r--r--assets/favicon.icobin0 -> 1150 bytes
-rw-r--r--debug.html19
m---------enyo0
-rw-r--r--index.html21
m---------lib/layout0
m---------lib/onyx0
-rw-r--r--minify/minify.bat7
-rw-r--r--minify/minify.sh9
-rw-r--r--minify/package.js1
-rw-r--r--source/App.css10
-rw-r--r--source/App.js10
-rw-r--r--source/package.js4
14 files changed, 94 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..b8e73fd
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,9 @@
+[submodule "enyo"]
+ path = enyo
+ url = git@github.com:enyojs/enyo.git
+[submodule "lib/onyx"]
+ path = lib/onyx
+ url = git@github.com:enyojs/onyx.git
+[submodule "lib/layout"]
+ path = lib/layout
+ url = git@github.com:enyojs/layout.git
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..418f60c
--- /dev/null
+++ b/README.md
@@ -0,0 +1,4 @@
+bootplate
+=========
+
+Application template for packaged Enyo \ No newline at end of file
diff --git a/assets/favicon.ico b/assets/favicon.ico
new file mode 100644
index 0000000..52c8634
--- /dev/null
+++ b/assets/favicon.ico
Binary files differ
diff --git a/debug.html b/debug.html
new file mode 100644
index 0000000..0fa496e
--- /dev/null
+++ b/debug.html
@@ -0,0 +1,19 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Enyo Bootplate App</title>
+ <link rel="shortcut icon" href="assets/favicon.ico">
+ <!-- -->
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="viewport" content="width=device-width initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+ <!-- enyo (debug) -->
+ <script src="enyo/enyo.js"></script>
+ <!-- application (debug) -->
+ <script src="source/package.js" type="text/javascript"></script>
+ </head>
+ <body class="enyo-unselectable">
+ <script>
+ new App().write();
+ </script>
+ </body>
+</html>
diff --git a/enyo b/enyo
new file mode 160000
+Subproject ea3cad13ee85143df3eeaba64f545962325faf7
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..a5697e6
--- /dev/null
+++ b/index.html
@@ -0,0 +1,21 @@
+<!doctype html>
+<html>
+ <head>
+ <title>Enyo Bootplate App</title>
+ <link rel="shortcut icon" href="assets/favicon.ico">
+ <!-- -->
+ <meta name="apple-mobile-web-app-capable" content="yes">
+ <meta name="viewport" content="width=device-width initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
+ <!-- css -->
+ <link href="build/enyo.css" rel="stylesheet">
+ <link href="build/app.css" rel="stylesheet">
+ <!-- js -->
+ <script src="build/enyo.js"></script>
+ <script src="build/app.js" onerror="alert('No application build found, redirecting to debug.html.'), location='debug.html';"></script>
+ </head>
+ <body class="enyo-unselectable">
+ <script>
+ new App().write();
+ </script>
+ </body>
+</html>
diff --git a/lib/layout b/lib/layout
new file mode 160000
+Subproject 7dbbd35263d9ec170177f6d9da8cff44e1249a8
diff --git a/lib/onyx b/lib/onyx
new file mode 160000
+Subproject 11940cd48868d4bee0e51a89fce6a2c100fc725
diff --git a/minify/minify.bat b/minify/minify.bat
new file mode 100644
index 0000000..52cb4f7
--- /dev/null
+++ b/minify/minify.bat
@@ -0,0 +1,7 @@
+REM build enyo
+@CALL ..\enyo\minify\minify.bat
+
+REM build app
+@CALL ..\enyo\tools\minify.bat package.js -output ..\build\app
+
+pause \ No newline at end of file
diff --git a/minify/minify.sh b/minify/minify.sh
new file mode 100644
index 0000000..c78bb4c
--- /dev/null
+++ b/minify/minify.sh
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+# build enyo
+pushd ../enyo/source/minify > /dev/null
+./minify.sh
+popd > /dev/null
+
+# build app
+../enyo/tools/minify.sh package.js -output ../build/app
diff --git a/minify/package.js b/minify/package.js
new file mode 100644
index 0000000..d590d25
--- /dev/null
+++ b/minify/package.js
@@ -0,0 +1 @@
+enyo.depends("../source");
diff --git a/source/App.css b/source/App.css
new file mode 100644
index 0000000..9f7626f
--- /dev/null
+++ b/source/App.css
@@ -0,0 +1,10 @@
+/*
+ Put anything you reference with "url()" in ../assets/
+ This way, you can minify your application, and just remove the "source" folder for production
+*/
+#app {
+ margin: 16px;
+ border-radius: 4px;
+ background-color: silver;
+ padding: 16px;
+}
diff --git a/source/App.js b/source/App.js
new file mode 100644
index 0000000..77dee2a
--- /dev/null
+++ b/source/App.js
@@ -0,0 +1,10 @@
+enyo.kind({
+ name: "App",
+ fit: true,
+ components:[
+ {name: "hello", content: "Hello World", allowHtml: true, ontap: "helloWorldTap"}
+ ],
+ helloWorldTap: function(inSender, inEvent) {
+ this.$.hello.addContent("<br/><b>hello</b> control was tapped");
+ }
+});
diff --git a/source/package.js b/source/package.js
new file mode 100644
index 0000000..78ceb60
--- /dev/null
+++ b/source/package.js
@@ -0,0 +1,4 @@
+enyo.depends(
+ "App.css",
+ "App.js"
+);